Asterisk Distribution Configuration Guide

Asterisk Distribution Configuration Guide

For Asterisk setups the following needs to be done.

  • Find the Asterisk version
  • Modify extensions_custom.conf
  • Add SIP Trunk

For this example we will be using Elastix. 


 Finding Asterisk Verison

Use Putty or use the Asteris-CLI

asterisk -r
core show version

Or

asterisk -r
show version

 

Modify extensions_custom.conf 

  1. Log into the PBX and go to the PBX tab
  2. Go to Tools
  3. From the left menu options click on Asterisk File Editor and find extensions_custom.conf
  4. Add the following text to extensions_custom.conf (depending on the Asterisk version)

Asterisk versions 1.6 or older

[from-outside-redir]
;Dialed Number routing according to SIP To: header
exten => s,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(TO),@,1),:,2):1},1)

Asterisk versions 1.8 or newer

[from-trunk]
;Dialed Number routing according to SIP To: header
exten => s,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(TO),@,1),:,2):1},1)

  1. Click Save
  2. Reload Asterisk

 

 

Add SIP Trunk

  1. Go to PBX Configuration
  2. From the left menu options click on Trunks
  3. From the right menu options click on Add Trunk
  4. Click on Add SIP Trunk

  1. Add the Trunk Name
  2. Add the Outbound Trunk Name
  3. Add the PEER Details - Change the ACCOUNT-ID and SIP-PASSWORD based on your acctual account information. Based on the Asterisk version use either from-outside-redir or from-trunk

Asterisk versions 1.6 or older

type=peer
insecure=invite,port
dtmfmode=auto
host=sbc.ringlogix.com
context=from-outside-redir
username=ACCOUNT-ID
trustrpid=yes
sendrpid=yes
secret=SIP-PASSWORD
allow=all
canreinvite=no

Asterisk versions 1.8 or newer

type=peer
insecure=invite,port
dtmfmode=auto
host=sbc.ringlogix.com
context=from-trunk
username=ACCOUNT-ID
trustrpid=yes
sendrpid=yes
secret=SIP-PASSWORD
allow=all
canreinvite=no

  1. Add the USER Context
  2. Add the USER Details

Asterisk versions 1.6 or older

type=user
insecure=invite,port
dtmfmode=auto
host=sbc.ringlogix.com
context=from-outside-redir
allow=all

Asterisk versions 1.8 or newer

type=user
insecure=invite,port
dtmfmode=auto
host=sbc.ringlogix.com
context=from-trunk
allow=all

  1. Add the Registration String

ACCCOUNT-ID:SIP-PASSWORD@sbc.ringlogix.com:5060

  1. Click Submit Changes

    • Related Articles

    • Netgen HX40xE Fax ATA Configuration Guide

      This article will show you how to configure the Netgen Fax ATA for use on the RingLogix T38 IP Fax platform. Netgen HX40xE Configuration Guide 1. Power on the device and connect the PC port to your internet switch or router. 2. The device will ...
    • Cisco SPA8000 Configuration Guide

      Find the IP address of the Cisco SPA8000. Connect an analog phone to the first FXS port. From the analog phone dial **** (four asterisks). Then press 110# to determine the IP address (the system will speak the address, EXAMPLE: 192.168.1.130). Once ...
    • 3CX Configuration Guide

      RingLogix is proud to be part of a select group of Providers that have been officially tested and certified by 3CX. Note: Before trying to configure your 3CX phone system please make sure you have already created a customer and activated a SIP Trunk ...
    • Grandstream UCM61XX Configuration Guide

      To log into the PBX, use the IP address found on the LED screen of the UCM. Use a web browser and go to that address. Since the web GUI is using https, it will warn you that the "site's security certificate is not trusted" or you will see an SSL ...
    • Avaya IP Office 9.1 Configuration Guide

      Please find attached the 3NG Networks - Avaya IP Office 9.1 - SIP Trunking Configuration documentation.