[asterisk-users] Zaptel kernel module load order

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Apr 30 17:37:01 MST 2007


On Mon, Apr 30, 2007 at 07:14:22PM -0500, Mitch Jackson wrote:
> Evening,
> 
> My latest asterisk box is having a difficult problem.  It is
> configured with one TE210P and TDM400P with four FXO modules.  I'm
> running FC6.
> 
> The TE210P only has a single PRI.

You have exactly two modules. either wctdm loads and registers its span 
first or wct4xxp loads first and registers its spans.

There are three cases to consider:

1. system boot 

2. Modules load in the zaptel init script

3. manual load

It would make much sense to put the T1 card first, o it will
automatically become the master, and you have indeed configured the
cards so,

The order in (1) is arbitrary but fixed. It is affected by the order of
scanning of the PCI bus by udev or someone near-by. It may be modified
by changing PCI slots and such.

(2) is normally mostly meaningful on "reastart": unloading and reloading
of the modules. The order in the init.d script is set manually.
The order is set by the value of MODULES, as set in
/etc/sysconfig/zaptel .

With (3) you do what you want. But this is no way for automation...

> 
> When the system boots, it is completely random what order the zaptel
> modules will get loaded in.  Sometimes zttool shows the FXO as the
> last span, sometimes as the first.  When it does load as the first,
> which happens more often, nothing will initialize properly.  When this
> happens, I have to unload all the zaptel modules, and re-load them
> over and over again, until the hardware comes up in the correct order.
> The order it is loaded is in no way related to what order I load the
> modules on the command line.  This problems makes it unlikely that
> asterisk will start properly if the system is rebooted.
> 
> Is there something I can do to ensure the modules get loaded in the
> correct order?
> 
> Here's my config files, if they will help...
> 
> # cat /etc/zaptel.conf
> span=1,1,0,esf,b8zs
> bchan=1-23
> dchan=24
> defaultzone=us
> loadzone=us
> 
> span=2,1,0,esf,b8zs

off-topic, but:

span=2,2,0,esf,b8zs

(give it lower priority), right?

> bchan=25-47
> dchan=48
> defaultzone=us
> loadzone=us
> 
> fxoks=49-52
> defaultzone=us
> loadzone=us

You only need to put defaultzone and loadzone once (harmless, though).

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-users mailing list