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