GetNumberOfGsmPorts: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
This command writes to the standard output information on active or on hold callon the specified GSM port.   
This command writes to the standard output the number of GSM Ports present in the system.   
 
By default the mode is unknown but it can be S_HR, S_FR and S_EFR.


'''COMMAND:'''  
'''COMMAND:'''  
Line 9: Line 7:
!Returns
!Returns
|-
|-
|'''GetCallInfo'''
|GetNumberOfGsmPorts
|PortIndex
|None.
|Call info (Call State, called number, calling number, mode)
|Numeric value
|}
|}


'''OUTPUT'''
'''OUTPUT'''


GSM port call information in the following format:
Numeric value.
 
“%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'''<syntaxhighlight lang="text">
'''EXAMPLE'''<syntaxhighlight lang="text">
~# GetCallInfo 0
~# GetNumberOfGsmPorts
CONNECTED 0612345678 893301138325478569530 S_HR
2
IDLE
</syntaxhighlight>


~# GetCallInfo 1
[[Category:R2D2]]
HOLD
[[Category:GENERAL]]
IDLE
</syntaxhighlight>
[[Category:General]]

Latest revision as of 21:05, 10 September 2025

This command writes to the standard output the number of GSM Ports present in the system.

COMMAND:

Command Input Arguments Returns
GetNumberOfGsmPorts None. Numeric value

OUTPUT

Numeric value.

EXAMPLE

~# GetNumberOfGsmPorts
2