[Asterisk-Users] loading zaptel drivers automatically upon reboot

Carlos Alperin calperin at senecacom.net
Mon Jan 16 18:29:59 MST 2006


Ok,

We got it.

I stop asterisk, then I reboot the machine.

However the lsmod reports zaptel loaded, there is no file at all on
/proc/zaptel.

Now, if I run service zaptel restart, I get:

[root at SIP2-MI proc]# service zaptel restart
Unloading zaptel hardware drivers:.
Removing zaptel module:                                    [  OK  ]
Loading zaptel framework:                                  [  OK  ]
Waiting for zap to come online...OK
Loading zaptel hardware modules: wct1xxpRunning ztcfg:     [  OK  ]
[root at SIP2-MI proc]# cd zaptel
[root at SIP2-MI zaptel]# ls
1
[root at SIP2-MI zaptel]# cat 1
Span 1: WCT1/0 "Digium Wildcard T100P T1/PRI Card 0" B8ZS/ESF ClockSource

           1 WCT1/0/1 Clear
           2 WCT1/0/2 Clear
           3 WCT1/0/3 Clear
           4 WCT1/0/4 Clear
           5 WCT1/0/5 Clear
           6 WCT1/0/6 Clear
           7 WCT1/0/7 Clear
           8 WCT1/0/8 Clear
           9 WCT1/0/9 Clear
          10 WCT1/0/10 Clear
          11 WCT1/0/11 Clear
          12 WCT1/0/12 Clear
          13 WCT1/0/13 Clear
          14 WCT1/0/14 Clear
          15 WCT1/0/15 Clear
          16 WCT1/0/16 Clear
          17 WCT1/0/17 Clear
          18 WCT1/0/18 Clear
          19 WCT1/0/19 Clear
          20 WCT1/0/20 Clear
          21 WCT1/0/21 Clear
          22 WCT1/0/22 Clear
          23 WCT1/0/23 Clear
          24 WCT1/0/24 HDLCFCS

It means that for some reason, I need to delay more the load of zaptel on
booting, or force to stop & reload, before to load asterisk as a module.

How to change priority on the process. Do I need to define a custom pid?

Thanks,

Carlos Alperin

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Monday, January 16, 2006 3:03 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] loading zaptel drivers automatically upon
reboot

On Sat, Jan 14, 2006 at 03:55:50PM -0500, Carlos Alperin wrote:
> After install everything on the supposedly right place, my conclusion is
> that zaptel doesn't load wct1xxp module. 

That's easy to test: before you restart zaptel, look at /proc/zaptel .
if /proc/zaptel exists, zaptel was loaded . if /proc/zaptel/1 exists and
reports those 24 channels, then wct1xxp has loaded and identified your
card.

Another possible reason: make sure that the zaptel init.d script runs
before the asterisk one. It needs to have a lower "start" number. Use
'chkconfig --list asterisk' and 'chkconfig --list zaptel' to verify
that.

> 
> Then, that is the reason for Asterisk to fail loading.
> 
> However I change the MODULES & RMODULES on the zaptel on /etc/init.d &
> /etc/sysconfig, it continuous same way.
> 
> Carlos Alperin
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir
Cohen
> Sent: Saturday, January 14, 2006 2:36 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] loading zaptel drivers automatically upon
> reboot
> 
> On Fri, Jan 13, 2006 at 09:39:09PM -0500, Carlos Alperin wrote:
> > That is right for zaptel. But you still has to do modprobe wctdm on
> rc.local
> > before to load asterisk.
> 
> rc.local is run after the standard init.d scripts. Thus if you load
> asterisk in an init.d script, you'd be loading the zaptel modules too
> late.
> 
> Just add another init.d script. See the skeleton in /etc/init.d (there's
> a README there IIRC).
> 
> -- 
> Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
> http://tzafrir.org.il |                           | a Mutt's  
> tzafrir at cohens.org.il |                           |  best
> ICQ# 16849755         |                           | friend
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list