Trixbox 2.6.2.3 fresh install with Sangoma A200 card

Notes from my latest setup using a Sangoma A200 card with 4 FXO modules, trixbox 2.6.2.3, Grandstream GXP-2000s for phones, and using Endpoint manager to configure them.’, ‘If you haven\’t installed trixbox before, I suggest you install it and get familiar with it. Be it on an old computer or in a VMWare image.

After installing trixbox 2.6.2.3, the first thing I did was download the wanpipe drivers and software. I\’ll be honest, Sangoma really puts Digium to shame in the extremely ease of installation. If you read my other trixbox tutorials using Digium, you\’ll see the headache they can be just getting them working and detected by Asterisk. Anyway, here is what I did.

# wget ftp://ftp.sangoma.com/linux/RPMS/2.6.2.3/wanpipe-util-3.5.4.8-0.i686.rpm
# wget ftp://ftp.sangoma.com/linux/RPMS/2.6.2.3/wanpipe-modules-2.6.18-128.1.10.el5-3.5.4.8-0.i686.rpm
# rpm -ivh wanpipe-*
# wanrouter hwprobe (Make sure it detected the card)
# wanrouter hwprobe verbose (See that it detected all 4 modules)
# setup-sangoma

Go through the prompts for your area. At this point, I shut down the machine to remove the CD-Rom drive because we don\’t leave them in the system.

At this point, the system is pretty much ready to go. But, because we like to use endpoint manager to configure all of our Grandstream GXP-2000s, we get it ready for them. To do this, we run this command:

# setup-grandstream

This will download the default configs and install gapslite and jre.

If you look in the /tftpboot directory, you will see a bunch of Grandstream_*_Default.txt files. These are for each model of Grandstream you plan on using. Since all of ours are GXP-2000s, we only need to configure the Grandstream_GXP2000_Default.txt file. Keep in mind, you have to edit the phone in endpoint manager for changes to the default.txt file to take. This means, if you make a change, you need to go into the endpoint manager, select each phone, click save, and go to the next. This will rebuild the .bin file that is created for each phone (based on it\’s MAC address).

Because I have a default I prefer to use, I will wget it from my server:

# mv Grandstream_GXP2000_Default.txt Grandstream_GXP2000_Default.orig
# wget http://10.10.10.30/PhoneTeks/Grandstream_GXP2000_Default.txt

So, now that we are going to be using the web interface, we browse to our new server using http://your server ip/admin and type in the username and password (maint/password) and log in. Next, click on the Tools tab in the upper left corner and select Module Admin. Now, click on Check for updates online. This will show you what isn\’t installed, like Endpoint manager, for example. So, we click on all the modules that aren\’t installed that we want our system to have, and install them. Here are the ones I choose:

Endpoint Manager
FOP Framework
Asterisk CLI
Java SSH

and hit Process and then Confirm.

Now, we click on Apply Configuration Changes at the top and we are set.

Now, I like to setup the ZAP trunks.. I prefer to rename g0 to 1, and then add 2-4 just to make the naming easier for me.

After that, create the extensions. In this case, 101 – 106

For testing, I will setup a generic ring group, or queue, put all the phones in it, and create an inbound route to that ring group or queue. That way, all incoming calls will ring all the phones. After that, I create an outbound route (deleting the 9_outside one because we don\’t want to have to dial a 9) and include all the trunks we added before.

Now that everything is all setup, we browse to http://your server IP/maint and choose Endpoint Manager from the PBX dropdown list, select Grandstream Devices, and choose Add Phone.

Choose the extension from the drop down list, choose the phone type (GXP2000 is the default, so we don\’t need to change that), and type in the MAC address of the phone (from the bottom of the phone, or from the outside of the box). We also like to setup key # 7 to speed dial 50. Later we will setup 50 as our paging extension. Part of our default.txt file for endpoint manager was to set the phones to accept paging. Use google for more details on GXP-2000s and paging (or your model phone).

Once all the phones have been setup in Endpoint Manager, all we need to do, is plug each one in, and do the following:

Hit Menu (Round button) and select Config.
Next, choose Upgrade.
Now, choose Upgrade VIA and choose TFTP
Then, choose Config Server, push the up arrow, then the down arrow to delete the default grandstream server. Then, type in the IP address of the trixbox system (Use * for . when typing the IP) and press the circle (enter) button, then choose OK.

Now, reboot the phone and it will download the configs and register with your trixbox server and be all set to make and receive calls.

Notes:

If you want to see the phones requesting information from the TFTP server, from the CLI, type this:

# tail -f /var/log/atftpd.log

Comments are closed.