blob: 4519b6bb435a622abbfa4bf6972f63c70f1eb98d [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 VoipApplicationServiceProfileClassId ClassID = ClassID(146)
25
26var voipapplicationserviceprofileBME *ManagedEntityDefinition
27
28// VoipApplicationServiceProfile (class ID #146)
29// The VoIP application service profile defines attributes of calling features used in conjunction
30// with a VoIP line service. It is optional for ONUs that support VoIP services. If a non-OMCI
31// interface is used to manage SIP for VoIP, this ME is unnecessary.
32//
33// An instance of this ME is created and deleted by the OLT. A VoIP application service profile
34// instance is needed for each unique set of profile attributes.
35//
36// Relationships
37// An instance of this ME is associated with zero 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, setbycreate)
42// (mandatory) (2 bytes)
43//
44// Cid Features
45// The recommended default value is 0x00. (R, W, setbycreate) (mandatory) (1 byte)
46//
47// Call Waiting Features
48// The recommended default value is 0x00. (R, W, setbycreate) (mandatory) (1 byte)
49//
50// Call Progress Or Transfer Features
51// The recommended default value is 0x0000. (R, W, setbycreate) (mandatory) (2 bytes)
52//
53// Call Presentation Features
54// The recommended default value is 0x0000. (R, W, setbycreate) (mandatory) (2 bytes)
55//
56// Direct Connect Feature
57// The recommended default value is 0x00. (R, W, setbycreate) (mandatory) (1 byte)
58//
59// Direct Connect Uri Pointer
60// Direct connect URI pointer: This attribute points to a network address ME that specifies the URI
61// of the direct connect. If this attribute is set to a null pointer, no URI is defined. (R, W,
62// setbycreate) (mandatory) (2 bytes)
63//
64// Bridged Line Agent Uri Pointer
65// Bridged line agent URI pointer: This attribute points to a network address ME that specifies the
66// URI of the bridged line agent. If this attribute is set to a null pointer, no URI is defined.
67// (R, W, setbycreate) (mandatory) (2 bytes)
68//
69// Conference Factory Uri Pointer
70// Conference factory URI pointer: This attribute points to a network address ME that specifies the
71// URI of the conference factory. If this attribute is set to a null pointer, no URI is defined.
72// (R, W, setbycreate) (mandatory) (2 bytes)
73//
74// Dial Tone Feature Delay_ W Armline Timer New
75// Dial tone feature delay/warmline timer (new): This attribute defines the warmline timer/dial
76// tone feature delay timer (seconds). The default value 0 specifies vendor-specific
77// implementation. (R, W) (optional) (2 bytes)
78//
79type VoipApplicationServiceProfile struct {
80 ManagedEntityDefinition
81 Attributes AttributeValueMap
82}
83
84func init() {
85 voipapplicationserviceprofileBME = &ManagedEntityDefinition{
86 Name: "VoipApplicationServiceProfile",
87 ClassID: 146,
88 MessageTypes: mapset.NewSetWith(
89 Create,
90 Delete,
91 Get,
92 Set,
93 ),
94 AllowedAttributeMask: 0XFF80,
95 AttributeDefinitions: AttributeDefinitionMap{
96 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
97 1: ByteField("CidFeatures", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
98 2: ByteField("CallWaitingFeatures", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
99 3: Uint16Field("CallProgressOrTransferFeatures", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
100 4: Uint16Field("CallPresentationFeatures", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4),
101 5: ByteField("DirectConnectFeature", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 5),
102 6: Uint16Field("DirectConnectUriPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 6),
103 7: Uint16Field("BridgedLineAgentUriPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 7),
104 8: Uint16Field("ConferenceFactoryUriPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 8),
105 9: Uint16Field("DialToneFeatureDelayWArmlineTimerNew", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
106 },
107 }
108}
109
110// NewVoipApplicationServiceProfile (class ID 146 creates the basic
111// Managed Entity definition that is used to validate an ME of this type that
112// is received from the wire, about to be sent on the wire.
113func NewVoipApplicationServiceProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
114 return NewManagedEntity(voipapplicationserviceprofileBME, params...)
115}