voip.ms Click2Call Script
Using this script, you can initiate a callback to any phone number. This will give you a dial tone to dial out using your voip.ms account.
Great to call long distance from your cell phone, or when you're at a relative's place, and want to call long distance without incurring any fees to them (it probably costs them nothing to receive calls, right?)
Installation Instructions
- In your voip.ms account, enable the API, and create a new API password. You will also need to add 23.235.199.170 to the Enable IP Addresses field. The API documentation has detailed instructions on how to do this.
- Create a callback. In Number to call, enter the number you want to get a dial tone on (your cell phone, a relative number, etc.) This number needs to include the country code, i.e. 15145551234.
How to use
-
Fill the form below, and hit Save For Later. You will receive your own unique URL; you'll want to bookmark it.
When you want to initiate a callback, simply load your unique URL in any browser, and wait for your number to ring.
- You can also do a one-time Click2Call using the Click2Call button.
How It Works
- If you use Save For Later, your information is saved in a JSON file on the server, named with the GUID that is uniquely generated when saving. When you later call the page and provide that GUID, the script will load that JSON file, and execute a Click2Call.
- During a Click2Call, the voip.ms API is used to: 1) confirm that the specified DID exists; 2) confirm that the specified Number to call is configured as a Callback: this makes the system more secure, as it can only be used to callback numbers you have already configured in your account; 3) Create a CallerID Filter, that will be used to trigger the Callback.
- After the above checks are made using the voip.ms API, the CallerID Filter will be modified (if needed) to route to the proper Callback. Then, Google Voice is used to call your DID: this will trigger the CallerID filter (which is configured for CallerID = the Google Voice number). The CallerID Filter is routed to the Callback for the specified number, so that phone will ring. Answering that call will give you a voip.ms dial tone. Dial any number, and your voip.ms account will be charged for the call.