[asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Gilles
Hello

I'm using Asterisk 1.4.20, and can't have Asterisk not load modules I
don't need:


 cat modules.conf
noload = codec_speex.c

ip04*CLI reload
ip04*CLI show modules
codec_speex.so


Just to check, I added the actual filename (.so):


 cat modules.conf
noload = codec_speex.c
noload = codec_speex.so

ip04*CLI reload
ip04*CLI show modules
codec_speex.so

 /etc/init.d/asterisk stop
 /etc/init.d/asterisk start
 asterisk -vvvr

ip04*CLI show modules
codec_speex.so


Does someone know why Asterisk still loads modules even with the above
lines in modules.conf?

Thank you.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Leif Madsen

On 11-02-13 09:52 AM, Gilles wrote:

I'm using Asterisk 1.4.20, and can't have Asterisk not load modules I
don't need:

Does someone know why Asterisk still loads modules even with the above
lines in modules.conf?


It looks like you're loading Asterisk, which loads all the modules, then 
modifying modules.conf and just doing a reload at that point.


Try either restarting Asterisk to see if the modules still load (it shouldn't). 
Before doing the reload, I'd do a module unload chan_speex.so then do your 
reload and see if that works.


I'm not sure reload actually looks at modules.conf at that point. It probably 
just reloads all the modules you have in memory, rather than unloading 
everything, then parsing modules.conf and loading everything in there back into 
memory (which I think is what you're expecting).


Leif.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Kevin P. Fleming

On 02/13/2011 09:36 AM, Leif Madsen wrote:


I'm not sure reload actually looks at modules.conf at that point. It
probably just reloads all the modules you have in memory, rather than
unloading everything, then parsing modules.conf and loading everything
in there back into memory (which I think is what you're expecting).


This is correct. 'reload' is not 'restart', it only tells all the 
currently-loaded modules to 'reload' themselves (which generally means 
they will reparse their configuration files to look for changes).


--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kflem...@digium.com
Check us out at www.digium.com  www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Gilles
On Sun, 13 Feb 2011 10:36:43 -0500, Leif Madsen
leif.mad...@asteriskdocs.org wrote:
Try either restarting Asterisk to see if the modules still load (it 
shouldn't). 
Before doing the reload, I'd do a module unload chan_speex.so then do your 
reload and see if that works.

Thanks for the tip, but I also tried restarting Asterisk, and
codec_speex.so is still loaded:

/etc/init.d/asterisk stop
/etc/init.d/asterisk start

Here's my modules.conf:
...
noload = codec_speex.c

Could there be some configuration somewhere that tells Asterisk to
ignore modules.conf?

Thank you.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Mark Willis

On 2011-02-13 15:21, Gilles wrote:

noload = codec_speex.c

Try noload = codec_speex.so

Mark


--
Mark Willis
Star One Telecom
Office: 1-800-889-7001
Cell: 210 880 5097
http://staronetel.com



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Gilles
On Sun, 13 Feb 2011 15:32:03 -0600, Mark Willis
marksli...@markwillis.net wrote:
Try noload = codec_speex.so

That dit it. However, I'm puzzled by the fact that the default
filenames in modules.conf all ended with .c instead of .so:

===
/etc/asterisk cat modules.conf
[modules]
autoload=yes

noload = pbx_gtkconsole.c
noload = pbx_kdeconsole.c
noload = app_intercom.c
...
===

Thank you.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Mark Willis

On 2011-02-13 15:49, Gilles wrote:

On Sun, 13 Feb 2011 15:32:03 -0600, Mark Willis
marksli...@markwillis.net  wrote:

Try noload =  codec_speex.so

That dit it. However, I'm puzzled by the fact that the default
filenames in modules.conf all ended with .c instead of .so:

===
/etc/asterisk  cat modules.conf
[modules]
autoload=yes

noload =  pbx_gtkconsole.c
noload =  pbx_kdeconsole.c
noload =  app_intercom.c
...
===

Thank you.



The are .so in every modules.conf I've seen.

Mark

--
Mark Willis
Star One Telecom
Office: 1-800-889-7001
Cell: 210 880 5097
http://staronetel.com



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] [modules.conf] Modules still loaded after noload

2011-02-13 Thread Gilles
On Sun, 13 Feb 2011 15:59:52 -0600, Mark Willis
marksli...@markwillis.net wrote:
The are .so in every modules.conf I've seen.

You're right. It looks like the modules.conf that came with the
Asterisk package is totally wrong:

www.voip-info.org/wiki/view/Asterisk+config+modules.conf

Thank you.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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