Bug 137154

Summary: zaptel - failes to creat chanels
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Tony Nichols <tony>
Component: OtherAssignee: Reinhard Max <max>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: tony
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: added sleep 6 per Reinhard

Description Tony Nichols 2005-12-06 16:18:54 UTC
Looks like the ztcfg command runs BEFORE the module is loaded. So Asterisk will not load. As a work around I edited the /etc/init.d/asterisk to run ztcfg -vv --verbose setting-- and now asterisk creates the channels and runs.
I would be interested in creating the rpms for the zaptel- libpri - asterisk programs- if I could be pointed to an instuctional page on how it is done. Asterisk - libpri - zaptel have now reached verion 1.2.0 listing over 3k fixes-enhancements. If someone is already doing the rpms -- please point me to their location.
Thanks very much for your help! and a GREAT distro.
t o n y
Comment 1 Michael Gross 2005-12-06 17:18:10 UTC
Hello Tony,

The packages you mentioned are already being maintained by Reinhard Max (max@suse.de).

Thanks for your interest anyway. As soon as the open build server will be ready, everyone will get an easy way to create and maintain packages for SUSE Linux of his own. This should happen in a few months. The progress can be checked at http://www.opensuse.org. There will be of course a verbose documentation for it.
Thanks for the nice words ;)

To your bug: I will reassign this to Reinhard. Reinhard: Please look into that.

Comment 2 Reinhard Max 2005-12-06 17:33:44 UTC
Tony, as you don't seem to know that SUSE 10.0 includes packages for Asterisk and zaptel, I guess that your bug report also refers to self-compiled versions of those packages. In that case, please ask the authors/maintainers of Asterisk and zaptel for help, as we can only look for bugs in the packages that are provided by us.

But in case you are indeed referring to the packages that come with SUSE 10.0, please provide me with the following details:

1) What does your machine look like regarding CPU power and RAM?

2) What kind of zaptel cards and how many of them do you have installed?

3) Did you put the names of the zaptel modules that are needed
   for your cards into /etc/sysconfig/zaptel ?

4) Did you activate the zaptel init script with "insserv zaptel"?
Comment 4 Tony Nichols 2005-12-06 17:48:50 UTC
The packages are from the official 10.0 DVD

1. I have an AMD opteron with 1gb ram and 1 80gb sata drive- the other is a p4 (2.4ghz dell sc420)1gb ram and 1 80gb sata

2. The digium single t1 card (wct1xxp) in the opteron. wcfxo (4port fxo) in the p4

3. yes

4. I activated via yast, system, runlevel
Comment 5 Reinhard Max 2005-12-06 18:07:38 UTC
OK, so your machines are powerful enough and the configuration seems to be OK. 

Could you please remove the call to ztcfg form the asterisk startup script, and add some seconds of sleep before the call to $ZAPTEL_BIN in the "start" section of /etc/init.d/zaptel ?

Due to the lack of other zaptel hardware, the only configuration I've ever tested the init script with was a single HFC-S card, and it could well be, that not all of your cards are yet initialized at the time when the init script detects the appearance of /dev/zap/ctl and goes on to run $ZAPTEL_BIN (which is ztcfg).

Thanks.
Comment 6 Tony Nichols 2005-12-07 13:53:29 UTC
Created attachment 60007 [details]
added sleep 6 per Reinhard

Reinhard recommended adding a sleep - to allow a litle more time for the zaptel cards to load. It is working perfectly now.
Comment 7 Reinhard Max 2005-12-07 14:20:05 UTC
Was 6 the lowest number you got it working with, or would it also work if you use,  say 3 or even 1?

And I'd still be interested in the error message you get from the zaptel script when the sleep is not there.
Comment 8 Tony Nichols 2005-12-08 14:36:59 UTC
Sorry for the late reply... my 8 year old was kind enough to share her cold with me :-)

I changed the sleep to 1 and everything still works!

as for the errors.... I did a grep zaptel on /var/log/messages and the only entries I found are:
kernel: zaptel: module not supported by Novell, setting U taint flag.
However if I tried to connect to asterisk-- the message asterisk not running would appear-- I could run lsmod and zaptel was there-- but I had to run ztcfg -vv to channelize the card-- then asterisk-- and all worked. That is when I added the ztcfg to init.d asterisk and it worked from then on.

The sleep 1 seems to make enerything nice now ;-) so I will start changing the other systems.

A very big thank you for your work maintaing this program. I still hope there will be a way to update the zaptel to the new 1.2.1 version.
Comment 9 Tony Nichols 2005-12-08 15:05:32 UTC
oops forgot ... here is the sysconfig/zaptel entry:

ZAPTEL_MODULES=wct1xxp (this for the x86_64
ZAPTEL_MODULES=wcfxo (this is for the p4 Dell sc420)
Comment 10 Tony Nichols 2006-01-04 13:29:12 UTC
Hey Reinhard,
Hope the hollidays went well for you and your family!
Any work on 1.2.1 yet? or an update for the 1.0.9 packages?

Thanks for all your hard work and patience working these things out. My offere is still good if you would like me to send you an fxo card for future development.

t o n y
Comment 11 Reinhard Max 2006-01-04 13:54:23 UTC
I've packaged 1.2.1 for the upcoming 10.1 release of SUSE Linux, but I can try to build the packages for 10.0 and upload them to the FTP server.
Comment 12 Tony Nichols 2006-01-04 15:12:11 UTC
That would be GREAT!
Is there a eta for 10.1 yet? I will be purchasing it (as always since 9.0) so if it will be soon I can wait.

Thanks again ;-)

t o n y
Comment 13 Reinhard Max 2006-01-04 15:17:41 UTC
No beta yet, but an alpha from Dec, 15th, which still has the old asterisk packages.

http://www.opensuse.org
Comment 14 Reinhard Max 2006-03-09 10:44:25 UTC
Tony, have you meanwhile tried it with one of the SUSE Linux 10.1 betas that comes with a newer version of zaptel?
Comment 15 Tony Nichols 2006-03-09 13:21:45 UTC
No I have not tried it yet. I applied the newest release on a 9.3 server we have (out of state) and it killed it. So now I am a litle scared of it. I have a spare server that I will be loading SUSE on -- just for testing-- what would be your recommendation? 10 or the beta 10.1 If I load 10.0 I could test it for all my current servers -- however when 10.1 goes official I will be purchasing several copies (want to kep you guys in business!) and load them.
It is important to note though... when I went to repair the damaged server (x86-P4) I didn't have to make the changes I did on the opteron x86_64 that I have at my office.
Comment 16 Reinhard Max 2006-11-07 14:16:05 UTC
Any news on this?
Comment 17 Tony Nichols 2006-11-07 16:04:41 UTC
(In reply to comment #16)
> Any news on this?
> 
10.0 has been working perfectly on ALL the servers... even with auto updates turned on. There was a few days after applying the security fix for IAX that things went hokey. But it all went away.
I now own 2 copies of 10.1 but it hasn't been working out very well. With the updater isssues, and my evolution crashing several times a week with a too many files open error, I've been afraid to test the it with asterisk.

I hope all is well with you and your family ;-)
BTW... the novell/ms thing just scares the *ell out of me...
Comment 18 Reinhard Max 2006-11-07 17:01:56 UTC
OK, so this one can be closed.