4. Internal form and its encodings

4 Internal form and its encodings

This version of the stack is compliant with:

  • Megaco/H.248 version 1 (RFC3525) updated according to Implementors Guide version 10-13.

  • Megaco/H.248 version 2 as defined by draft-ietf-megaco-h248v2-04 updated according to Implementors Guide version 10-13.

  • Megaco/H.248 version 3 as defined by ITU H.248.1 (09/2005).

4.1 Internal form of messages

We use the same internal form for both the binary and text encoding. Our internal form of Megaco/H.248 messages is heavily influenced by the internal format used by ASN.1 encoders/decoders:

  • "SEQUENCE OF" is represented as a list.

  • "CHOICE" is represented as a tagged tuple with size 2.

  • "SEQUENCE" is represented as a record, defined in "megaco/include/megaco_message_v1.hrl".

  • "OPTIONAL" is represented as an ordinary field in a rec