GetCallInfo: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
(Created page with "This places an AT Command to the specified modem port. '''COMMAND:''' {| class="wikitable" !Command !Input Arguments !Returns |- |SendAtCommand |Port index ATCommand (*) |Issue an AT Command to the specified module. |} (*) Note that the ATCommand must be entered with quotes if the AT Command itself includes double quotes or spaces. See below. '''OUTPUT:''' Response from the modem to the AT command. '''EXAMPLE:'''<syntaxhighlight lang="text"> ~# SendAtCommand 0, "A...")
Tag: 2017 source edit
 
No edit summary
Line 1: Line 1:
This places an AT Command to the specified modem port.  
This command writes to the standard output information on active or on hold callon the specified GSM port
 
By default the mode is unknown but it can be S_HR, S_FR and S_EFR.  


'''COMMAND:'''  
'''COMMAND:'''  
Line 7: Line 9:
!Returns
!Returns
|-
|-
|SendAtCommand
|'''GetCallInfo'''
|Port index ATCommand (*)
|PortIndex
|Issue an AT Command to the specified module.
|Call info (Call State, called number, calling number, mode)
|}
|}


(*) Note that the ATCommand must be entered with quotes if the AT Command itself includes double quotes or spaces. See below.


'''OUTPUT:'''
'''OUTPUT'''
 
GSM port call information in the following format:
 
“%s %s %s %s\n%s %s %s %s\n”,call_state1, [called_number1, calling_number1, mode1],call_state2, [called_number2, calling_number2, mode2]


Response from the modem to the AT command.
'''EXAMPLE'''<syntaxhighlight lang="text">
~# GetCallInfo 0
CONNECTED 0612345678 893301138325478569530 S_HR
IDLE


'''EXAMPLE:'''<syntaxhighlight lang="text">
~# GetCallInfo 1
~# SendAtCommand 0, "ATI4"
HOLD
ATI4
IDLE
Quectel
RM500Q-AE
Revision: RM500QAEAAR13A03M4G
OK
</syntaxhighlight>'''OR'''<syntaxhighlight lang="text">
~# SendAtCommand 0,'AT+QCALLCFG="voice_enable"'
+QCALLCFG: "voice_disable",1
OK
</syntaxhighlight>
</syntaxhighlight>
[[Category:GENERAL]]
[[Category:GENERAL]]
[[Category:R2D2]]
[[Category:R2D2]]

Revision as of 20:39, 1 April 2025

This command writes to the standard output information on active or on hold callon the specified GSM port.

By default the mode is unknown but it can be S_HR, S_FR and S_EFR.

COMMAND:

Command Input Arguments Returns
GetCallInfo PortIndex Call info (Call State, called number, calling number, mode)


OUTPUT

GSM port call information in the following format:

“%s %s %s %s\n%s %s %s %s\n”,call_state1, [called_number1, calling_number1, mode1],call_state2, [called_number2, calling_number2, mode2]

EXAMPLE

~# GetCallInfo 0
CONNECTED 0612345678 893301138325478569530 S_HR
IDLE

~# GetCallInfo 1
HOLD
IDLE