Documentation for Developer/Administrators
HomeAccount PortalPricing
  • About this Documentation
  • Overview
    • Table of Content
    • Introduction
    • Welcome Kit
      • Add Balance
      • Buy New Phone Number
      • Voice configuration
      • SMS Configuration
        • SMS Forwarding
      • Reporting
        • CDR
        • SMS
        • FAX
  • DIDforSale Portal
    • Register a new account
    • Dashboard
    • Reporting
      • CDR
      • SMS
      • Inbound Calls
      • FAX
      • Group Usage
      • Voicemails
    • Phone Numbers
      • Phone Numbers
      • Channels
      • E911
      • Porting
      • Send FAX
      • FAX Emails
      • SMS Groups
      • Groups
      • CNAM
    • Interconnection
      • Manage IP
      • SIP Accounts
      • Testing Center
      • Phones and Devices
      • Custom Dialplan
      • Audio Files
    • Tools/Settings
      • Outbound Rates
      • API Control
      • Fraud Control
      • Postcalls
    • Account
      • Profile
      • Change Password
      • Add Balance
      • Payment History
      • Voucher
      • Invoices
      • Auto Refill
      • Charges
      • Contact Us
      • Global Settings
      • Logout
  • SIP Trunking
    • Configuration of Phone Numbers
      • Configuring SIP to IP Account
      • Configuring Custom Dial Plan to a Phone Number
      • Configure SIP to SIP Account
      • Set up Call Forwarding to a Phone Number
      • http URL Forwarding Setup
      • Webhook Setup
      • FAX
        • Receive FAX
        • Fax through SIP Account
        • Send FAX
    • Adding IP Address
    • Creating SIP Account
      • VoiceMails
    • SIP Trunk Interconnection Guide
      • 3CX
        • SIP-based Configuration
        • IP-based Configuration
      • Allworx
      • Asterisk
      • CISCO UCM
      • FreePBX
        • FreePBX PJSIP Configuration
          • IP-based
          • SIP-based
        • FreePBX ChanSIP Configuration
          • IP based
          • SIP based
      • FreeSwitch
      • FusionPBX
      • GoAutoDial
      • Grandstream Devices
        • GrandStream 6102 IPPBX
        • GrandStream 502
        • Grandstream 6104 IPPBX
      • HoduSoft PBX System
      • Microsoft Skype for Business
      • NEC Corporation
      • PBXinaFlash
      • Polycom OBi300
      • ShoreTel PBX
      • Vital PBX
      • Yealink Phones
      • ZYCOO
    • DIDForSale Softphone
    • Zoiper Softphone Application
      • Iphone App
    • Grandstream Wave Mobile Application
    • Enable Call Recording
    • Call Transcription
  • Voice and SMS APIs
    • Getting the API key and Token
    • Voice
      • Big Picture
      • Quick Start
        • Identify Caller
        • Collect Response
      • didML Reference Doc
        • Voice API Request Params
        • Voice API Response
      • didML Verbs
        • <dial>
          • <client>
          • <conference>
          • <number>
          • <queue>
          • <sip>
        • <enqueue>
        • <fax>
        • <gather>
        • <hangup>
        • <pause>
        • <play>
        • <postcall>
        • <record>
        • <recordcall>
        • <redirect>
        • <reject>
        • <say>
        • <sms>
    • SMS
      • Configure SMS
      • Send/Receive SMS via Email
      • SMS Forwarding
        • SMS forwarding to Phone Number
        • SMS forwarding to Email
        • SMS forwarding to a Webhook
      • SMS/MMS Desktop Application
      • SMS APIs
        • Activate SMS
        • Deactivate SMS API
        • Send SMS
        • SMS CDR
        • Set SMS Forwarding
      • Bulk SMS Feature
        • Creating SMS Campaign
        • Custom or Dynamic Text Sms
  • UC Editor
    • UC Editor
      • Features
      • How to configure/setup the Custom Call Flow
  • FAX via Email
    • Send & Receive FAX via Email
Powered by GitBook
On this page
  • SIP TRUNK
  • Routing Inbound Routes
  • Routing Outbound Routes

Was this helpful?

  1. SIP Trunking
  2. SIP Trunk Interconnection Guide
  3. FreePBX
  4. FreePBX ChanSIP Configuration

SIP based

Freepbx configuration guide for SIP setup using chan_sip trunk.

PreviousIP basedNextFreeSwitch

Last updated 1 year ago

Was this helpful?

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.