11.13.1: Unable To Load Sip.conf (or Iax )

Home » Asterisk Users » 11.13.1: Unable To Load Sip.conf (or Iax )
Asterisk Users 6 Comments

Running 11.13.1 on Fedora.

This is a new install, but a copy of a previous – working -install.

module load chan_sip Unable to load module chan_sip Command ‘module load chan_sip’ failed. SIP channel loading…
[Oct 23 14:46:08] NOTICE[669]: chan_sip.c:31438 reload_config: Unable to load config sip.conf

I don’t think it’s permissions:

ls -ld /etc/asterisk /etc/asterisk/sip*
drwxr-x—. 4 asterisk asterisk 4096 Oct 23 00:34 /etc/asterisk
-rw-r—–. 1 asterisk asterisk 3588 Oct 22 18:37 /etc/asterisk/sip.conf
-rw-r—–. 1 asterisk asterisk 91033 Oct 23 00:28
/etc/asterisk/sip.conf.rpmnew
-rw-r—–. 1 asterisk asterisk 790 Oct 23 00:28
/etc/asterisk/sip_notify.conf

ps aux | grep asterisk asterisk 294 0.1 5.5 1076736 33364 ? Ssl 14:36 0:03
/usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf

The sip module itself is loaded:

module show like chan_sip Module Description Use Count chan_sip.so Session Initiation Protocol (SIP)
0
1 modules loaded

I’ve tried my old config, and just the sip.conf.sample. Same result.

FWIW:

ls -l /usr/lib64/asterisk/modules/chan*
-rwxr-xr-x. 1 root root 72808 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_agent.so
-rwxr-xr-x. 1 root root 16032 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_bridge.so
-rwxr-xr-x. 1 root root 347920 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_iax2.so
-rwxr-xr-x. 1 root root 41888 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_local.so
-rwxr-xr-x. 1 root root 118144 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_mgcp.so
-rwxr-xr-x. 1 root root 67424 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_motif.so
-rwxr-xr-x. 1 root root 11936 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_multicast_rtp.so
-rwxr-xr-x. 1 root root 44392 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_phone.so
-rwxr-xr-x. 1 root root 755296 Oct 23 00:29
/usr/lib64/asterisk/modules/chan_sip.so

Any help appreciated.

sean

6 thoughts on - 11.13.1: Unable To Load Sip.conf (or Iax )

  • Weirdness:

    made iax.conf.simple:

    [general]
    autokill=yes

    [idefisk]
    type=friend host=dynamic context=phones

    (extra credit for remembering the source)

    >module unload chan_iax2.so Unable to unload resource chan_iax2.so Command ‘module unload chan_iax2.so’ failed.
    [Oct 23 16:53:26] WARNING[669]: loader.c:571 ast_unload_resource: Unload failed, ‘chan_iax2.so’ is not loaded.
    > module load chan_iax2.so Unable to load module chan_iax2.so Command ‘module load chan_iax2.so’ failed.
    [Oct 23 16:53:36] ERROR[669]: chan_iax2.c:13488 set_config: Unable to load config iax.conf

    But then:

    cp -a iax.conf.simple iax.conf cp: overwrite

  • Weirder yet:

    ls -ld /etc/asterisk/test /etc/asterisk/exts drwxr-xr-x. 3 644 asterisk 4096 Oct 24 16:41 /etc/asterisk/exts drwxr-xr-x. 2 644 asterisk 4096 Oct 24 16:44 /etc/asterisk/test

    cp exts/droid.sip.conf test/droid2.sip.conf

    ls -l /etc/asterisk/exts/droid.sip.conf /etc/asterisk/test/droid2.sip.conf
    -rw-r–r–. 1 644 asterisk 316 Oct 22 18:37
    /etc/asterisk/exts/droid.sip.conf
    -rw-r–r–. 1 644 asterisk 316 Oct 24 16:44
    /etc/asterisk/test/droid2.sip.conf

    grep droid sip.conf
    #include test/droid2.sip.conf
    #include exts/droid.sip.conf

    module load chan_sip Unable to load module chan_sip Command ‘module load chan_sip’ failed. SIP channel loading…
    == Parsing ‘/etc/asterisk/sip.conf’: Found
    == Parsing ‘/etc/asterisk/test/droid2.sip.conf’: Found
    [Oct 24 16:47:39] ERROR[2743]: config.c:1549 process_text_line: The file
    ‘exts/droid.sip.conf’ was listed as a #include but it does not exist.

    !!!!

  • Depending on how the data was copied from one install to the other, you may be running into SELinux issues. Try running:

    restorecon -rv /etc/asterisk

    and see if that helps.


    Jeff Ollie

  • Yeah, if you “mv” the data instead of “cp” the data from one place to the other, the SElinux labels don’t get updated. I like SElinux, but it would be nice if there were better error messages…

    Although, if you’re on Fedora 20, this is a pretty good description of what was going wrong and how to diagnose/solve it:

    http://danwalsh.livejournal.com/65777.html

  • Thanks for the reference, but in my case systemctl status asterisk, which I did try, had no reference to selinux.

    sean