Set a Dial Plan for Outbound Calling and IP-based Authentication in Asterisk

To place outbound calls in Asterisk systems, you will need to configure the correct dial plan settings in your extensions.conf file, an example of which can be found at the end of this article. 

This article provides a sample configuration to get outbound calls working to US and Canadian destinations with 11-, 10-, as well as 7-digit dialing for calls to the area code specified in the [globals] section of your config file. Also note that, with this configuration, international calls will first require dialing 011 before the international number. 

Special outbound dial plan settings are also needed if you are using IP-based authentication for your outbound calls. If you want to use IP-based authentication, you must populate the [globals] TECHPREFIX variable with your account's Tech Prefix, including the trailing * character. See IP-based authentication for your outbound calls for more information on enabling IP-based authentication. 

Before you begin

Example extensions.conf
NOTE: Be careful when editing your configuration files. Back up any files before modifying them. Any custom dial plan configurations may cause this sample code to behave differently than intended. Flowroute cannot assist with custom dial plan programming or troubleshooting.

[globals]
AREACODE= ;Enter local 3-digit area code here
TECHPREFIX= ;Populate only if IP-based authentication is desired

[outgoing]
exten => _1NXXNXXXXXX,1,Dial(SIP/${TECHPREFIX}${EXTEN}@flowroute)
exten => _NXXNXXXXXX,1,Dial(SIP/${TECHPREFIX}1${EXTEN}@flowroute)
exten => _NXXXXXX,1,Dial(SIP/${TECHPREFIX}1${AREACODE}${EXTEN}@flowroute)
exten => _011.,1,Dial(SIP/${TECHPREFIX}${EXTEN:3}@flowroute)

Did you find this article helpful?