We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Phone System

How do I configure my Barracuda Phone System to send and receive calls with my Asterisk Server?

  • Type: Knowledgebase
  • Date changed: 2 years ago

Solution #00005531

All Barracuda Phone Systems, communicating with Asterisk servers.


In order for your Barracuda Phone System to communicate with your Asterisk Server, you must add it as a SIP Provider. You will need  to configure the gateway on the Asterisk Server, then configure the Barracuda Phone System to connect to it using the settings which you define.


The following information is provided as an example of a standard configuration. Customizations to the Asterisk install or configuration may require changes to these settings. Please Confirm compatibility of these settings before applying to your Asterisk configuration.

Adding a SIP account for the BPS on the Asterisk Server:

In order for the Asterisk Server to accept calls from the Barracuda Phone System, it will need an account for the BPS to register to. This is set in the configuration file sip.conf:


host=IP_Address_of_Barracuda Phone System
fromdomain=IP_Address_of_Barracuda Phone System


You may also need to set the context which internal calls will use. this is set with the context= variable, and will need to match an existing context for the route you want calls to follow.

Adding a dialplan for routing calls to the Barracuda Phone System:

In order to route calls to the Barracuda Phone System, you will need an entry in the dial-plan for the dial string. This is usually entered in extensions.conf. The entry below assumes that you are using the default extension range 2000-2999 on the Barracuda Phone System. It is important to note that the extension range specified CANNOT exist on the Asterisk Server.


exten => _2XXX,1,Dial(SIP/${EXTEN}@BPS)
exten => _2XXX,2,Hangup

Adding the Asterisk account on the Barracuda Phone System:

Navigate to Providers, and select Setup A New Account. Enter the following information in the entry box which appears:

  1. For provider, choose Generic SIP from the drop down list.
  2. Enter a name which you will recognize in the Name field.
  3. Enter the IP Address or Resolvable Name of the Asterisk Server in the field marked Host. This should auto-fill the same data in the field named Realm.
  4. Leave the field named Port set to 5060.
  5. Enter the Username Used in Step One in the field named Username. This should auto-fill the same data in the field named Authorization Username.
  6. Enter the Password Used in Step One in the field labeled Password.
  7. Enter the Primary Phone Number for this account (usually you main business number) in the field labeled Caller ID. This will be the fall-back Caller ID for outbound calls.
  8. Click the Box labeled Install.

Routing inbound calls:

    This step should be unnecessary for internal transfers to an extension that exists. If you are forwarding external calls, you will need to add the external numbers in the exact format they are being delivered.

    1. Navigate to Providers and click on the account you created in the previous steps
    2. Scroll down to the section labeled External Numbers and click on the Entry Box.
    3. Enter your assigned DIDs (phone numbers) in the box, separated by a comma or a return. The DIDs MUST be formatted exactly as  you are delivering them.
    4. Click the button labeled ADD to complete the entry process

Please reference Solution #00004845 for instructions on how to assign routes for inbound calls.

Defining Custom Dialing Rules:

Routing outbound calls to the telephone network simply requires assigning the correct pre-defined rules for the numbers which you are dialing. If you are intending to forward calls to internal extensions, you will need to create a customer outbound rule for routing these calls

  1. Navigate to Providers, click on the account you created in the previous steps, and click the button labeled Manage Route Definitions in the section labeled Outbound Routes.

  2. Enter a recognizable name in the field labeled Route Name.

  3. Enter the Regex string which you are wanting to match in the field labeled Outbound Number Pattern. (example: ^7\d{3}$ will match any 4 digit extension starting with a 7).

  4. Click the button labeled ADD Outbound Route.

  5. Close the Manage Route Definition Window by clicking on the "X" in the right corner.

  6. In the section labeled Outbound Routes, select the routes you created from the drop down list, and select them by clicking the ADD button.

Please contact support if you need assistance with formatting the dialing rules.


Link to this page: