Isup.decode: Difference between revisions

From Yate Documentation
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:
The other parameters must be:
The other parameters must be:


isup.protocol-type=
isup.protocol-type=\n
isup.protocol-basetype=
isup.protocol-basetype=\n
On return the message parameters will look like:
On return the message parameters will look like:\n
isup.message-type=IAM
isup.message-type=IAM\n
isup.CallingPartyNumber=some-number
isup.CallingPartyNumber=some-number\n


==== Return ====
==== Return ====

Revision as of 13:02, 8 October 2012

isup.decode is a message sent by a module wishing to decode a buffer containing an ISUP message

Parameters

message-prefix

Optional string indicating the prefix for 'protocol-type' and 'protocol-basetype' parameters and for all decoded parameters

protocol-type

Keyword indicating the encoding standard used to create the data buffer to decode: itu-t, ansi

protocol-basetype

Additional information about the encoding standard to be used when the protocol-type might indicate an unknown/unsupported encoding standard

rawdata

Named pointer containing a data block buffer with the ISUP message to decode. The data buffer must contain the ISUP message starting from the message type byte

Example of message-prefix

message-prefix=isup.

The other parameters must be:

isup.protocol-type=\n isup.protocol-basetype=\n On return the message parameters will look like:\n isup.message-type=IAM\n isup.CallingPartyNumber=some-number\n

Return

True if the message was succesfully decoded. The message's parameter list will be filled with the decoded ISUP parameters and the "message-type" parameter will be filled with the ISUP message type. False on decoding failure. The message's parameter list may contain an incomplete ISUP message