Discussion:
[asterisk-users] cli commands missing
Eric Fort
2008-10-12 03:17:09 UTC
Permalink
I just loaded a new asterisk install (1.4.19) and found that the sip, iax,
and extentions commands are missing from the cli and are not listed in help
either? Any idea what could have happened or where these commands may have
gone?

Thanks,

Eric
Tzafrir Cohen
2008-10-12 03:40:32 UTC
Permalink
Post by Eric Fort
I just loaded a new asterisk install (1.4.19) and found that the sip, iax,
and extentions commands are missing from the cli and are not listed in help
either? Any idea what could have happened or where these commands may have
gone?
It probably means that the respective modules (chan_sip.so,
chan_iax2.so, etc.) were not loaded. Do you have autoload enabled in
modules.conf?
--
Tzafrir Cohen
icq#16849755 jabber:***@xorcom.com
+972-50-7952406 mailto:***@xorcom.com
http://www.xorcom.com iax:***@local.xorcom.com/tzafrir
Eric Fort
2008-10-12 04:31:01 UTC
Permalink
autoload is enabled but all the modules are not loaded. Why would this be?
what should I look at? The cli output and modules.conf are below.

Eric

modules.conf:

;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
noload=chan_oss.so
noload=chan_alsa.so
noload=chan_phone.so

[global]
-----------------------------------------------------------------------------------------------

here's what's loaded:

test*CLI> module show
Module Description Use
Count
res_musiconhold.so Music On Hold Resource 0
res_speech.so Generic Speech Recognition API 0
res_features.so Call Features Resource 0
res_monitor.so Call Monitoring Resource 0
res_adsi.so ADSI Resource 0
res_smdi.so Simplified Message Desk Interface (SMDI) 0
res_crypto.so Cryptographic Digital Signatures 0
res_agi.so Asterisk Gateway Interface (AGI) 0
res_indications.so Indications Resource 0
app_sayunixtime.so Say time 0
codec_g726.so ITU G.726-32kbps G726 Transcoder 0
func_strings.so String handling dialplan functions 0
pbx_realtime.so Realtime Switch 0
app_cdr.so Tell Asterisk to not maintain a CDR for 0
app_sms.so SMS/PSTN handler 0
codec_a_mu.so A-law and Mulaw direct Coder/Decoder 0
app_page.so Page Multiple Phones 0
format_vox.so Dialogic VOX (ADPCM) File Format 0
app_echo.so Simple Echo Application 0
app_channelredirect.so Channel Redirect 0
chan_usbradio.so usb Console Channel Driver 0
21 modules loaded

---------------------------------------------------------------------------------------------------------------------


Eric
Post by Tzafrir Cohen
Post by Eric Fort
I just loaded a new asterisk install (1.4.19) and found that the sip,
iax,
Post by Eric Fort
and extentions commands are missing from the cli and are not listed in
help
Post by Eric Fort
either? Any idea what could have happened or where these commands may
have
Post by Eric Fort
gone?
It probably means that the respective modules (chan_sip.so,
chan_iax2.so, etc.) were not loaded. Do you have autoload enabled in
modules.conf?
--
Tzafrir Cohen
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Michiel van Baak
2008-10-12 08:10:49 UTC
Permalink
Post by Eric Fort
autoload is enabled but all the modules are not loaded. Why would
this be? what should I look at? The cli output and modules.conf
are below.
Eric
;
; Asterisk configuration file
;
; Module Loader configuration file
;
[modules]
autoload=yes
noload=chan_oss.so
noload=chan_alsa.so
noload=chan_phone.so
[global]
-----------------------------------------------------------------------------------------------
A couple of things to check:
Is your DNS lookup on the box working?
Are all the configfiles readable by asterisk?

Can you try to stop asterisk and start it with:
asterisk -vvvvvvgcd
That will show you what it's doing and may give you pointers why it's
not working.
Eric Fort
2008-10-13 01:06:28 UTC
Permalink
resolve.conf and dns is working. The problem persists.
/var/log/asterisk/messages shows a few notices and warnings on res_smdi.c,
res_musiconhold.c, and usbradio.c. when I disable loading of these in
modules.conf asterisk crashes on load.

Eric
Post by Eric Fort
Post by Eric Fort
autoload is enabled but all the modules are not loaded. Why would
this be? what should I look at? The cli output and modules.conf
are below.
Eric
;
; Asterisk configuration file
;
; Module Loader configuration file
;
[modules]
autoload=yes
noload=chan_oss.so
noload=chan_alsa.so
noload=chan_phone.so
[global]
-----------------------------------------------------------------------------------------------
Is your DNS lookup on the box working?
Are all the configfiles readable by asterisk?
asterisk -vvvvvvgcd
That will show you what it's doing and may give you pointers why it's
not working.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Karsten Wemheuer
2008-10-13 16:51:47 UTC
Permalink
Hi Eric,
Post by Eric Fort
resolve.conf and dns is working. The problem persists.
/var/log/asterisk/messages shows a few notices and warnings on
res_smdi.c, res_musiconhold.c, and usbradio.c. when I disable loading
of these in modules.conf asterisk crashes on load.
Eric
try to start asterisk in foreground.
First stop it and then start it on the shell:
asterisk -vvvvvv

You will see all the messages while autoloading. Some of them might tell
You, why a module is not loaded.

HTH,

Regards,
Karsten
Tzafrir Cohen
2008-10-13 23:59:54 UTC
Permalink
Post by Karsten Wemheuer
Hi Eric,
Post by Eric Fort
resolve.conf and dns is working. The problem persists.
/var/log/asterisk/messages shows a few notices and warnings on
res_smdi.c, res_musiconhold.c, and usbradio.c. when I disable loading
of these in modules.conf asterisk crashes on load.
Eric
try to start asterisk in foreground.
asterisk -vvvvvv
Actually often many v-s flood you with messages and hide the errors.

asterisk -U asterisk -c

But then again, this information should already be in the logs.
--
Tzafrir Cohen
icq#16849755 jabber:***@xorcom.com
+972-50-7952406 mailto:***@xorcom.com
http://www.xorcom.com iax:***@local.xorcom.com/tzafrir
Andrew Joakimsen
2008-10-12 07:05:37 UTC
Permalink
I've seen something like that (in your next post you show 20-some
modules, a stock install will be > 100 modules) when using the
openSUSE distribution Asterisk package along with asterisk-addons
package. What happens is it gets stuck on some module that is not
configured.... I think one of the ones relating to database or CDR.

You will notice if you do an asterisk -vvvvvc that you did not get
"Asterisk is ready" at the point where your modules are missing. I
think after a few minutes everything loads (module times out starting
with its default config)

If this is the case you should just disable any modules you don't use
from /usr/lib/asterisk/modules or /usr/lib64/asterisk/modules.... you
can move them out of there at first and eventually add them as noload
to modules.conf (so when you upgrade to a newer version you don't run
into the same issue).
Post by Eric Fort
I just loaded a new asterisk install (1.4.19) and found that the sip, iax,
and extentions commands are missing from the cli and are not listed in help
either? Any idea what could have happened or where these commands may have
gone?
Thanks,
Eric
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Continue reading on narkive:
Loading...