Hi 

 

This is my first post in this mailing list, hope to get some help here.

My question is related to H.323 protocol, CHOICE encoding below.

 

In my application I have the byte containing the RAS message, in order to
identify which message is it I do the following:

In case first bit is 1 ( the message is in the extension part)  I take the 7
bits by masking with  0x7f 

Is it right calculation? do the messages after the "." are 0 for
requestInProgress , 1 for resourcesAvailableIndicate, 2 for
resourcesAvailableConfirm etc' ?

 

How should I identify the messages in the first part (not the extension
part)?  What are the 2 least significant bits used for in that case?

 

 

 

RasMessage ::= CHOICE

}

            gatekeeperRequest GatekeeperRequest,

            gatekeeperConfirm GatekeeperConfirm,

            gatekeeperReject GatekeeperReject,

            registrationRequest RegistrationRequest,

            registrationConfirm RegistrationConfirm,

            registrationReject RegistrationReject,

            unregistrationRequest UnregistrationRequest,

            unregistrationConfirm UnregistrationConfirm,

            unregistrationReject UnregistrationReject,

            admissionRequest AdmissionRequest,

            admissionConfirm AdmissionConfirm,

            admissionReject AdmissionReject,

            bandwidthRequest BandwidthRequest,

            bandwidthConfirm BandwidthConfirm,

            bandwidthReject BandwidthReject,

            disengageRequest DisengageRequest,

            disengageConfirm DisengageConfirm,

            disengageReject DisengageReject,

            locationRequest LocationRequest,

            locationConfirm LocationConfirm,

            locationReject LocationReject, 

            infoRequest InfoRequest,

            infoRequestResponse InfoRequestResponse,

            nonStandardMessage NonStandardMessage,

            unknownMessageResponse UnknownMessageResponse,

            ...,

            requestInProgress RequestInProgress,

            resourcesAvailableIndicate ResourcesAvailableIndicate,

            resourcesAvailableConfirm ResourcesAvailableConfirm,

            infoRequestAck InfoRequestAck,

            infoRequestNak                         InfoRequestNak,

            serviceControlIndication  ServiceControlIndication,

            serviceControlResponse             ServiceControlResponse

{

 

 

Thank you 

Einat

_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to