OpenWrt Forum Archive

Topic: Asterisk Installation on OpenWRT 8.09.1 Modules not loading

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,

I have sucessfully installed Asterisk14 on OpenWrt 8.09.1 and have it started ok, but when I issue "module show" It does not show the loaded modules. What could be the problem?. Please help!!

Connected to Asterisk 1.4.23.1 currently running on OpenWrt (pid = 876)
OpenWrt*CLI> module show
Module                         Description                              Use Count
0 modules loaded

I have done the following in modules.conf

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

[modules]
autoload=no

;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
load => res_musiconhold.so ; Music On Hold Resource
load => chan_iax2.so ; Inter Asterisk eXchange (Ver 2)
load => chan_local.so ; Local Proxy Channel
load => chan_sip.so ; Session Initiation Protocol (SIP)
load => codec_alaw.so ; A-law Coder/Decoder
load => codec_gsm.so ; GSM/PCM16 (signed linear) Codec Translation
load => codec_ulaw.so ; Mu-law Coder/Decoder
load => format_gsm.so ; Raw GSM data
load => format_pcm.so ; Raw uLaw 8khz Audio support (PCM)
load => format_pcm_alaw.so ; Raw aLaw 8khz PCM Audio support
load => format_wav.so ; Microsoft WAV format (8000hz Signed Line
load => format_wav_gsm.so ; Microsoft WAV format (Proprietary GSM)
load => app_dial.so ; Dialing Application
load => app_echo.so ; Simple Echo Application
load => app_macro.so ; Extension Macros
load => app_milliwatt.so ; Digital Milliwatt (mu-law) Test Application
load => app_playback.so ; Trivial Playback Application
load => app_sayunixtime.so ; Say time
load => app_verbose.so ; Send verbose output
load => pbx_config.so ; Text Extension Configuration
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]
chan_modem.so=no

I'm having the exact same issue. I'm using the same build.

I sorta figured out why the modules aren't loading for me. i ran asterisk with the -c switch and saw that it couldn't find the module.conf file. So to test it. I copied module.conf from /mnt/usb/asterisk to the root /etc/asterisk and it saw it. how to get Asterisk to look to the mount location for all the files ?

I have now resolved my problem above by symlinking the /sdcard/etc/asterisk folder to /etc by doing the following.

ln -s /sdcard/etc/asterisk /etc
reboot

Siafu wrote:

I sorta figured out why the modules aren't loading for me. i ran asterisk with the -c switch and saw that it couldn't find the module.conf file. So to test it. I copied module.conf from /mnt/usb/asterisk to the root /etc/asterisk and it saw it. how to get Asterisk to look to the mount location for all the files ?

The best way to do this in your case would be to remove the whole Asterisk folder & "copied 'module.conf' file from /etc folder and symlink the whole Asterisk folder from your USB as follows.

ln -s /mnt/usb/asterisk /etc

What the above command would do is create and symlink a folder called "asterisk" in /etc to /mnt/usb/asterisk

Note:

What I am confused with your setup is that strangly you do not have a folder called "etc" on your "usb" what has happened to all the other folders that belong to Asterisk which should be on your "usb" i.e etc,var,lib,sbin,usr & www?.

Hope the above helps.

I will try the same when i get home. I should work. I figured that is what I needed to do.

The discussion might have continued from here.