GetCallState: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
(Created page with "This command reports to the standard output the call state on the specified GSM port '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |AcceptCall |PortIndex |Call State - Error Code in case of error. |} '''OUTPUT''' Command status: GSM port call state (IDLE, DIALING, DIALED, ALERTING, CONNECTED, DISCONNECTING, INCOMING or HELD) in the following format: “%s\n%s\n”, call1_state, call2_state '''EXAMPLE'''<syntaxhighlight la...")
 
m (added Category:Voice using HotCat)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
!Returns
!Returns
|-
|-
|AcceptCall
|'''GetCallState'''
|PortIndex
|PortIndex
|[[R2D2 Error Codes|Call State - Error Code]] in case of error.
|[[R2D2 Error Codes|Call State - Error Code]] in case of error.
|}
|}
'''OUTPUT''' Command status:
'''OUTPUT'''


GSM port call state (IDLE, DIALING, DIALED, ALERTING, CONNECTED, DISCONNECTING, INCOMING or HELD) in the following format:
GSM port call state (IDLE, DIALING, DIALED, ALERTING, CONNECTED, DISCONNECTING, INCOMING or HELD) in the following format:
Line 24: Line 24:
IDLE
IDLE
</syntaxhighlight>
</syntaxhighlight>
[[Category:R2D2]]
[[Category:Voice]]

Latest revision as of 20:43, 1 April 2025

This command reports to the standard output the call state on the specified GSM port

COMMAND

Command Line Arguments Returns
GetCallState PortIndex Call State - Error Code in case of error.

OUTPUT

GSM port call state (IDLE, DIALING, DIALED, ALERTING, CONNECTED, DISCONNECTING, INCOMING or HELD) in the following format: “%s\n%s\n”, call1_state, call2_state

EXAMPLE

~# GetCallState 1
IDLE
IDLE

~# GetCallState 0
CONNECTED
IDLE