Page 1 of 1

zypper refresh && zypper up breaking sangoma wanpipe drivers

PostPosted: Tue Sep 11, 2012 7:49 pm
by amjohnson
For the last few days I have been investigating and issue where a new cluster I was building was getting an error when starting wanpipe for my sangoma card. I am using vicibox 3.1.15 64 bit. I have built 2 other clusters with the same hardware without any issues. I have narrowed it down to the same reproducible error.

mytestserver:~ # wanrouter start

Starting WAN Router...
Loading WAN drivers: wanpipe FATAL: Module wanpipe_lip not found.

The issue is when I update the OS using zypper refresh && zypper up it installs new wanpipe/dahdi drivers. From what I read on sangoma's website these error's are usually caused by either dahdi, wanpipe or both not being compiled correctly.

Here is what I have tried:

os-install -> zypper refresh && zypper up -> vicibox-install -> wancfg_dahdi = FAIL no dahdi ('dahdi show channels' returns invalid command)
os-install -> vicibox-install -> zypper refresh && zypper up -> wancfg_dahdi = FAIL no dahdi ('dahdi show channels' returns invalid command)
os-install -> zypper refresh && zypper up -> wancfg_dahdi -> vicibox-install = FAIL no dahdi ('dahdi show channels' returns invalid command)
os-install -> wancfg_dahdi -> vicibox-install = WORKS! -> zypper refresh && zypper up = FAIL no dahdi ('dahdi show channels' returns invalid command)
os-install -> wancfg_dahdi -> vicibox-install = WORKS!

The minute I run zypper up everything breaks.

The card used in these test is detected as "AFT-A101-SH SLOT=4 BUS=2 IRQ=16 CPU=A PORT=1 HWEC=0 V=39" by wancfg it is a single port pci-e T1 card which I am connecting to a analog channel bank for 24 FXS extensions for my agent extensions.

Hope this helps track down the issue! I am currently up and running but do not like the idea of not being updated to the latest packages.

Re: zypper refresh && zypper up breaking sangoma wanpipe dri

PostPosted: Wed Sep 12, 2012 3:31 am
by DomeDan
when you updated the operating system the kernel gets updated, then you need to recompile dahdi http://www.vicidial.org/VICIDIALforum/v ... 286#p87454

Re: zypper refresh && zypper up breaking sangoma wanpipe dri

PostPosted: Wed Sep 12, 2012 11:25 am
by amjohnson
Thanks for the link... I did try recompiling DAHDI and WANPIPE but the WANPIPE compile failed.. I will try just the DAHDI drivers and see what happens..

-Andrew

Re: zypper refresh && zypper up breaking sangoma wanpipe dri

PostPosted: Wed Sep 12, 2012 11:51 am
by amjohnson
Yep that fixed it. I didnt know opensuse/zypper's commands to install the sources so I was recompiling using the sources from asterisk and sangoma.. There must be some customizations in the sources somewhere as the DAHDI sources from asterisk compile fine but the wanpipe drivers from sangoma do not.. wanpipe compile fails with a kernel header error.... I have another machine that I was going to wipe and reload because of the failed wanpipe driver compile failed. I will try the rpm sources and see what happens.

Thanks again for your help

Re: zypper refresh && zypper up breaking sangoma wanpipe dri

PostPosted: Mon Sep 17, 2012 1:04 am
by Kumba
There is an upgrade path for ViciBox v.3.1 to work with the new packages. You can find that info in this sticky: viewtopic.php?f=8&t=25851

Make sure you read it through the whole way before attempting an upgrade. There are some caveats.