Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
David K. Bainbridge | adf422d | 2021-04-09 16:06:41 +0000 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // VoipApplicationServiceProfileClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity VoIP application service profile |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const VoipApplicationServiceProfileClassID = ClassID(146) // 0x0092 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var voipapplicationserviceprofileBME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // VoipApplicationServiceProfile (Class ID: #146 / 0x0092) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // The VoIP application service profile defines attributes of calling features used in conjunction |
| 36 | // with a VoIP line service. It is optional for ONUs that support VoIP services. If a non-OMCI |
| 37 | // interface is used to manage SIP for VoIP, this ME is unnecessary. |
| 38 | // |
| 39 | // An instance of this ME is created and deleted by the OLT. A VoIP application service profile |
| 40 | // instance is needed for each unique set of profile attributes. |
| 41 | // |
| 42 | // Relationships |
| 43 | // An instance of this ME is associated with zero or more SIP user data MEs. |
| 44 | // |
| 45 | // Attributes |
| 46 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 47 | // Managed entity ID:-This attribute uniquely identifies each instance of this ME. (R,-setbycreate) |
| 48 | // (mandatory) (2 bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 49 | // |
| 50 | // Cid Features |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 51 | // This attribute contains a bit map of caller ID features. Except as noted, the bit value 0 |
| 52 | // disables the feature; 1 enables it. |
| 53 | // |
| 54 | // 0x01 Calling number |
| 55 | // |
| 56 | // 0x02 Calling name |
| 57 | // |
| 58 | // 0x04 CID blocking (both number and name) |
| 59 | // |
| 60 | // 0x08 CID number - Permanent presentation status for number (0 = public, 1 = private) |
| 61 | // |
| 62 | // 0x10 CID name - Permanent presentation status for name (0 = public, 1 = private) |
| 63 | // |
| 64 | // 0x20 Anonymous CID blocking (ACR). It may not be possible to support this in the ONU. |
| 65 | // |
| 66 | // 0x40..0x80 Not used |
| 67 | // |
| 68 | // The recommended default value is 0x00. (R, W, setbycreate) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 69 | // |
| 70 | // Call Waiting Features |
| 71 | // The recommended default value is 0x00. (R,-W, setbycreate) (mandatory) (1-byte) |
| 72 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 73 | // This attribute contains a bit map of call waiting features. The bit value 0 disables the |
| 74 | // feature; 1 enables it. |
| 75 | // |
| 76 | // 0x01 Call waiting |
| 77 | // |
| 78 | // 0x02 Caller ID announcement |
| 79 | // |
| 80 | // 0x04..0x80 Not used |
| 81 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 82 | // Call Progress Or Transfer Features |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 83 | // This attribute is a bit map of call processing features. The bit value 0 disables the feature; 1 |
| 84 | // enables it. |
| 85 | // |
| 86 | // 0x0001 3way |
| 87 | // |
| 88 | // 0x0002 Call transfer |
| 89 | // |
| 90 | // 0x0004 Call hold |
| 91 | // |
| 92 | // 0x0008 Call park |
| 93 | // |
| 94 | // 0x0010 Do not disturb |
| 95 | // |
| 96 | // 0x0020 Flash on emergency service call (flash is to be processed during an emergency service |
| 97 | // call) |
| 98 | // |
| 99 | // 0x0040 Emergency service originating hold (determines whether call clearing is to be performed |
| 100 | // on on-hook during an emergency service call) |
| 101 | // |
| 102 | // 0x0080 6way |
| 103 | // |
| 104 | // 0x0100..0x8000 Not used |
| 105 | // |
| 106 | // The recommended default value is 0x0000. (R, W, setbycreate) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 107 | // |
| 108 | // Call Presentation Features |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 109 | // This attribute is a bit map of call presentation features. The bit value 0 disables the feature; |
| 110 | // 1 enables it. |
| 111 | // |
| 112 | // 0x0001 Message waiting indication splash ring |
| 113 | // |
| 114 | // 0x0002 Message waiting indication special dial tone |
| 115 | // |
| 116 | // 0x0004 Message waiting indication visual indication |
| 117 | // |
| 118 | // 0x0008 Call forwarding indication |
| 119 | // |
| 120 | // 0x0010 DC voltage based visual message waiting indicator (vmwi) (e.g., neon lamp on a phone to |
| 121 | // indicate a message waiting). For backwards compatibility reasons, the value 0x0010 is a |
| 122 | // companion value to 0x0004. If an ONU does not support DC voltage vmwi, the ONU uses other |
| 123 | // existing vmwi methods. If the ONU supports DC voltage vmwi and needs to apply DC voltage to turn |
| 124 | // on the phone lamp (to indicate message waiting), the values 0x0004 and 0x0010 are set. |
| 125 | // |
| 126 | // 0x0020..0x8000 Not used |
| 127 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 128 | // The recommended default value is 0x0000. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 129 | // |
| 130 | // Direct Connect Feature |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 131 | // This attribute is a bit map of characteristics associated with the direct connect feature. The |
| 132 | // bit value 0 disables the feature; 1 enables it. |
| 133 | // |
| 134 | // 0x01 Direct connect feature enabled |
| 135 | // |
| 136 | // 0x02 Dial tone feature delay option |
| 137 | // |
| 138 | // The recommended default value is 0x00. (R, W, setbycreate) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 139 | // |
| 140 | // Direct Connect Uri Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 141 | // This attribute points to a network address ME that specifies the URI of the direct connect. If |
| 142 | // this attribute is set to a null pointer, no URI is defined. (R, W, setbycreate) (mandatory) (2 |
| 143 | // bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 144 | // |
| 145 | // Bridged Line Agent Uri Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 146 | // This attribute points to a network address ME that specifies the URI of the bridged line agent. |
| 147 | // If this attribute is set to a null pointer, no URI is defined. (R, W, setbycreate) (mandatory) |
| 148 | // (2 bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 149 | // |
| 150 | // Conference Factory Uri Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 151 | // This attribute points to a network address ME that specifies the URI of the conference factory. |
| 152 | // If this attribute is set to a null pointer, no URI is defined. (R, W, setbycreate) (mandatory) |
| 153 | // (2 bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 154 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 155 | // Dial Tone Feature Delay_Warmline Timer New |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 156 | // Dial tone feature delay/warmline timer (new): This attribute defines the warmline timer/dial |
| 157 | // tone feature delay timer (seconds). The default value 0 specifies vendor-specific |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 158 | // implementation. (R, W) (optional) (2 bytes) |
| 159 | // |
| 160 | // Ip Host Pointer |
| 161 | // This attribute points to the IP host config data or IPv6 host config data ME associated with |
| 162 | // this VoIP config data ME. This attribute is only relevant when the VoIP configuration method |
| 163 | // used attribute of this ME is set to configuration file retrieval (2) OR IETF sipping config |
| 164 | // framework (4). Upon instantiation ONU sets this value to NULL (0xFFFF) pointer. (R, W) |
| 165 | // (optional) (2 bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 166 | // |
| 167 | type VoipApplicationServiceProfile struct { |
| 168 | ManagedEntityDefinition |
| 169 | Attributes AttributeValueMap |
| 170 | } |
| 171 | |
| 172 | func init() { |
| 173 | voipapplicationserviceprofileBME = &ManagedEntityDefinition{ |
| 174 | Name: "VoipApplicationServiceProfile", |
| 175 | ClassID: 146, |
| 176 | MessageTypes: mapset.NewSetWith( |
| 177 | Create, |
| 178 | Delete, |
| 179 | Get, |
| 180 | Set, |
| 181 | ), |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 182 | AllowedAttributeMask: 0xffc0, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 183 | AttributeDefinitions: AttributeDefinitionMap{ |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 184 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 185 | 1: ByteField("CidFeatures", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 186 | 2: ByteField("CallWaitingFeatures", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 187 | 3: Uint16Field("CallProgressOrTransferFeatures", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 188 | 4: Uint16Field("CallPresentationFeatures", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4), |
| 189 | 5: ByteField("DirectConnectFeature", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5), |
| 190 | 6: Uint16Field("DirectConnectUriPointer", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 6), |
| 191 | 7: Uint16Field("BridgedLineAgentUriPointer", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 7), |
| 192 | 8: Uint16Field("ConferenceFactoryUriPointer", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 8), |
| 193 | 9: Uint16Field("DialToneFeatureDelayWarmlineTimerNew", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9), |
| 194 | 10: Uint16Field("IpHostPointer", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10), |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 195 | }, |
| 196 | Access: CreatedByOlt, |
| 197 | Support: UnknownSupport, |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | // NewVoipApplicationServiceProfile (class ID 146) creates the basic |
| 202 | // Managed Entity definition that is used to validate an ME of this type that |
| 203 | // is received from or transmitted to the OMCC. |
| 204 | func NewVoipApplicationServiceProfile(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 205 | return NewManagedEntity(*voipapplicationserviceprofileBME, params...) |
| 206 | } |