PlaceCallAndWaitConnect: 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.
Call This command places a call from the specified GSM port and waits until the call is connected, or if optional timeout (in seconds) expired.
 
Command returns Post Dial Delay (PDD) and Total calling time, all in milliseconds.


'''COMMAND'''
'''COMMAND'''
Line 8: Line 10:
!Returns
!Returns
|-
|-
|AcceptCall
|PlaceCallAndWaitConnect
|PortIndex  
|PortIndex, Destination Number, [Timeout]
|[[R2D2 Error Codes|Error Code]] in case of error.
|Call Status
|}
|}


'''OUTPUT'''
'''OUTPUT'''<br>GSM port call status in the following format:
Command status: <br>
 
"%s\n", status (CONNECTED or NO INCOMING CALL)
"STATUS (%d)\n%s (%d)\n", pdd, call_status, total_calling_time
 
"%s (%d)\n", call_status, total_calling_time


'''EXAMPLE''' <syntaxhighlight lang="text">
'''EXAMPLE''' <syntaxhighlight lang="text">
~# PlaceCallAndWaitConnect 0 0612345678 45
NUMBER BUSY (1254)


~# AcceptCall 0<br>
~# PlaceCallAndWaitConnect 0 0612345678
CONNECTED<br>
ALERTING (2895)
 
CONNECTED (6587)
~# AcceptCall 2<br>
NO INCOMING CALL


</syntaxhighlight>
</syntaxhighlight>
[[Category:Voice]]
[[Category:Voice]]
[[Category:R2D2]]

Latest revision as of 11:29, 27 March 2025

Call This command places a call from the specified GSM port and waits until the call is connected, or if optional timeout (in seconds) expired.

Command returns Post Dial Delay (PDD) and Total calling time, all in milliseconds.

COMMAND

Command Line Arguments Returns
PlaceCallAndWaitConnect PortIndex, Destination Number, [Timeout] Call Status

OUTPUT
GSM port call status in the following format:

"STATUS (%d)\n%s (%d)\n", pdd, call_status, total_calling_time

"%s (%d)\n", call_status, total_calling_time

EXAMPLE

~# PlaceCallAndWaitConnect 0 0612345678 45
NUMBER BUSY (1254)

~# PlaceCallAndWaitConnect 0 0612345678
ALERTING (2895)
CONNECTED (6587)