blob: 86f671ee283f4aff3dd7148c3563833270b0ef42 [file] [log] [blame]
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
* Copyright 2020-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// VoipFeatureAccessCodesClassID is the 16-bit ID for the OMCI
// Managed entity VoIP feature access codes
const VoipFeatureAccessCodesClassID ClassID = ClassID(147)
var voipfeatureaccesscodesBME *ManagedEntityDefinition
// VoipFeatureAccessCodes (class ID #147)
// The VoIP feature access codes ME defines administrable feature access codes for the VoIP
// subscriber. It is optional for ONUs that support VoIP services. If a non-OMCI interface is used
// to manage VoIP signalling, this ME is unnecessary.
//
// Instances of this ME are created and deleted by the OLT. A VoIP feature access codes instance is
// needed for each unique set of feature access code attributes.
//
// Relationships
// An instance of this ME may be associated with one or more SIP user data MEs.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R) (mandatory)
// (2-bytes)
//
// Cancel Call Waiting
// Cancel call waiting: (R,-W) (optional) (5-bytes)
//
// Call Hold
// Call hold: (R,-W) (optional) (5-bytes)
//
// Call Park
// Call park: (R,-W) (optional) (5-bytes)
//
// Caller Id Activate
// Caller ID activate: (R,-W) (optional) (5-bytes)
//
// Caller Id Deactivate
// Caller ID deactivate: (R,-W) (optional) (5-bytes)
//
// Do Not Disturb Activation
// Do not disturb activation: (R,-W) (optional) (5-bytes)
//
// Do Not Disturb Deactivation
// Do not disturb deactivation: (R,-W) (optional) (5-bytes)
//
// Do Not Disturb Pin Change
// Do not disturb PIN change: (R,-W) (optional) (5-bytes)
//
// Emergency Service Number
// Emergency service number: (R,-W) (optional) (5-bytes)
//
// Intercom Service
// Intercom service: (R,-W) (optional) (5-bytes)
//
// Unattended_Blind Call Transfer
// Unattended/blind call transfer: (R, W) (optional) (5 bytes)
//
// Attended Call Transfer
// Attended call transfer: (R, W) (optional) (5 bytes)
//
type VoipFeatureAccessCodes struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
voipfeatureaccesscodesBME = &ManagedEntityDefinition{
Name: "VoipFeatureAccessCodes",
ClassID: 147,
MessageTypes: mapset.NewSetWith(
Create,
Delete,
Get,
Set,
),
AllowedAttributeMask: 0xfff0,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
1: MultiByteField("CancelCallWaiting", OctetsAttributeType, 0x8000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 1),
2: MultiByteField("CallHold", OctetsAttributeType, 0x4000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 2),
3: MultiByteField("CallPark", OctetsAttributeType, 0x2000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 3),
4: MultiByteField("CallerIdActivate", OctetsAttributeType, 0x1000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 4),
5: MultiByteField("CallerIdDeactivate", OctetsAttributeType, 0x0800, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 5),
6: MultiByteField("DoNotDisturbActivation", OctetsAttributeType, 0x0400, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 6),
7: MultiByteField("DoNotDisturbDeactivation", OctetsAttributeType, 0x0200, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 7),
8: MultiByteField("DoNotDisturbPinChange", OctetsAttributeType, 0x0100, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 8),
9: MultiByteField("EmergencyServiceNumber", OctetsAttributeType, 0x0080, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 9),
10: MultiByteField("IntercomService", OctetsAttributeType, 0x0040, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 10),
11: MultiByteField("UnattendedBlindCallTransfer", OctetsAttributeType, 0x0020, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 11),
12: MultiByteField("AttendedCallTransfer", OctetsAttributeType, 0x0010, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 12),
},
Access: CreatedByOlt,
Support: UnknownSupport,
}
}
// NewVoipFeatureAccessCodes (class ID 147) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewVoipFeatureAccessCodes(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*voipfeatureaccesscodesBME, params...)
}