DecodePdu: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with " This command allows to accept an incoming call once presented on the specified port. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |AcceptCall |PortIndex |Error Code in case of error. |} '''OUTPUT''' Command status: <br> "%s\n", status (CONNECTED or NO INCOMING CALL) '''EXAMPLE''' <syntaxhighlight lang="text"> ~# AcceptCall 0<br> CONNECTED<br> ~# AcceptCall 2<br> NO INCOMING CALL </syntaxhighlight> Category:SMS")
Tag: 2017 source edit
 
m (Administrator moved page R2D2 - DecodePdu to DecodePdu without leaving a redirect)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:


This command allows to accept an incoming call once presented on the specified port.
This command decodes specified PDU buffer.


'''COMMAND'''
'''COMMAND'''
Line 8: Line 8:
!Returns
!Returns
|-
|-
|AcceptCall
|DecodePdu
|PortIndex  
|PortIndex,PDUBuffer
|[[R2D2 Error Codes|Error Code]] in case of error.
|Decoded PDU, in the case of error, Error Code
|}
|}


'''OUTPUT'''
'''OUTPUT'''<br>Decoded information from PDU in the following format: "SMSC: %s\nPDU type: %s\n Phone number: %s\n Alphabet type: %s\n SMS class: %s\n SMS date: %s\nSMS time: %s\n Message text: %s\n",smsc_number, dest_number, alphabet_type, sms_class, sms_date, sms_time,message_text
Command status: <br>
"%s\n", status (CONNECTED or NO INCOMING CALL)


'''EXAMPLE''' <syntaxhighlight lang="text">
'''EXAMPLE''' <syntaxhighlight lang="text">
~# DecodePdu 001100098121436587F900000B17C8329BFD064D9B5362999DB697E565B96BFC6E8700


~# AcceptCall 0<br>
SMSC: +33123456789
CONNECTED<br>
PDU type: SMS-DELIVER
 
Phone number: +33666666789
~# AcceptCall 2<br>
Alphabet type: default GSM7.
NO INCOMING CALL
SMS has no message class meaning.
SMS date: 02/08/26
SMS time: 19:37:41+80
Message text: <Hello?>.


</syntaxhighlight>
</syntaxhighlight>
[[Category:SMS]]
[[Category:SMS]]

Latest revision as of 11:04, 27 March 2025

This command decodes specified PDU buffer.

COMMAND

Command Line Arguments Returns
DecodePdu PortIndex,PDUBuffer Decoded PDU, in the case of error, Error Code

OUTPUT
Decoded information from PDU in the following format: "SMSC: %s\nPDU type: %s\n Phone number: %s\n Alphabet type: %s\n SMS class: %s\n SMS date: %s\nSMS time: %s\n Message text: %s\n",smsc_number, dest_number, alphabet_type, sms_class, sms_date, sms_time,message_text

EXAMPLE

~# DecodePdu 001100098121436587F900000B17C8329BFD064D9B5362999DB697E565B96BFC6E8700

SMSC: +33123456789
PDU type: SMS-DELIVER
Phone number: +33666666789
Alphabet type: default GSM7.
SMS has no message class meaning.
SMS date: 02/08/26
SMS time: 19:37:41+80
Message text: <Hello?>.