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

Was this helpful?

  1. SIP Trunking
  2. SIP Trunk Interconnection Guide

Asterisk

Asterisk is a free and open source platform sponsored by Digium. The open source Asterisk platform is used by businesses of all sizes in both public and private sector to build communication applicati

Asterisk Interconnection Guide

To create an interconnection between your asterisk server and DIDForSale servers, you need to create 4 trunks in your sip.conf file. Two trunks for incoming calls and two for outgoing calls. For creating the trunks, open /etc/asterisk/sip.conf file in your favourite editor and add the following trunk details into it.

[didforsale_in1] host=66.209.76.70 type=peer context=from-­‐didforsale disallow=all allow=ulaw nat=yes canreinvite=yes insecure=very dtmfmode=rfc2833 qualify=yes

[didforsale_in2] host=66.209.76.72 type=peer context=from-­‐didforsale disallow=all allow=ulaw nat=yes canreinvite=yes insecure=very dtmfmode=rfc2833 qualify=yes

[didforsale_out1] host=term1.didforsale.com type=peer context=from-­‐didforsale disallow=all allow=ulaw nat=yes canreinvite=yes insecure=very dtmfmode=rfc2833 qualify=yes

[didforsale_out2] host=term2.didforsale.com type=peer context=from-­‐didforsale disallow=all allow=ulaw nat=yes canreinvite=yes insecure=very dtmfmode=rfc2833 qualify=yes

Now you have to create a dial plan entry to catch all incoming calls coming from DIDForSale. To do that, open /etc/asterisk/extensions.conf and add the below entries

[from-­‐didforsale] exten => _X.,1,Noop(Incoming calls from DIDForSale) same => n,Dial(SIP/1000) same => n,Hangup

The above dial plan entry catches all calls coming from DIDForSale and sends them to extension 1000 in your system. You can change that to forward calls to any other extension or IVR on your system.

For making outgoing calls from your system through DIDForSale, create the below dial plan entry

[outbound] exten => _X.,1,Dial(SIP/didforsale_out1/${EXTEN}) same => n,Dial(SIP/didforsale_out2/${EXTEN}) same => n,Hangup

Change the context name “outbound” in the above entry to the context name of your extensions.

If you encounter any difficulties during the integration process or have questions specific to your PBX/Phone system, please don’t hesitate to contact our support team. We are available via email at contact-support@didforsale.com or by phone at 1-800-579-7676. Our experts are ready to assist you and ensure a seamless integration experience.

PreviousAllworxNextCISCO UCM

Last updated 1 year ago

Was this helpful?