Installing Sangoma Wanpipe Drivers
Hi everyone,
In attempt to make it easier for our resellers to install systems, as well as our customer base to eaisly setup their sangoma cards, I have created a script to install wanpipe drivers.
I have noticed that there are a lot of recommendations to do various yum install commands to install wanpipe drivers. However, yum is relatively stupid in being able to determine what drivers will work with your current kernel (actually, it doesn't). There are no guarantees that doing a yum update for the kernel, kernel headers and wanpipe* will work, as there might be dependency issues. Not to mention that if there are problems, the person recommending these yum install commands may not be able to help remedy the problem, at least certainly not in the time a customer may want.
For the customers that download our ISOs, this script will work with no problem. Mind you, this script should be used before having attempted installing the wanpipe drivers. If you've tried to install drivers, but ran into problems, your best bet is to seek help from either the forums. At a later date, I will add additional functionality to the script, but right now it is a cut and dry solution for those that have freshly installed trixbox from the ISO.
Get it by executing "wget http://yum.trixbox.org/inst-sangoma.py" from the root prompt.
Next, execute "python inst-sangoma.py", and you should be ready to then use Sangoma's setup utility (setup-sangoma) to automatically detect your card(s).
for cut and paste:
wget http://yum.trixbox.org/inst-sangoma.py
python inst-sangoma.py
-BMill
trixbox CE Dev team
Fonality, Inc.
Ugh, you'd think after 5 years, the stupid Sangoma drivers would come with Trixbox! The link is busted too!
Sorry about that. I mistyped the second url. It's fixed.
Yes, sangoma drivers will be included on the ISO in the next release. Our goal would be to have a script that then can check to see if there are updated RPMs for the sangoma drivers.
-BMill
setup-rhino has been gold 2 step install for rhino cards and it was 5 minutes of scripting. Why not include a setup-sangoma script that does everything?
There is a setup-sangoma script that configures the card(s). This was provided by sangoma within the RPMs.
This script could simply call that afterwards. In the case of the new ISO, it will have the RPMs installed already, and you'll only need to run setup-sangoma.
This was an interim solution to make easier the act of installing the drivers themselves.
Since the setup-sangoma script can be called with differenet arguments, leaving it as a second step allows the custom running of the script to take place.
On Trixbox just yum install wanpipe and then setup sangoma and you are done.
Hey, thanks for fixing that link. It's been rough here this weeek. The computer gods are angry.
If you have a 2.2 or 2.4 install and are now installing a Sangoma card for whatever reason, no, that won't cut it. It will install the highest version of wanpipe RPMs, and they won't be for the kernel running on that system. Hence, the creation of this script.
-BMill
Hi BMil
Even i had problem installing the sangoma driver for A200 card , as it was requesting lower version of zaptel dependency.
I tried your script it got installed , but BMill what it confuses is when i type
setup-pstn the system hangs !!!!
Does it mean that card is not properly detected ?
Thank you
Mathu
This is great, I have been pulling my hair out all night trying to get this sangoma a200 card to install so i can run the setup-sangoma command.
Hi. Has anyone installed the latest wanpipe under trixbox PRO? The default install (as of 4/25/09) has the old version installed 2.6.9-42, but I need to install at least 3.3.15 to get my Sangoma B600 working. Does BMill's script work for Pro? Thanks in advance for your help.
If you are using trixbox PRO I wouldn't recommend using this script. Check out the trixbox Pro forums for help with that.
Hi BMill! The script to install wanpipe drivers worked perfectly on my end! Good thing I was able to download the ISO. Any updates about the next release?
I get an error....
You are not running a currently supported kernel.
You will have to download and compile wanpipe drivers.
Please see wiki.sangoma.com for more information.
Is there a newer version?
try making:
sprtdVers = (["2.6.18-92.1.18.el5", "3.3.15-0"], ["2.6.18-53.1.4.el5", "3.2.6-0"],
["2.6.9-34.0.2.ELsmp", "3.2.1-0"], ["2.6.9-34.0.2.EL","3.2.1-0"])
IN TO:
sprtdVers = (["2.6.18-92.1.18.el5", "3.3.15-0"], ["2.6.18-53.1.4.el5", "3.2.6-0"],
["2.6.9-34.0.2.ELsmp", "3.2.1-0"], ["2.6.9-34.0.2.EL","3.2.1-0"], ["2.6.18-128.1.10.el5","3.4.2.3"])
Nope, did the edit, still the same.
What kernel do you have?
What trixbox do you have?
Try this... I dont have a sangoma card and the script is based 100% off BMILL's original methods so I give it a 60/40 chance of working.
http://dontcallmyboss.com/projects/install-sangoma
Bmill hello
after we install the drivers of sangoma a200 card we can do upgrade with yum?
why sangoma suport said is not recomended
when sangoma is going to be easy and working well
i will like to have a version of trixbox working with sangoma card very well and also be able to upgrade averything on my trixbox to enjoy the benefits of the future releases
so if the sangoma support said that i think when i put the sangoma drivers i am not be able to upgrade any more my system?
so we need to find better cards than sangoma? which are the best card compatibles with trix box to have the ideal system?
i had a very bad week triying to install the sangoma drivers sorry, here is my email just in case someone wants to help me i will appreciated a lot some information javier_vieyra@hotmail.com
regards!
zodogod-
The issue is not with the hardware.
the trixbox repos have some issues. there are 6 kernels with 12 zaptels and unfortunately your hardware drivers are typically not agnostic to these two items. We created setup-rhino about a year ago as a solution to this. By not using yum and instead implementing our own package management system we were able to reduce the issues caused by the various versions. Basically setup-rhino says here is what I have can you help me. Our package backend goes to work and returns the proper file or a message saying the RPM was unavailable. When the unavailable message is returned our support staff is notified and an RPM is generated through our robot which takes around 60 seconds to produce an RPM. This system we put in place is unique and the core of it is proprietary. Billm attempted to emulate this functionality but it really is a server client system. An card you buy should have support. I would recommend contacting Sangoma and I am sure they can help you get installed. They dont recommend running yum update because is often has nasty side effects.
ok james i undestand the issue
so good for Billm that make easy the manual proces
i have to reinstall my trixbox again and then i run the script of Billm is was perfect so i can said is realy tru that the normal iso will work with that script
for the other side and your very good explanation i understand why the no upgrade with yum, as we know the yum update is made by the console
but what a bout the upgrade with the administration module on the freepbx wher you use the option check for updates online, that can be done with out affect the drivers of the sangoma cars?
and also the packages section on the trixbox upgrades?
I appreciate you answers a lot because those expert answers avoid waist time just triying each option like test and fail and help us a lot to the people like me that are walking the path that you expert guys walked before
regards!
I am running trixbox 2.8.0.3 with 1 Sangoma A200 installed. I have been using trixbox for a few months now, and currently have had no problems with my Sangoma A200.
Here is how I configured it in a few painless steps from ssh. I'd recommend following these steps, since it is stable, uses the default trixbox yum repository, and doesn't require any compiling. Again, these steps are from trixbox 2.8.0.3!
uname -r
This told me my kernel release is 2.6.18-128.1.10.el5 and using that information, did the following:
yum install wanpipe-modules-2.6.18-128.1.10.el5.i686 wanpipe-util
At this point I was returned to a prompt, and ran this:
setup-sangoma
At the end of the interview that followed, I allowed the script to create the appropriate config files for me, and it restarted asterisk automatically. At this point wanpipe is installed, and my A200 card initialized for configuration from the trixbox GUI.
Regards,
John
Thanks for the info Comspenco! I am running the exact same setup (kernel and trixbox version). When I run yum as you suggested, I get the following:
[trixbox1.localdomain ~]# yum install wanpipe-modules-2.6.18-128.1.10.el5.i686 wanpipe-util
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was
[Errno 4] IOError:
Any ideas why?
Sorry. I got those errors because of a problem with my DNS server. Im back on the internet now and it installed just fine.
I'll post back if it works.
Ok, after installing the rpms with yum and running setup-sangoma, the card is not working. I got the following error messages:
Starting up device: wanpipe1
wanconfig: WAN device wanpipe1 driver load failed !!
: ioctl(wanpipe1,ROUTER_SETUP) failed:
: 22 - Invalid argument
Wanpipe driver did not load properly
Please check /var/log/wanrouter and
/var/log/messages for errors
Configuring interfaces: w1g1 w1g1: unknown interface: No such device
done.
Waiting for Dahdi /dev/dahdi ...
DAHDI Tools Version - 2.2.0
DAHDI Version: 2.2.0
Echo Canceller(s):
Configuration
======================
8 channels to configure.
DAHDI_CHANCONFIG failed on channel 1: No such device or address (6)
Loading Dahdi...
DAHDI Tools Version - 2.2.0
DAHDI Version: 2.2.0
Echo Canceller(s):
Configuration
======================
8 channels to configure.
DAHDI_CHANCONFIG failed on channel 1: No such device or address (6)
Error executing command:
dahdi_cfg -v
Hey rjhutchinson ,
Did You solve your problem, because i am facing the same problem.
Maciek
You might want to call Sangoma support. They are very good at getting their cards working with trixbox.
Hi all,
I know this thread is very old - well, ok, extremely old...
I have used the inst-sangoma.py for a while now and it works every time! Thank-you to the person who wrote the script - it helps allot!
One Question though - will there be an update on this script? I have Trixbox 2.8.0.3 and the script does not work on it. It says that the kernel is not supported. Is there a possibility that there could be a new script / an updated one somewhere that supports the new Trixboxes - Please?
I / allot of other people would really appreciate it!
Thank-you in advance!



Member Since:
2008-12-29