Soft-phones allow you to make and receive phone calls over the Internet using your computer rather than dedicated hardware. Soft-phones are great for manual testing of Twilio apps. There are lot clients to choose from, but this doc will explain how to configure Zoiper.
To download Zoiper visit https://www.zoiper.com.
Before you configure the Zoiper client you have to create SIP domain on Twilio . Fill in following fields:
- FRIENDLY NAME - preferably your name
- SIP URI - URI which you will need to use for Zoiper configuration later
- REQUEST URL - URL to your application which will handle API requests (see how to configure ngrok to get public url from your localhost)
- SIP Registration should be set to ENABLED
Soft-phones require basic authentication, so we have to create a user and password. On Twilio:
- Click on
+
next to the CREDENTIAL LISTS field or go to Credential Lists directly. - Fill in the form:
- FRIENDLY NAME - preferably your name
- USERNAME - enter your phone number in E164 format e.g. +441231231231
- PASSWORD - your password (don't forget to use 1Password)
- Once it's done click on create. You should see a new record in the CREDENTIAL LISTS field
- Select newly created credential within SIP Registration Authentication block
- Save your SIP domain
After installing Zoiper you will be requested to enter the following credentials:
- Fill user name (phone number) and password which we created before.
- Fill in your localized hostname, you can find it on Voice SIP Domains page, e.g.
dvelp-test.sip.us1.twilio.com
- Skip Authentication and outbound proxy
- Skip testing step
- Click Create Account
In order to receive incoming calls, use this TwiML Bin example to redirect one of your phone numbers to your SIP client:
<Response>
<Dial answerOnBridge="true">
<Sip>
[email protected]
</Sip>
</Dial>
</Response>
Where +441231231231
is your USERNAME and dvelp-test.sip.us1.twilio.com
is your SIP URI.
That's it. Now you are ready to make and receive calls!
For more information visit https://www.twilio.com/blog/registering-sip-phone-twilio-inbound-outbound