cdp.switch.allowed_networks
The cdp.switch.allowed_networkscommand is used to retrieve the possible networks that a SIM is allowed to switched to.
TR50 Request
{
"cmd" : {
"command": "cdp.switch.allowed_networks",
"params": {
"commPlanCode": "572506",
"country": "Israel"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
country | String | Yes | The country where the sim is located. |
commPlanCode | String | Yes | The id of the current comm plan code. |
connectionId | String | Yes* | The identifier of the connection. |
*connectionId is recommended in the request as omitting it causes unintended behaviors (it will use default values that is not correct in many situations). |
TR50 Response
If the command is sent successfully a success message and the connection is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": [
{
"commPlanCode": "567906",
"country": "Israel",
"allowedNetworks": "Cellcom, Orange, Pelephone",
"remark": "All"
},
{
"commPlanCode": "569706",
"country": "Israel",
"allowedNetworks": "Cellcom, Pelephone"
},
{
"commPlanCode": "572506",
"country": "Israel",
"allowedNetworks": "Orange, Pelephone"
},
{
"commPlanCode": "573406",
"country": "Israel",
"allowedNetworks": "Cellcom, Orange"
}
]
}
}
Response Parameters
Name | Type | Description |
---|---|---|
commPlanCode | String | The id of the comm plan code. |
country | String | The country of the comm plan code. |
allowedNetworks | String | The allowed network names. |
remark | Boolean | The remark. |