blob: 1ca002c5c87c1a197052668d5808284d32152c80 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// VoipFeatureAccessCodesClassID is the 16-bit ID for the OMCI
26// Managed entity VoIP feature access codes
27const VoipFeatureAccessCodesClassID ClassID = ClassID(147)
28
29var voipfeatureaccesscodesBME *ManagedEntityDefinition
30
31// VoipFeatureAccessCodes (class ID #147)
32// The VoIP feature access codes ME defines administrable feature access codes for the VoIP
33// subscriber. It is optional for ONUs that support VoIP services. If a non-OMCI interface is used
34// to manage VoIP signalling, this ME is unnecessary.
35//
36// Instances of this ME are created and deleted by the OLT. A VoIP feature access codes instance is
37// needed for each unique set of feature access code attributes.
38//
39// Relationships
40// An instance of this ME may be associated with one or more SIP user data MEs.
41//
42// Attributes
43// Managed Entity Id
44// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R) (mandatory)
45// (2-bytes)
46//
47// Cancel Call Waiting
48// Cancel call waiting: (R,-W) (optional) (5-bytes)
49//
50// Call Hold
51// Call hold: (R,-W) (optional) (5-bytes)
52//
53// Call Park
54// Call park: (R,-W) (optional) (5-bytes)
55//
56// Caller Id Activate
57// Caller ID activate: (R,-W) (optional) (5-bytes)
58//
59// Caller Id Deactivate
60// Caller ID deactivate: (R,-W) (optional) (5-bytes)
61//
62// Do Not Disturb Activation
63// Do not disturb activation: (R,-W) (optional) (5-bytes)
64//
65// Do Not Disturb Deactivation
66// Do not disturb deactivation: (R,-W) (optional) (5-bytes)
67//
68// Do Not Disturb Pin Change
69// Do not disturb PIN change: (R,-W) (optional) (5-bytes)
70//
71// Emergency Service Number
72// Emergency service number: (R,-W) (optional) (5-bytes)
73//
74// Intercom Service
75// Intercom service: (R,-W) (optional) (5-bytes)
76//
77// Unattended_Blind Call Transfer
78// Unattended/blind call transfer: (R, W) (optional) (5 bytes)
79//
80// Attended Call Transfer
81// Attended call transfer: (R, W) (optional) (5 bytes)
82//
83type VoipFeatureAccessCodes struct {
84 ManagedEntityDefinition
85 Attributes AttributeValueMap
86}
87
88func init() {
89 voipfeatureaccesscodesBME = &ManagedEntityDefinition{
90 Name: "VoipFeatureAccessCodes",
91 ClassID: 147,
92 MessageTypes: mapset.NewSetWith(
93 Create,
94 Delete,
95 Get,
96 Set,
97 ),
98 AllowedAttributeMask: 0xfff0,
99 AttributeDefinitions: AttributeDefinitionMap{
100 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
101 1: MultiByteField("CancelCallWaiting", OctetsAttributeType, 0x8000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 1),
102 2: MultiByteField("CallHold", OctetsAttributeType, 0x4000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 2),
103 3: MultiByteField("CallPark", OctetsAttributeType, 0x2000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 3),
104 4: MultiByteField("CallerIdActivate", OctetsAttributeType, 0x1000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 4),
105 5: MultiByteField("CallerIdDeactivate", OctetsAttributeType, 0x0800, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 5),
106 6: MultiByteField("DoNotDisturbActivation", OctetsAttributeType, 0x0400, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 6),
107 7: MultiByteField("DoNotDisturbDeactivation", OctetsAttributeType, 0x0200, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 7),
108 8: MultiByteField("DoNotDisturbPinChange", OctetsAttributeType, 0x0100, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 8),
109 9: MultiByteField("EmergencyServiceNumber", OctetsAttributeType, 0x0080, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 9),
110 10: MultiByteField("IntercomService", OctetsAttributeType, 0x0040, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 10),
111 11: MultiByteField("UnattendedBlindCallTransfer", OctetsAttributeType, 0x0020, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 11),
112 12: MultiByteField("AttendedCallTransfer", OctetsAttributeType, 0x0010, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 12),
113 },
114 Access: CreatedByOlt,
115 Support: UnknownSupport,
116 }
117}
118
119// NewVoipFeatureAccessCodes (class ID 147) creates the basic
120// Managed Entity definition that is used to validate an ME of this type that
121// is received from or transmitted to the OMCC.
122func NewVoipFeatureAccessCodes(params ...ParamData) (*ManagedEntity, OmciErrors) {
123 return NewManagedEntity(*voipfeatureaccesscodesBME, params...)
124}