Setting up the Asterisk with Spintel.
Information used in the example:
xxxxxx-Your sip number
Password-Your sip-number password
101-The Asterisk extension number that is connected to the softphone/IP phone.
Standard setup example
Outgoing calls from the extension number 101 are routed to the trunk xxxxxx. Incoming calls are received by registration and are routed to extension number 101.
Editing sip.conf
Incoming and outgoing routing can be set up in the extensions.conf file
The standard setup is complete.
If you have several active virtual phone numbers, you can "name" each number (for example,Moscowand London) and set the incoming routing based on this parameter. The virtual phone number "Name" is displayed in theCALLERID(name) parameter.
In the following example, calls from the number named Moscow are routed to the extension number 101, and calls from the number named London are routed to the extension number 102. All other calls will be declined by the Asterisk with a "Busy" tone.
Your virtual phone number that received the call will be displayed in the CALLED_DID header. It is possible to configure incoming routing based on this parameter.
In the following example, calls from the number 74957776675 are routed to extension number 101, calls from the number 442037691880 are routed to extension number 102 and all other calls will be declined by the Asterisk with a "Busy" tone.
The setup is complete.
Example №2 (SIP URI)
If the Asterisk is located on a "white" IP address (not behind a router, for example in a data centre), incoming calls can be received without registration by a SIP URI scheme.
Information used in the example:
15555555555 - Your virtual phone number connected to Spintel.
2.20.190.41 - Your Asterisk server IP address.
Go to your personal account, "Settings - Virtual phone numbers" and route the calls from the virtual number to the external server (SIP URI) using this format: 15555555555@2.20.190.41
Editing sip.conf
Incoming route is in the extensions.conf file
The setup is complete.
Setup example using the authorization by IP address.