blob: 5b5061625b83e95a3740f3c288cf12c5dd9b7651 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const VoipFeatureAccessCodesClassId ClassID = ClassID(147)
25
26var voipfeatureaccesscodesBME *ManagedEntityDefinition
27
28// VoipFeatureAccessCodes (class ID #147)
29// The VoIP feature access codes ME defines administrable feature access codes for the VoIP
30// subscriber. It is optional for ONUs that support VoIP services. If a non-OMCI interface is used
31// to manage VoIP signalling, this ME is unnecessary.
32//
33// Instances of this ME are created and deleted by the OLT. A VoIP feature access codes instance is
34// needed for each unique set of feature access code attributes.
35//
36// Relationships
37// An instance of this ME may be associated with one or more SIP user data MEs.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R) (mandatory)
42// (2 bytes)
43//
44// Cancel Call Waiting
45// Cancel call waiting: (R, W) (optional) (5 bytes)
46//
47// Call Hold
48// Call hold: (R, W) (optional) (5 bytes)
49//
50// Call Park
51// Call park: (R, W) (optional) (5 bytes)
52//
53// Caller Id Activate
54// Caller ID activate: (R, W) (optional) (5 bytes)
55//
56// Caller Id Deactivate
57// Caller ID deactivate: (R, W) (optional) (5 bytes)
58//
59// Do Not Disturb Activation
60// Do not disturb activation: (R, W) (optional) (5 bytes)
61//
62// Do Not Disturb Deactivation
63// Do not disturb deactivation: (R, W) (optional) (5 bytes)
64//
65// Do Not Disturb Pin Change
66// Do not disturb PIN change: (R, W) (optional) (5 bytes)
67//
68// Emergency Service Number
69// Emergency service number: (R, W) (optional) (5 bytes)
70//
71// Intercom Service
72// Intercom service: (R, W) (optional) (5 bytes)
73//
74// Unattended_Blind Call Transfer
75// Unattended/blind call transfer: (R, W) (optional) (5 bytes)
76//
77// Attended Call Transfer
78// Attended call transfer: (R, W) (optional) (5 bytes)
79//
80type VoipFeatureAccessCodes struct {
81 ManagedEntityDefinition
82 Attributes AttributeValueMap
83}
84
85func init() {
86 voipfeatureaccesscodesBME = &ManagedEntityDefinition{
87 Name: "VoipFeatureAccessCodes",
88 ClassID: 147,
89 MessageTypes: mapset.NewSetWith(
90 Create,
91 Delete,
92 Get,
93 Set,
94 ),
95 AllowedAttributeMask: 0XFFF0,
96 AttributeDefinitions: AttributeDefinitionMap{
97 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
98 1: MultiByteField("CancelCallWaiting", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 1),
99 2: MultiByteField("CallHold", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 2),
100 3: MultiByteField("CallPark", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 3),
101 4: MultiByteField("CallerIdActivate", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
102 5: MultiByteField("CallerIdDeactivate", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 5),
103 6: MultiByteField("DoNotDisturbActivation", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
104 7: MultiByteField("DoNotDisturbDeactivation", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
105 8: MultiByteField("DoNotDisturbPinChange", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
106 9: MultiByteField("EmergencyServiceNumber", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
107 10: MultiByteField("IntercomService", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
108 11: MultiByteField("UnattendedBlindCallTransfer", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
109 12: MultiByteField("AttendedCallTransfer", 5, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
110 },
111 }
112}
113
114// NewVoipFeatureAccessCodes (class ID 147 creates the basic
115// Managed Entity definition that is used to validate an ME of this type that
116// is received from the wire, about to be sent on the wire.
117func NewVoipFeatureAccessCodes(params ...ParamData) (*ManagedEntity, OmciErrors) {
118 return NewManagedEntity(voipfeatureaccesscodesBME, params...)
119}