GetGsmOperatorList: Difference between revisions

From Opale Wiki
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:SMS|R2D...")
Tag: 2017 source edit
 
No edit summary
Line 1: Line 1:


This command allows to accept an incoming call once presented on the specified port.
This command gets the list of GSM operator (status and operator PLMN) present in the network for the specified GSM port. Status can be UNKNOWN, AVAILABLE, CURRENT or FORBIDDEN.


'''COMMAND'''
'''COMMAND'''
Line 8: Line 8:
!Returns
!Returns
|-
|-
|AcceptCall
|GetGsmOperatorList
|PortIndex  
|PortIndex  
|[[R2D2 Error Codes|Error Code]] in case of error.
|List of Operators’ PLMN and status
|}
|}


'''OUTPUT'''
'''OUTPUT''' <br>GSM port operator list (status and operator PLMN):
Command status: <br>
 
"%s\n", status (CONNECTED or NO INCOMING CALL)
"%s %s\n", plmn, status


'''EXAMPLE''' <syntaxhighlight lang="text">
'''EXAMPLE''' <syntaxhighlight lang="text">
 
~# GetGsmOperatorList 0
~# AcceptCall 0<br>
20810 CURRENT
CONNECTED<br>
20801 AVAILABLE
 
~# AcceptCall 2<br>
NO INCOMING CALL
 
</syntaxhighlight>
</syntaxhighlight>
[[Category:SMS|R2D2]]
[[Category:SMS|R2D2]]
[[Category:Voice|R2D2]]
[[Category:Voice|R2D2]]
[[Category:CDR|R2D2]]
[[Category:CDR|R2D2]]

Revision as of 21:22, 1 April 2025

This command gets the list of GSM operator (status and operator PLMN) present in the network for the specified GSM port. Status can be UNKNOWN, AVAILABLE, CURRENT or FORBIDDEN.

COMMAND

Command Line Arguments Returns
GetGsmOperatorList PortIndex List of Operators’ PLMN and status

OUTPUT
GSM port operator list (status and operator PLMN):

"%s %s\n", plmn, status

EXAMPLE

~# GetGsmOperatorList 0
20810 CURRENT
20801 AVAILABLE