SIP based

Freepbx configuration guide for SIP setup using chan_sip trunk.

SIP TRUNK

Step 1: Go to connectivity>Trunks> click on +Add Trunk option. Under that select ADD SIP(chan_sip) Trunk. A new window will appear. Enter the Trunk Name as “SIP_account”

A new window will appear. Enter the Trunk Name as “SIP_account”

Step 2: Go to Sip settings, add the Trunk Name under outgoing as "SIP_account" r as shown in image

Under Incoming, enter User Context as "DFS" and the Register String as: username:password@sip.la1.didforsale.com For Example:1001908134:1(IPncKnZKC$9iX@sip.la2.didforsale.com Copy the following user details:

type=friend 
secret=1(IPncKnZKC$9iX* 
username=1001908134*
qualify=no 
host=sip.la2.didforsale.com* 
dtmfmode=rfc2833 
context=from-trunk
canreinvite=no
allow=ulaw
insecure=port,invite 
fromdomain=sip.la2.didforsale.com*

*Note: Please use the username, password and domain received via email after creating SIP account.

Routing Inbound Routes

Step 3: For routing your inbound calls coming on your DID number, click on inbound routes and configure the DID with prefix 1. Toll free numbers needs to be configured without 1. Say your DID is 949 885 9944 then you will configure the DID with 19498859944 in the inbound routes. Delete existing routes for the DID and then reconfigure from scratch. Here is the image for inbound setups:

Routing Outbound Routes

STEP 4: For routing your outbound calls. Go to connectivity>Outbound Routes. Click on Add Outbound Route button (as shown below)

STEP 5:You should be viewing the Route Setting tab. Under that, give the Route Name. Here, we have call this route as “Outbound”. Enter the Route CID. Choose the trunk(s) which you have created , SIP_account from the drop-down menus next to Trunk Sequence for Matched Routes.

STEP 6: Click the Dial Patterns tab. Click Dial patterns wizards. In preprend enter “1” and for match pattern enter “NXXNXXXXXX”. For better understanding refer the following image:

Click on Submit button. Also press APPLY CONFIG (on the top right corner)

Hope this Document helps. Please contact us for any further queries.

Last updated