ftocc

Sangoma Weirdness with 2.2.10, SC-440 and a101 - Solved

GSnover
Posts: 1405
Member Since:
2006-11-19

Had a strange problem that I worked on for several hours today - finally figured it out:

Loaded Sangoma drivers either from the package manager, or from source (3.2.1) and it loaded fine and Asterisk started and everything was kosher - PRI was up and we could make calls. Reboot the box, and Wanpipe loads and says "ZT_SPANCONFIG failed on span 1: Invalid argument (22)" and Asterisk Dies on boot but...

amportal stop
wanrouter stop
service zaptel stop

and then

wanrouter start
service zaptel start
amportal start

and we have a happy Asterisk again - reboot, and it fails again - same story (warm or cold boot btw).

Learned some Linux-Geeky stuff today:

Under /etc, you have seven directories named rc0.d through rc6.d that contain files with either a KXXfilename or SXXfilename - these are symbolic links to startup scripts with K being a Kill script and S being a Startup Script. The startup scripts are executed in numeric order, so S01 goes first then S02, etc.

In rc0.d and rc1.d, zaptel and wanrouter are not mentioned - the first mention is in rc2.d and in my rc2.d I had the following:

S09zaptel
S11wanrouter

After reading a couple of posts on how rcX.d works, I switched the files to be the following:

S08wanrouter
S09zaptel

And rebooted the machine - no joy - still the same problem - zaptel was loading before wanrouter, and was bombing. I then looked in rc3.d - same two files in the wrong order, so I fixed it there. Same in rc4.d, and rc5.d - they aren't in rc6.d, so I fixed the load order in rc2.d, rc3.d, rc4.d and rc5.d and rebooted - Hurray - it Works!

1) I have no idea why I had to do this - I have never had to do this with a Sangoma card before, and we have 17 of them deployed.
2) It seems to be working fine, but I wonder if there was an easier way to do this, or if this is a bad way to do it - I don't know.

Hope this helps someone else - I wasted hours on it trying different versions of Wanpipe.

Greg



mammoth
Posts: 431
Member Since:
2006-06-14
was this a clean build or an

was this a clean build or an upgrade of some sort? did you talk with sangoma support at all? just curious what their thoughts were.



GSnover
Posts: 1405
Member Since:
2006-11-19
Clean Load, and no, didn't call Sangoma

I thought about it, but I wanted to figure it out - Plus, I learned quite a bit about how the box starts up and shuts down - that is useful info to know.

I was also having Kernel Panics on my test box this morning, but I finally figured out that it was screwed up - Kernel Panics were coming from a corrupt load, not what I was doing with the Sangoma stuff.

Greg



mustardman
Posts: 1213
Member Since:
2006-06-18
I believe when you install

I believe when you install Wanpipe it sets up the start up scripts and makes sure they are in the right order. Perhaps you said 'no' to one of the options when it asks you if it can install the startup script?



GSnover
Posts: 1405
Member Since:
2006-11-19
Nope - Let it do everything it asked to do

It put the wanrouter in the startup sequence - it just put it after zaptel, which doesn't work - Or zaptel is at a different load priority than it used to be - I will check an old box tomorrow and see.

Greg



mustardman
Posts: 1213
Member Since:
2006-06-18
I believe it also asks if it

I believe if you select yes to everything, Wanpipe will compile zaptel and install the zaptel startup script. Perhaps you upgraded Wanpipe and skipped that step?



GSnover
Posts: 1405
Member Since:
2006-11-19
Nope again - I always let it recompile Zaptel

because I use Mark-2 + Aggressive - Seriously, I let it do everything it asks, and it is reproducible - Clean Load 2.2.10, yum update -y and then either install the Sangoma Package and run setup-sangoma, or download the Source and do a ./Setup install and answer yes to all the questions and you will get the same results - It's nothing that I did - I guess it could be something with the Hardware that I am using (Dell SC-440) but we have LOTS of SC-440's with a101's out there - this is something new.

Greg



peteradtel
Posts: 47
Member Since:
2007-07-23
this should sort our sangoma a101 issues out

http://www.trixbox.org/forums/trixbox-forums/open-discussion/2-2-...
i belive this still should work
as long as you get the zaptel source and allow (and make sure that) the sangoma installation script recompiles it

+ 4 incoming call issues you might need to add this to your zapata-auto.conf file (i did)

pridialplan=local
priindication=inband



GSnover
Posts: 1405
Member Since:
2006-11-19
The Sangoma drivers in 2.4 eliminate this problem

They work perfectly, and have none of these issues.

Greg



Lo_rez
Posts: 29
Member Since:
2006-10-27
SysV Init Runlevels

SysV init is the initialization system found on most modern Linux distributions including CentOS/RHEL. It is fairly straightforward. You have a directory /etc/rc.d/init.d/ that contains all of your startup scripts. You link these scripts to the corresponding runlevel directory and this controls what starts when booting that runlevel.

For anyone who wants to learn in detail about how the CentOS/RHEL init system works I have placed a reference link below.

CentOS InitV System



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.