Skip to main content

Configure Asterisk 13

In this article, we will be setting up Asterisk 13 with the assumption that you are comfortable with the Linux command line to install Asterisk manually.

We recommend compiling Asterisk from the source to get the latest stable version. You can compile and install Asterisk on the following major Linux distributions: 


  • Your Flowroute SIP Credentials (Tech Prefix and Password), found on the Interconnection/Status & Settings page of Flowroute Manage. 

  • A list of phone numbers (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:

    IMPORTANT: Asterisk for Flowroute with New PoPs

    If you are taking advantage of our new Points of Presence (PoPs), make sure to do the following:

    1) Update all instances of to this format: {your_preferred_pop} where {your_preferred_pop} might be "us-west-wa" for example. The new value will then be

    2) Add the IP addresses associated with your preferred PoP to your list of [flowroute-trunk] settings below. To find this information quickly, run the following from a command shell window:

    dig {your_preferred_pop} +short


    See Interconnection with the New PoPs for technical specifications.

    udpenable=yes ; 
    tcpenable=yes ;uncomment only if you plan to use TCP for SIP transport 
    ;allow=g729 ;uncomment this line only if you have g729 licenses installed 
    ;externaddr= ;uncomment & modify if you have a static public IP 
    ;localnet= ;uncomment & modify if your system has a private register =>
    [flowroute-trunk] ;keep this lowercase, do not change format
    context=from-trunk ;change to 'ext-did' or 'inbound' for asterisk@home 
    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=ulaw ;allow=g729 ;uncomment this line only if you have G.729 licenses installed. 
  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 => 


  • Was this article helpful?