Asterisk

 

Step by Step How to setup SIP trunks in Asterisk?

To setup the SIP trunks in your Asterisk machine is quite an easy job if you are using VirtualGlobalPhone as your SIP provider.

Here is the step by step guide for inbound calls:

 A) Creating the SIP Trunks for Inbound service:

Step 1:

Login to your Asterisk PBX admin interface, go to Connectivity tab and click on Trunks and select the option of Add SIP Trunk and then give a name for the trunk as virtualglobalphone and add the trunk Parameter as shown below:

host=sip.virtualglobalphone.com

type=peer

context=from-trunk

disallow=all

allow=ulaw

nat=yes

canreinvite=yes

insecure=very

dtmfmode=rfc2833

qualify=yes

 

Save and Apply the changes.

 

Step 2:

Create Inbound routes.

For routing the inbound calls coming on your VirtualGlobalPhone number, click on Inbound routes of your PBX interface and configure the VirtualGlobalPhone number in the format of country code and number.

Say your VirtualGlobalPhone number is 19092659077 then you will configure the DID with 19092659077 in the inbound routes. It means that DID should be added with numbers only. No signs like ‘-‘are allowed in between the digits of DID number.

Save and Apply the changes.

 2) Creating the Trunks for Outbound Service:

Step 1:

Go to Connectivity and Click on Trunks and select the option Add SIP Trunk. and then give a name for the trunk as virtualglobalphone_out and add the trunk Parameter shown below:

type=peer

nat=yes

insecure==very

host=sip.virtualglobalphone.com

dtmfmode=rfc2833

disallow=all

context=from-trunk

canreinvite=yes

allow=ulaw

 

Step 2:

Create Outbound Routes

Click on Outbound Routes option of your PBX interface. In Dialed Number manipulation rules, put 1X.  in Match pattern column for US and Canada calls. Select the both Outgoing trunks and Save and Apply the settings.

 

  • Asterisk
  • 2 Users Found This Useful
Was this answer helpful?