Home > Technical Configurations > Configure the Asterisk 13

Configure the Asterisk 13


  • Details in this document are for reference only and are unsupported by the Flowroute support staff.
  • Please use as purely reference material; we make no guarantees that this information is correct, or will not harm your system. Please be careful and always keep a backup of anything before you make changes, or alter settings.

This article describes setting up Asterisk 13. It assumes that you are comfortable with the Linux command line to install Asterisk manually.

We recommend compiling it from source to get the latest stable version. The links to the following guides describe compiling and installing Asterisk on major Linux distributions: 

Before you begin
  • Have your Flowroute SIP Credentials (Tech Prefix and Password), found on the Interconnection/Status & Settings page of Flowroute Manage. 

  • Have the list of DIDs to register with the system. 

To configure Asterisk for Flowroute:
  1. Install Asterisk.

  2. Go to your Asterisk installation directory. The default directory is /etc/asterisk

  3. In this directory, open sip.conf with a text editor, and include the following configuration information:
    udpenable=yes ; 
    tcpenable=yes ;uncomment only if you plan to use TCP for SIP transport 
    ;allow=g729 ;uncomment this line if you are using the G.729 codec
    ;externaddr= ;uncomment & modify if you have a static public IP 
    ;localnet= ;uncomment & modify if your system has a private register => 
    TECH_PREFIX:SIP_PASSWORD@<Preferred PoP>.sip.flowroute.com
    [flowroute-trunk](!) ;keep this lowercase, do not change format
    context=inbound ;change to 'ext-did' or 'from-trunk' for asterisk@home 
    host=<Preferred PoP>.sip.flowroute.com 
    remotesecret=SIP_PASSWORD; replace this variable with your Flowroute SIP password 
    defaultuser=TECH_PREFIX; replace this variable with your Flowroute Tech Prefix
    NOTE: This configuration is slightly different than previous ones because it uses templates, as indicated with a (!), to remove the need to set the same options on each trunk and phone.  It becomes simple to use the template by then putting the same in () after the objects that need to use the template.  Flowroute uses two IP addresses for SIP signaling, and two trunks are built for each IP so that Asterisk recognizes a SIP INVITE sent from each Flowroute IP.
  4. Build objects for each SIP phone that you'll need to register with Asterisk system by adding the following:
    type=friend context=from-phones 
    ;allow=g729 ;uncomment this line if you are using the G.729 codec. 
  5. Next, in the Asterisk directory, open extensions.conf with a text editor. This file controls how Asterisk handles inbound and outbound calls.
  6. In extensions.conf

    • Add the following to the [outgoing] context: 

      exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN}@flowroute0) ;Send NANPA (USA) as 11 digit 
      exten => _011.,1,Dial(SIP/${EXTEN:3}@flowroute0) ;
      dialing format - SIP/{countrycode}{number}@flowroute0 
    • Add the following to the [incoming] context:
      exten => 
      YOUR_DID1,1,Answer() exten => 
      YOUR_DID2,1,Answer() exten =>