Isup.decode
From Yate Documentation
(Difference between revisions)
(→Example of message-prefix) |
(→Example of message-prefix) |
||
Line 19: | Line 19: | ||
The other parameters must be: | The other parameters must be: | ||
− | isup.protocol-type= | + | isup.protocol-type= |
− | isup.protocol-basetype= | + | |
− | On return the message parameters will look like: | + | isup.protocol-basetype= |
− | isup.message-type=IAM | + | |
− | isup.CallingPartyNumber=some-number | + | On return the message parameters will look like: |
+ | |||
+ | isup.message-type=IAM | ||
+ | |||
+ | isup.CallingPartyNumber=some-number | ||
==== Return ==== | ==== Return ==== |
Revision as of 15:04, 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=
isup.protocol-basetype=
On return the message parameters will look like:
isup.message-type=IAM
isup.CallingPartyNumber=some-number
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