In the event of intermittent connection issues, resetting the network connection for a Twilio Wireless SIM may help resolve some connectivity issues. This action purges the SIM's record from Twilio's Home Location Register (HLR), forcing the SIM to re-attach to the network.
Notice: Resetting a SIM's network connection is not guaranteed to work. We perform a best effort reset attempt, but this reset may not successfully make it to the device.
The network connection for a SIM can be reset in two ways:
Reset a SIM's Network Connection via Console
- Access the Wireless SIMs page in Console.
- Click the desired SIM.
- Click the Connectivity tab.
- Click Reset.
Reset a SIM's Network Connection via the REST API
To reset your SIM's network connection, you'll need to make an HTTP POST request to Twilio’s SIM Instance API resource that updates the ResetStatus parameter to resetting
. Here’s an example cURL script:
curl -X POST https://wireless.twilio.com/v1/Sims/DEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--data-urlencode "ResetStatus=resetting" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
This example sends a network reset signal to your wireless SIM SID called out in the address - DEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
.
To make this script work for you, make the following updates, and then paste it into a terminal window:
- Line 1 update with your SIM SID
- Line 3 update with your Account SID and Auth Token
For full details, and code samples from our Helper Libraries, please see REST API: Sims (Twilio Docs).