Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Card loading order...


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
cursor at telecomabmex...
Guest





PostPosted: Mon May 26, 2008 4:23 pm    Post subject: [asterisk-users] Card loading order... Reply with quote

I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses channels
1-31 and the TDM04B 32-35. The problem is that when we reboot the server
sometimes the TDM04B is recognized first and the TE110P second so the
configuration fails.

I do not know why this happens and to solve this I have to do a "service
zaptel stop" and then start the service again so the cards will be loaded in
the proper order. My /etc/sysconfig/zaptel file lists the TE110P module first.

Is there any way to make sure the cards always load in the same order?

--
Carlos Chavez
Director de Tecnolog?a
Telecomunicaciones Abiertas de M?xico S.A. de C.V.
Tel: +52-55-91169161 Ext 2001
Back to top
stotaro at totarotechn...
Guest





PostPosted: Mon May 26, 2008 4:34 pm    Post subject: [asterisk-users] Card loading order... Reply with quote

On Mon, May 26, 2008 at 5:23 PM, Carlos Chavez <cursor at telecomabmex.com> wrote:
Quote:
I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses channels
1-31 and the TDM04B 32-35. The problem is that when we reboot the server
sometimes the TDM04B is recognized first and the TE110P second so the
configuration fails.

I do not know why this happens and to solve this I have to do a "service
zaptel stop" and then start the service again so the cards will be loaded in
the proper order. My /etc/sysconfig/zaptel file lists the TE110P module first.

Is there any way to make sure the cards always load in the same order?

--
Carlos Chavez
Director de Tecnolog?a
Telecomunicaciones Abiertas de M?xico S.A. de C.V.
Tel: +52-55-91169161 Ext 2001


I guess you could load the zaptel modulesin rc.local in the correct
order and see if that fixes it. Obviously, getting rid of the current
method of starting the "DAHDI Service" (sounds obscene)

Thanks,
Steve Totaro
Back to top
matt at mattgwatson.ca
Guest





PostPosted: Mon May 26, 2008 5:27 pm    Post subject: [asterisk-users] Card loading order... Reply with quote

On May 26, 2008 05:23:10 pm Carlos Chavez wrote:
Quote:
I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses
channels 1-31 and the TDM04B 32-35. The problem is that when we reboot the
server sometimes the TDM04B is recognized first and the TE110P second so
the configuration fails.


Probably you have the modules listed somewhere else that they are getting
loaded from. However, I couldn;t really point you in the direction of where
to look without knowing what Linux distro you are using.

If you were running Gentoo you'd find it in /etc/modules/autoload.d/kernel-2.
[46] depending on your kernel version.

On (I believe) all Debian-derivitates (ie. Ubuntu) you'd find it
in /etc/modules

Fedora/RHEL/CentOS I *THINK* its /etc/modules.autoload

You could also have udev setup to do module autoloading

What you might want to do is setup your box to not load the zaptel init script
at bootup, reboot the box and see if you have the zaptel modules loaded (via
lsmod), your goal will be to keep digging around your system to find out what
is loading the modules and get it to stop, then re-setup the zaptel init
script and it should load them in the proper order for you.

If you watch the console output of your server booting and what loads just
before/just after you see the zaptel stuff go by, it might give you some
clues as to when the modules are being loaded which might help you track it
down.

--
Matt
http://www.mattgwatson.ca
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Tue May 27, 2008 1:30 am    Post subject: [asterisk-users] Card loading order... Reply with quote

On Mon, May 26, 2008 at 05:34:39PM -0400, Steve Totaro wrote:

Quote:
I guess you could load the zaptel modulesin rc.local in the correct
order and see if that fixes it.

(rc.local only runs after all the other init scripts, so it won't help
here)

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
stotaro at totarotechn...
Guest





PostPosted: Tue May 27, 2008 5:43 am    Post subject: [asterisk-users] Card loading order... Reply with quote

On Tue, May 27, 2008 at 2:30 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
Quote:
On Mon, May 26, 2008 at 05:34:39PM -0400, Steve Totaro wrote:

Quote:
I guess you could load the zaptel modulesin rc.local in the correct
order and see if that fixes it.

(rc.local only runs after all the other init scripts, so it won't help
here)


Sure it does if you had not snipped the very next line quoted below.

Please quote me in the correct context and include the important and
relevant information, otherwise it is quite misleading....

"Obviously, getting rid of the current
method of starting the "DAHDI Service" (sounds obscene)"

Thanks again,
Steve T
Back to top
sruffell at digium.com
Guest





PostPosted: Tue May 27, 2008 11:18 am    Post subject: [asterisk-users] Card loading order... Reply with quote

Matt Watson wrote:
Quote:
On May 26, 2008 05:23:10 pm Carlos Chavez wrote:
Quote:
I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses
channels 1-31 and the TDM04B 32-35. The problem is that when we reboot the
server sometimes the TDM04B is recognized first and the TE110P second so
the configuration fails.


Probably you have the modules listed somewhere else that they are getting
loaded from. However, I couldn;t really point you in the direction of where
to look without knowing what Linux distro you are using.
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Tue May 27, 2008 3:44 pm    Post subject: [asterisk-users] Card loading order... Reply with quote

On Tue, May 27, 2008 at 11:18:00AM -0500, Shaun Ruffell wrote:
Quote:
Matt Watson wrote:
Quote:
On May 26, 2008 05:23:10 pm Carlos Chavez wrote:
Quote:
I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses
channels 1-31 and the TDM04B 32-35. The problem is that when we reboot the
server sometimes the TDM04B is recognized first and the TE110P second so
the configuration fails.


Probably you have the modules listed somewhere else that they are getting
loaded from. However, I couldn;t really point you in the direction of where
to look without knowing what Linux distro you are using.

From my experience, it's typically udev that loads the drivers before
the zaptel init script does. What you will want to do is make sure that
the wcte12xp and wctdm modules are added to udevs blacklist (on Fedora8
/etc/modprobe.d/blacklist...).

But then the zaptel init.d script won't load them either, right?

Isn't there a way to modprobe for some drivers before udev?

(there is on Debian and Gentoo).

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
sruffell at digium.com
Guest





PostPosted: Tue May 27, 2008 4:27 pm    Post subject: [asterisk-users] Card loading order... Reply with quote

Tzafrir Cohen wrote:
Quote:
On Tue, May 27, 2008 at 11:18:00AM -0500, Shaun Ruffell wrote:
Quote:
Matt Watson wrote:
Quote:
On May 26, 2008 05:23:10 pm Carlos Chavez wrote:
Quote:
I am having a problem with a couple servers. They both have a Digium
TE110P and a TDM04B card. I have setup the system so the TE110P uses
channels 1-31 and the TDM04B 32-35. The problem is that when we reboot the
server sometimes the TDM04B is recognized first and the TE110P second so
the configuration fails.

Probably you have the modules listed somewhere else that they are getting
loaded from. However, I couldn;t really point you in the direction of where
to look without knowing what Linux distro you are using.
From my experience, it's typically udev that loads the drivers before
the zaptel init script does. What you will want to do is make sure that
the wcte12xp and wctdm modules are added to udevs blacklist (on Fedora8
/etc/modprobe.d/blacklist...).

But then the zaptel init.d script won't load them either, right?

The blacklist is only used to ignore a module's internal aliases unless the --use-blacklist option to modprobe is specified. Since the zaptel init script loads the modules by module name and not by their PCI aliases, the blacklist will not prevent it from functioning as intended.

Quote:

Isn't there a way to modprobe for some drivers before udev?

There are ways to modprobe arbitrary modules before udev runs, but nothing that is touched by a standard install of zaptel (as far as I'm aware).

Cheers,
Shaun
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services