Trixbox - Wiki


From Wiki

Revision as of 20:30, 30 June 2011 by Patrick (Talk | contribs)
Jump to: navigation, search

Trixbox is an operating system distribution that has the distinction of being a telephone exchange (PBX) software based on open source Asterisk PBX. Like any PBX, to interconnect a company's internal phone and connect the telephone network.


First Steps


On console, login into you new trixbox with the username: root and the password you selected during installation.

Trixbox log.jpg IP Browse.jpg

When you log in the system will tell you what IP address it received from your DHCP server. You can give the system a permanent address now by typing system-config-network or setting the IP address from the GUI. If you reconfigured the IP address, restart the network device by running service network restart. To continue configuration connect to your system with a web browser using the assigned IP you specified in the previous step.

Once we're there, we will log by clicking "Switch" Please log in, by default the user/password are: maint/password.(We strongly recommend to change the default username and password for security reasons)
Switch 2.jpg Switch.jpg


Trunk Configuration

Now, we finally should see the Trixbox GUI Web interface, to start the Tribox configuration, look for PBX section >> PBX Settings, in the left menu.

Trixbox inter.jpg

Once there, click on Trunks option and select the trunk of your preference, SIP or IAX2 protocol based.

Trunks 1.jpg

[For this example, we will add a SIP trunk]

Now we are in the SIP Trunk Section.

SIP trunk 1.jpg

Only the first matched rule will be excuted and the remaining rules will not be acted on.


   X mathes any digit from 0-9
   Z matches any digit from 1-9
   N matches any digit from 2-9

A few samples :

   A local 7 digts number: NXXXXX 
   Toll-Free numbers : 1800NXXXXX
   There are a few samples , you can set all your rules in the outbound routes section. 

Trunk Out.jpg

   ; nat=yes ; uncomment if behind nat
   secret=johnspassword ;your password
   username=100000 ;your account
   ; allow=g729 ; uncomment if you purchased g.729 from Digium
   fromuser=100000 ;your account

Register String.jpg

   You can select one of our different servers: 
   Atlanta, GA:        (
   Chicago, IL:        (
   Dallas, TX:          (
   Houston, TX:        (
   Los Angeles, CA: (
   New York, NY:       (
   Seattle, WA:        (
   Tampa, FL:            (
   Montreal 2,QC:    (
   Toronto 2, ON:     (
   Montreal,QC:       (
   Toronto, ON:        (
   London, UK:          (

Then please submit these changes.

Don't forget to apply all these changes click on "Apply Configuration Change" and restart Asterisk on every change.

Config change.jpg


Now let's create an extension,this is important, you may want to have at least one extension set, in order to route your incoming calls to it, and place outgoing calls.

Please go to Basic Menu >> Extensions option >> Once there go to "Add Extension".



Extension Options

   10 seconds are 2 rings 
   15 seconds are 3 rings
   20 seconds are 4 rings 
   25 seconds are 5 rings 

Assigned DID/CID

Device Options

Exten 3.jpg

Recording Option

Voicemail & Directory


Save changes.

Outbound Routes

The outgoing calls are sent over trunks, and determined by the configuration of the Outbound Routing page.

Out Route.jpg

   Local 7 digits: NXXXXXX
   Local 10 digits: NXXNXXXXXX
   Toll Free: 1800NXXXXXX
   Long Distance: 1NXXNXXXXXX
   International: 011
   Information: 411
   Emergency: 911 

Now save the changes.

Security Measures

We strongly recommend you to change the password in your account, PBX system and extensions on it, periodically

As a preventive measure you also can disable International calls on your account. From the customer portal >> Main Menu >> Account Settings >> Account Restrictions. These settings define the restrictions the system will use when you place calls to either USA48, Canada or International Numbers.

We strongly recommend to specifically select only the countries that you on your regular traffic (outgoing calls). You can do this by clicking in Currently Allowed: All Countries Allowed >> Click here to manage list of allowed countries

Additionally, you can use in your SIP.Conf alwaysauthreject = yes, what the alwaysauthreject parameter does when set to yes, is it will ALWAYS return an authentication error instead of a "404 - Not Found", even when the extension doesn't exist. This mess up scanners, because the program detect an "existing" extension even if it's not present on the server. Unfortunatly, it's way from being fool proof, but it's a nice security addition that you can set to your Asterisk based PBX.

Personal tools
Actions Wiki Blog
Guides (English)
Guides (Français)
Guías (Español)