PlaceCallAndWaitConnect: 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 |
m (added Category:R2D2 using HotCat) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This command | 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 | ||
|- | |- | ||
| | |PlaceCallAndWaitConnect | ||
|PortIndex | |PortIndex, Destination Number, [Timeout] | ||
| | |Call Status | ||
|} | |} | ||
'''OUTPUT''' | '''OUTPUT'''<br>GSM port call status in the following format: | ||
"%s\n", | "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) | |||
~# | ~# PlaceCallAndWaitConnect 0 0612345678 | ||
CONNECTED | ALERTING (2895) | ||
CONNECTED (6587) | |||
</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)