No such module ' chan_iax2.so'


#1

I’m primarily using Asterisk for home use, I’ve played around with versions prior to SVN-branch-1.8-r324685 (the one I’m currently using) but never professionally or seriously. I’ve about 2 years of Linux use as well in a non-serious manner. The primary purpose for my use is for IAX2 trunking around the house and between a friend’s house over our commercial Internet connections. I wanted to start from scratch to really know how everything works and found the wonderful 3rd edition of Asterisk: The Definitive Guide at O’Reilly. I have mainly based my installation off of this. Relevant details below:

Machine: Old scrubtop, Dell Inspiron 6000 (successfully ran 1.6 in the past on this machine to do what I’m doing now)
Linux flavor: CentOS 5.6 32 bit i686
Kernel version: 2.6.18-238.12.1el5
Asterisk Version: SVN-branch-1.8-r324685
Also Important: I’m running as a non-root user. I have edited the group and name in asterisk.conf and chown’d the right directories (I believe). I have also installed visudo so I can execute things like ‘asterisk -r’ as root.

Here is my issue:

I worked my way up to a simple iax.conf and wanted to reload chan_iax2.conf and see if the peers and users were registered, I go to ‘sudo asterisk -r’.

Then, I issue a reload for the chan_iax2.so (*CLI> module reload chan_iax2.so) and it says:

No such module ’ chan_iax2.so’

So then I think to myself: “hmmm, maybe I didn’t include it in the modules conf file”. I go back to modules.conf and simply have only autoload=yes for [modules]. I try again to reload the IAX2 channel at the asterisk console. Nothing.

I reboot the box and start up asterisk again. Nothing. I think to myself “wtf here” and I hunt down where the modules are located. I head over to /usr/lib/asterisk/modules to verify that it contains chan_iax2.so It does. I get angry. Bourbon. Angrier. Sleep.

So, I thought I would pop over here and throw it out to the guys who are at the top where the air is crisp. Please let me know if I’ve left something out. I’ll answer your questions as promptly as I can. Oh, I’ve also checked out the errata section for the book on O’reilly site and searched Google for known issues but haven’t been successful yet. Thank you in advance for your help, or your pointing me to the right direction.


#2

First thing should be to figure out more details about what exactly is happening when You try to load chan_iax2.so.
So just edit Your logger.conf to contain at least the line

Now You should start Your asterisk (assuming autoload=yes in modules.conf).
After the start You may just exit the asterisk process (probably after trying Your module reload chan_iax2.so again) and have a look at Your file /var/log/asterisk/full. You may grep it for iax2.
If You’re a lucky guy, these messages You’ll find there will lead You already to the solution. If not, feel free to post this log here and maybe we can assist You.


#3

That’s actually some good advice and I should have thought logger.conf to begin with. Foolish of me not to. I suppose I was hoping that someone would have said ‘aha’ and knew right away. Don’t let me seem ungrateful, I will include below (it did find an error but I wasn’t able to correct it straight away because I’m unsure of what it means).

First, in the grep’d out section and then the full file in case someone needs to glean more from it. I really appreciate the help. I don’t frequent forums often and if this is too nooby a question I apologize.

  1. /var/log/asterisk/full
    less | grep iax

[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_decrypt_key
[Aug 14 21:45:18] WARNING[2393] loader.c: Module 'chan_iax2.so' could not be loaded.
  1. /var/log/asterisk/full
    In its entirety

[Aug 14 21:37:50] VERBOSE[2571] config.c:   == Parsing '/etc/asterisk/logger.conf': [Aug 14 21:37:50] VERBOSE[2571] config.c:   == Found
[Aug 14 21:37:50] VERBOSE[2571] logger.c:  Asterisk Queue Logger restarted
[Aug 14 21:37:50] VERBOSE[2571] pbx.c:     -- Remove parkedcalls/700/1, registrar=features; con=parkedcalls(0xa3318f8); con->root=0xa331978
[Aug 14 21:37:50] VERBOSE[2571] pbx.c:     -- Registered extension context 'parkedcalls'; registrar: features
[Aug 14 21:37:50] VERBOSE[2571] pbx.c:     -- Added extension '700' priority 1 to parkedcalls
[Aug 14 21:37:50] WARNING[2571] features.c: Could not load features.conf
[Aug 14 21:37:50] VERBOSE[2571] dsp.c:        > Can't find dsp config file dsp.conf. Assuming default silencethreshold of 256.
[Aug 14 21:37:50] VERBOSE[2571] cel.c:     -- CEL logging disabled.
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'res_adsi' (ADSI Resource)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_alaw.so' (A-law Coder/Decoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_lpc10.so' (LPC10 2.4kbps Coder/Decoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'res_rtp_asterisk.so' (Asterisk RTP Stack)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'cdr_custom.so' (Customizable Comma Separated Values CDR Backend)
[Aug 14 21:37:50] ERROR[2571] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'res_clialiases.so' (CLI Aliases)
[Aug 14 21:37:50] ERROR[2571] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_g726.so' (ITU G.726-32kbps G726 Transcoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'app_playback.so' (Sound File Playback Application)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'res_musiconhold.so' (Music On Hold Resource)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'chan_dahdi.so' (DAHDI Telephony Driver w/PRI)
[Aug 14 21:37:50] ERROR[2571] chan_dahdi.c: Unable to load config chan_dahdi.conf
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[Aug 14 21:37:50] WARNING[2571] app_voicemail.c: Failed to load configuration file.
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'res_phoneprov.so' (HTTP Phone Provisioning)
[Aug 14 21:37:50] WARNING[2571] res_phoneprov.c: Unable to load users.conf
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'app_minivm.so' (Mini VoiceMail (A minimal Voicemail e-mail System))
[Aug 14 21:37:50] WARNING[2571] app_minivm.c: Failed to load configuration file. Module activated with default settings.
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_gsm.so' (GSM Coder/Decoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_ulaw.so' (mu-Law Coder/Decoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'app_meetme.so' (MeetMe conference bridge)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_dahdi.so' (Generic DAHDI Transcoder Codec Translator)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'codec_g722.so' (ITU G.722-64kbps G722 Transcoder)
[Aug 14 21:37:50] VERBOSE[2571] loader.c:     -- Reloading module 'cel_custom.so' (Customizable Comma Separated Values CEL Backend)
[Aug 14 21:37:50] ERROR[2571] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[Aug 14 21:39:04] VERBOSE[2571] asterisk.c:     -- Remote UNIX connection disconnected
[Aug 14 21:40:06] VERBOSE[2439] asterisk.c:     -- Remote UNIX connection
[Aug 14 21:40:09] NOTICE[2579] manager.c: Unable to open AMI configuration manager.conf, or configuration is invalid. Asterisk management interface (AMI) disabled.
[Aug 14 21:40:09] VERBOSE[2579] config.c:   == Parsing '/etc/asterisk/logger.conf': [Aug 14 21:40:09] VERBOSE[2579] config.c:   == Found
[Aug 14 21:40:09] VERBOSE[2579] logger.c:  Asterisk Queue Logger restarted
[Aug 14 21:40:09] VERBOSE[2579] pbx.c:     -- Remove parkedcalls/700/1, registrar=features; con=parkedcalls(0xa4064b0); con->root=0xa4067b8
[Aug 14 21:40:09] VERBOSE[2579] pbx.c:     -- Registered extension context 'parkedcalls'; registrar: features
[Aug 14 21:40:09] VERBOSE[2579] pbx.c:     -- Added extension '700' priority 1 to parkedcalls
[Aug 14 21:40:09] WARNING[2579] features.c: Could not load features.conf
[Aug 14 21:40:09] VERBOSE[2579] dsp.c:        > Can't find dsp config file dsp.conf. Assuming default silencethreshold of 256.
[Aug 14 21:40:09] VERBOSE[2579] cel.c:     -- CEL logging disabled.
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'res_adsi' (ADSI Resource)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_alaw.so' (A-law Coder/Decoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_lpc10.so' (LPC10 2.4kbps Coder/Decoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'res_rtp_asterisk.so' (Asterisk RTP Stack)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'cdr_custom.so' (Customizable Comma Separated Values CDR Backend)
[Aug 14 21:40:09] ERROR[2579] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'res_clialiases.so' (CLI Aliases)
[Aug 14 21:40:09] ERROR[2579] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_g726.so' (ITU G.726-32kbps G726 Transcoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'app_playback.so' (Sound File Playback Application)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'res_musiconhold.so' (Music On Hold Resource)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'chan_dahdi.so' (DAHDI Telephony Driver w/PRI)
[Aug 14 21:40:09] ERROR[2579] chan_dahdi.c: Unable to load config chan_dahdi.conf
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[Aug 14 21:40:09] WARNING[2579] app_voicemail.c: Failed to load configuration file.
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'res_phoneprov.so' (HTTP Phone Provisioning)
[Aug 14 21:40:09] WARNING[2579] res_phoneprov.c: Unable to load users.conf
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'app_minivm.so' (Mini VoiceMail (A minimal Voicemail e-mail System))
[Aug 14 21:40:09] WARNING[2579] app_minivm.c: Failed to load configuration file. Module activated with default settings.
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_gsm.so' (GSM Coder/Decoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_ulaw.so' (mu-Law Coder/Decoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'app_meetme.so' (MeetMe conference bridge)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_dahdi.so' (Generic DAHDI Transcoder Codec Translator)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'codec_g722.so' (ITU G.722-64kbps G722 Transcoder)
[Aug 14 21:40:09] VERBOSE[2579] loader.c:     -- Reloading module 'cel_custom.so' (Customizable Comma Separated Values CEL Backend)
[Aug 14 21:40:09] ERROR[2579] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[Aug 14 21:40:13] VERBOSE[2579] asterisk.c:     -- Remote UNIX connection disconnected
[Aug 14 21:42:51] VERBOSE[2437] asterisk.c: Executing last minute cleanups
[Aug 14 21:42:51] VERBOSE[2437] res_musiconhold.c:   == Destroying musiconhold processes
[Aug 14 21:45:16] NOTICE[2393] manager.c: Unable to open AMI configuration manager.conf, or configuration is invalid. Asterisk management interface (AMI) disabled.
[Aug 14 21:45:16] WARNING[2393] features.c: Could not load features.conf
[Aug 14 21:45:16] WARNING[2393] ccss.c: Could not find valid ccss.conf file. Using cc_max_requests default
[Aug 14 21:45:16] NOTICE[2393] loader.c: 186 modules will be loaded.
[Aug 14 21:45:18] NOTICE[2393] res_smdi.c: Unable to load config smdi.conf: SMDI disabled
[Aug 14 21:45:18] NOTICE[2393] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Aug 14 21:45:18] ERROR[2393] res_stun_monitor.c: Unable to load config res_stun_monitor.conf
[Aug 14 21:45:18] NOTICE[2393] res_fax.c: Configuration file 'res_fax.conf' not found, using default options.
[Aug 14 21:45:18] ERROR[2393] res_calendar.c: Unable to load config calendar.conf
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_decrypt_key
[Aug 14 21:45:18] WARNING[2393] loader.c: Module 'chan_iax2.so' could not be loaded.
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'pbx_dundi.so': /usr/lib/asterisk/modules/pbx_dundi.so: undefined symbol: ast_check_signature_bin
[Aug 14 21:45:18] WARNING[2393] loader.c: Module 'pbx_dundi.so' could not be loaded.
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
[Aug 14 21:45:18] WARNING[2393] loader.c: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_decrypt_key
[Aug 14 21:45:18] WARNING[2393] loader.c: Module 'func_aes.so' could not be loaded.
[Aug 14 21:45:19] WARNING[2393] loader.c: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
[Aug 14 21:45:19] WARNING[2393] loader.c: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Aug 14 21:45:19] WARNING[2393] loader.c: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[Aug 14 21:45:19] WARNING[2393] loader.c: Module 'chan_mgcp.so' could not be loaded.
[Aug 14 21:45:19] NOTICE[2393] chan_agent.c: No agent configuration found -- agent support disabled
[Aug 14 21:45:19] VERBOSE[2393] chan_sip.c: SIP channel loading...
[Aug 14 21:45:19] NOTICE[2393] chan_sip.c: Unable to load config sip.conf
[Aug 14 21:45:19] ERROR[2393] chan_dahdi.c: Unable to load config chan_dahdi.conf
[Aug 14 21:45:19] NOTICE[2393] chan_skinny.c: Configuring skinny from skinny.conf
[Aug 14 21:45:19] NOTICE[2393] chan_skinny.c: Unable to load config skinny.conf, Skinny disabled.
[Aug 14 21:45:19] WARNING[2393] cdr_manager.c: Failed to load configuration file. Module not activated.
[Aug 14 21:45:19] WARNING[2393] cdr_csv.c: unable to load config: cdr.conf
[Aug 14 21:45:19] ERROR[2393] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[Aug 14 21:45:19] WARNING[2393] cel_manager.c: Failed to load configuration file. CEL manager Module not activated.
[Aug 14 21:45:19] ERROR[2393] cdr_syslog.c: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[Aug 14 21:45:19] ERROR[2393] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[Aug 14 21:45:19] ERROR[2393] chan_unistim.c: Unable to load config unistim.conf
[Aug 14 21:45:19] WARNING[2393] res_phoneprov.c: Unable to load users.conf
[Aug 14 21:45:19] NOTICE[2393] chan_oss.c: Unable to load config oss.conf
[Aug 14 21:45:19] NOTICE[2393] pbx_ael.c: Starting AEL load process.
[Aug 14 21:45:19] NOTICE[2393] pbx_ael.c: File /etc/asterisk/extensions.ael not found; AEL declining load
[Aug 14 21:45:19] ERROR[2393] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[Aug 14 21:45:19] WARNING[2393] app_voicemail.c: Failed to load configuration file.
[Aug 14 21:45:19] ERROR[2393] app_amd.c: Configuration file amd.conf missing.
[Aug 14 21:45:19] WARNING[2393] app_festival.c: No such configuration file festival.conf
[Aug 14 21:45:19] ERROR[2393] chan_phone.c: Unable to load config phone.conf
[Aug 14 21:45:19] WARNING[2393] app_followme.c: No follow me config file (followme.conf), so no follow me
[Aug 14 21:45:19] WARNING[2393] app_minivm.c: Failed to load configuration file. Module activated with default settings.
[Aug 14 21:45:19] NOTICE[2393] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
[Aug 14 21:45:19] NOTICE[2393] app_queue.c: No call queueing config file (queues.conf), so no call queues

#4

Beside a lot of errors, there’s one of primary interest:

This missing module should IMHO be the reason for

causing chan_iax2.so to fail.
As You did compile manually You chould check, why this specific module is absent. Just make sure to have a fresh checkout of the asterisk-Sources (best is to use a official release as 1.8.5) and make a configure and make menuselect and look what happens.
It seems that the installation You actually run is somwhere corrupted …


#5

Indeed, most of what I’ve Google’d to present have led me to some sort of errors at the time of compilation. I’ll have to do some checking into it (obvious statement). I’ll post what I come out with here.


#6

I am using asterisk 1.8.5, I have got the same problem. My asterisk is working fine, the sip phones can call to asterisk but when i start asterisk, it opens successfully with the following errors [Aug 27 10:52:36] WARNING[1849] loader.c: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory [Aug 27 10:52:36] WARNING[1849] loader.c: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_decrypt_key [Aug 27 10:52:36] WARNING[1849] loader.c: Module 'chan_iax2.so' could not be loaded.

I visit these locations in /usr/lib/asterisk/modules/
The file i.e. res_crypto.so is not in this folder and chan_iax2.so is their in this folder.

  • abw1oim you said that installation is corrupted, So, can i download the above missing file and placing the file into the specified folder, does this help ?

Your response will be very grateful, waiting for your immediate response,

Regards,

Syed Farhan Zaidi


#7

No this won’t work.
Go into the asterisk sources and issue an

which will install the missing packages for You.
Afterwards make a new asterisk-installation from there with

./configure make make install