All Peers are unavailable

I just did a fresh install of FreePBX in a XEN environment. Our aim is to setup SIP only extension and maybe an external SIP provider. After the initial installation we got some errors that DAHDI module was not running correctly. We subsequently disabled DAHDI and managed to get FreeBPX running.

We created 5 sip extensions and managed to connect x-lite to them. At first we were not able to connect, but after some configuration changes and a restart of the sever we not able to register with the PBX. I can dial *65, *60 as well as access my voicemail.

However dialing between extension fails and all calls are redirected to voicemail.

I had a look at the sip peers, but they are always offline:

asterisk*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
1004 (Unspecified) D N A 0 UNKNOWN
1003 (Unspecified) D N A 0 UNKNOWN
1002 (Unspecified) D N A 0 UNKNOWN
1001 (Unspecified) D N A 0 UNKNOWN
1000 (Unspecified) D N A 0 UNKNOWN
5 sip peers [Monitored: 0 online, 5 offline Unmonitored: 0 online, 0 offline]

When I configured the extentions I only specified the :
-Display Name:User
-extension : 1001
-secret : password
-voicemail : yes
-voicemail password : 12345
-voicemail email : [email protected]

The other parameters I left with defaults
-host : dynamic
-nat : yes (we don’t use nat, but changing this didn’t fix the issue either)
-port : 5060
-qualify : yes
-dial : SIP/1001
-permit : 0.0.0.0/0.0.0.0
-deny : 0.0.0.0/0.0.0.0

I am sure I am missing something quite obvious and silly, but for the past 4 hours I have not been able to figure this out. I had a look in the full log as well as tried to debug sip, but didn’t find any useful error messages, and since I am able to send and receive voicemail as well as complete the echo tests I think most of the stuff is working.

Any suggestions what to try or what configuration parameters to check.

Thanks in advance.

All ERROR:

[May 11 00:17:31] WARNING[2664] loader.c: Error loading module ‘format_au.so’: /usr/lib/asterisk/modules/format_au.so: cannot open shared object file: No such file or directory
[May 11 00:17:31] WARNING[2664] loader.c: Error loading module ‘format_mp3.so’: /usr/lib/asterisk/modules/format_mp3.so: cannot open shared object file: No such file or directory
[May 11 00:17:33] WARNING[2664] loader.c: Error loading module ‘format_au.so’: /usr/lib/asterisk/modules/format_au.so: cannot open shared object file: No such file or directory
[May 11 00:17:33] WARNING[2664] loader.c: Error loading module ‘format_mp3.so’: /usr/lib/asterisk/modules/format_mp3.so: cannot open shared object file: No such file or directory
[May 11 00:17:33] ERROR[2664] chan_dahdi.c: Unable to load chan_dahdi.conf
[May 11 00:17:33] ERROR[2664] app_amd.c: Configuration file amd.conf missing.
[May 11 00:17:33] ERROR[2664] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory
[May 11 00:17:33] ERROR[2664] pbx_dundi.c: Unable to load config dundi.conf
[May 11 00:20:34] ERROR[2842] chan_dahdi.c: Unable to load chan_dahdi.conf
[May 11 00:20:34] ERROR[2842] app_amd.c: Configuration file amd.conf missing.

All WARNINGS:

[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-speakingclock’ tries to include nonexistent context ‘app-speakingclock-custom’
[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-speakextennum’ tries to include nonexistent context ‘app-speakextennum-custom’
[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-echo-test’ tries to include nonexistent context ‘app-echo-test-custom’
[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-directory’ tries to include nonexistent context ‘app-directory-custom’
[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-calltrace-perform’ tries to include nonexistent context ‘app-calltrace-perform-custom’
[May 11 00:08:08] WARNING[2979] pbx.c: Context ‘app-calltrace’ tries to include nonexistent context ‘app-calltrace-custom’
[May 11 00:08:34] WARNING[2992] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[May 11 00:08:34] WARNING[2992] func_db.c: DB requires an argument, DB(/)
[May 11 00:08:54] WARNING[2996] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[May 11 00:08:54] WARNING[2996] func_db.c: DB requires an argument, DB(/)
[May 11 00:17:31] WARNING[2664] loader.c: Error loading module ‘format_au.so’: /usr/lib/asterisk/modules/format_au.so: cannot open shared object file: No such file or directory
[May 11 00:17:31] WARNING[2664] loader.c: Error loading module ‘format_mp3.so’: /usr/lib/asterisk/modules/format_mp3.so: cannot open shared object file: No such file or directory
[May 11 00:17:32] WARNING[2664] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[May 11 00:17:33] WARNING[2664] loader.c: Error loading module ‘format_au.so’: /usr/lib/asterisk/modules/format_au.so: cannot open shared object file: No such file or directory
[May 11 00:17:33] WARNING[2664] loader.c: Module ‘format_au.so’ could not be loaded.
[May 11 00:17:33] WARNING[2664] loader.c: Error loading module ‘format_mp3.so’: /usr/lib/asterisk/modules/format_mp3.so: cannot open shared object file: No such file or directory
[May 11 00:17:33] WARNING[2664] loader.c: Module ‘format_mp3.so’ could not be loaded.
[May 11 00:17:33] WARNING[2664] app_followme.c: No follow me config file (followme.conf), so no follow me
[May 11 00:17:33] WARNING[2664] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
[May 11 00:17:33] WARNING[2664] app_festival.c: No such configuration file festival.conf
[May 11 00:17:33] WARNING[2664] cdr_custom.c: Failed to load configuration file. Module not activated.
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of ‘_.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 359
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 360
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 361
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 431
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 432
[May 11 00:17:33] WARNING[2664] pbx_config.c: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘_X.’ instead at line 433
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘from-internal-xfer’ tries to include nonexistent context ‘from-internal-custom’
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘from-did-direct’ tries to include nonexistent context ‘ext-findmefollow’
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘from-pstn’ tries to include nonexistent context ‘from-pstn-custom’
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘from-internal-additional’ tries to include nonexistent context ‘from-internal-additional-custom’
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘macro-hangupcall’ tries to include nonexistent context ‘macro-hangupcall-custom’
[May 11 00:17:33] WARNING[2664] pbx.c: Context ‘macro-simple-dial’ tries to include nonexistent context ‘macro-simple-dial-custom’

Here’s a shot in the dark. May need dahdi to run for timing to load ztdummy. Something else you can try is “sip show users”, it will show the extensions and their passwords which is handy to verify that both the phone and the PBX have the same authentication.

Lack of details.
What version of FreePBX?
Is this a distro or is it “hand built”.
What flavor of Linux?
Is firewall enabled on the server?

I am using AsteriskNOW. Started with 2.4, but since upgraded to 2.6 and 2.7. I am beginning to think it may be caused by the client not correctly registering with the server for incoming call. I unchecked this because several posts i found online said it was not required.

Regards
Alex

After selecting the “Register for incoming calls” the clients all started working. Initially, before upgrading to 2.7 the clients didn’t register. So upgrading to 2.7 and enabling the clients registration resolved this issue.

Thanks for all your help.