WaitCall: 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:Voice")
Tag: 2017 source edit
 
m (added Category:R2D2 using HotCat)
 
(2 intermediate revisions 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 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
|-
|-
|AcceptCall
|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:
Command status: <br>
 
"%s\n", status (CONNECTED or NO INCOMING CALL)
"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">


~# AcceptCall 0<br>
~# WaitCall 0
CONNECTED<br>
CALLING +33612345678
 
~# AcceptCall 2<br>
NO INCOMING CALL


~# WaitCall 2
TIMEOUT EXPIRED
</syntaxhighlight>
</syntaxhighlight>
[[Category:Voice]]
[[Category:Voice]]
[[Category:R2D2]]

Latest revision as of 11:30, 27 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