WaitCall: Difference between revisions
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:Voice") Tag: 2017 source edit |
No edit summary |
||
Line 1: | Line 1: | ||
This command allows to | This command allows to wait for an incoming call on the specified GSM port. | ||
Command returns as soon as incoming call is presented or specified optional timeout expired. | |||
'''COMMAND''' | '''COMMAND''' | ||
Line 8: | Line 10: | ||
!Returns | !Returns | ||
|- | |- | ||
| | |WaitCall | ||
|PortIndex | |PortIndex, [Timeout(s)] | ||
|[[R2D2 Error Codes|Error Code]] in case of error. | |[[R2D2 Error Codes|Error Code]] in case of error. | ||
|} | |} | ||
'''OUTPUT''' | '''OUTPUT'''<br>Incoming call indication in the following format: | ||
"%s\n", | "CALLING %s\n", calling_number | ||
or in the case that general/specified timeout expired: | |||
"TIMEOUT EXPIRED\n" | |||
'''EXAMPLE''' <syntaxhighlight lang="text"> | '''EXAMPLE''' <syntaxhighlight lang="text"> | ||
~# | ~# WaitCall 0 | ||
CALLING +33612345678 | |||
~# WaitCall 2 | |||
TIMEOUT EXPIRED | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Voice]] | [[Category:Voice]] |
Revision as of 17:52, 26 March 2025
This command allows to wait for an incoming call on the specified GSM port.
Command returns as soon as incoming call is presented or specified optional timeout expired.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
WaitCall | PortIndex, [Timeout(s)] | Error Code in case of error. |
OUTPUT
Incoming call indication in the following format:
"CALLING %s\n", calling_number
or in the case that general/specified timeout expired:
"TIMEOUT EXPIRED\n"
EXAMPLE
~# WaitCall 0
CALLING +33612345678
~# WaitCall 2
TIMEOUT EXPIRED