SIP phones cannot register - No SIP debug output

I have asterisk 1.8 installed as described in the unfinished book, Asterisk: the definitive guide. When I start Asterisk by doing: asterisk -c I get the following output:

CDR simple logging enabled.
197 modules will be loaded.
res_odbc loaded.
No directory user found, anonymous binding as default.
No directory URL or host found.
Cannot load LDAP RealTime driver.
No music on hold classes configured, disabling music on hold.
Cannot find variable 'SIPPEER' in tree 'description'
Cannot find variable 'SIPCHANINFO' in tree 'description'
Cannot find variable 'AGENT' in tree 'description'
set_channels failed: Invalid argument
Rate not correct, requested 8000, got 48000
[color=#BF0000]snd_pcm_open failed: No such file or directory[/color]
[color=#BF0000]Problem opening ALSA playback device[/color]
[color=#4000BF]Ignoring any changes to 'userbase' (on reload) at line 23.
Ignoring any changes to 'vmsecret' (on reload) at line 31.
Ignoring any changes to 'hassip' (on reload) at line 35.
Ignoring any changes to 'hasiax' (on reload) at line 39.
Ignoring any changes to 'hasmanager' (on reload) at line 47.[/color]
No Bluetooth devices found. Not loading module.
[color=#FF8000]Cannot find variable 'IAXPEER' in tree 'description'
Cannot find variable 'IAXVAR' in tree 'description'
No IAX provisioning configuration found, IAX provisioning disabled.[/color]
Cannot find variable 'MEETME_INFO' in tree 'description'
Failed to load configuration file. Module not activated.
Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
Failed to load configuration file. Module not activated.
Failed to load configuration file. Module not activated.
Could not initialize cluster membership service: Try Again
Failed to load configuration file. Module activated with default settings.

I am also unable to register a SIP phone, and unable to see any debugging output when I set sip set debug on.

Can you please help?

That’s all you see? Nothing else?

What version of Asterisk, from where, did you base your install?

Sorry for the late reply.

Yes that is all I see when I start asterisk.

The version I am using is 1.8.2.2

I got the tar file using wget downloads.asterisk.org/pub/telep … 8.2.tar.gz

Tel me if you need more information

So building and installation and samples creation worked?

./configure
make
make install
make samples

?

What about “asterisk -vvvvc” ?

./configure
make
make install
make samples

work fine with no errors. The last time though, I haven’t “make samples”.
Now, with “make samples” and asterisk -c, I get the following putput:

[Mar 11 15:06:23] NOTICE[20690]: cdr.c:1567 do_reload: CDR simple logging enabled.
[Mar 11 15:06:23] NOTICE[20690]: loader.c:1118 load_modules: 207 modules will be loaded.
[Mar 11 15:06:23] WARNING[20690]: loader.c:387 load_dynamic_module: Error loading module 'res_config_odbc.so': /usr/lib/asterisk/modules/res_config_odbc.so: undefined symbol: ast_odbc_clear_cache
[Mar 11 15:06:23] NOTICE[20690]: res_odbc.c:1830 load_module: res_odbc loaded.
...[Mar 11 15:06:23] NOTICE[20690]: res_smdi.c:1414 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
.......[Mar 11 15:06:23] WARNING[20690]: loader.c:387 load_dynamic_module: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Mar 11 15:06:23] WARNING[20690]: loader.c:449 load_dynamic_module: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[Mar 11 15:06:23] WARNING[20690]: loader.c:839 load_resource: Module 'chan_mgcp.so' could not be loaded.
[Mar 11 15:06:23] NOTICE[20690]: config.c:1988 ast_config_engine_register: Registered Config Engine odbc
.[Mar 11 15:06:23] ERROR[20690]: res_config_pgsql.c:1490 pgsql_reconnect: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1: 
[Mar 11 15:06:23] WARNING[20690]: res_config_pgsql.c:1442 parse_config: PostgreSQL RealTime: Couldn't establish connection. Check debug.
[Mar 11 15:06:23] NOTICE[20690]: config.c:1988 ast_config_engine_register: Registered Config Engine pgsql
.[Mar 11 15:06:23] NOTICE[20690]: res_config_ldap.c:1629 parse_config: No directory user found, anonymous binding as default.
[Mar 11 15:06:23] ERROR[20690]: res_config_ldap.c:1655 parse_config: No directory URL or host found.
[Mar 11 15:06:23] ERROR[20690]: res_config_ldap.c:1538 load_module: Cannot load LDAP RealTime driver.
........SIP channel loading...
...[Mar 11 15:06:23] ERROR[20690]: chan_mobile.c:4549 load_module: No Bluetooth devices found. Not loading module.
[Mar 11 15:06:23] NOTICE[20690]: chan_skinny.c:7156 config_load: Configuring skinny from skinny.conf
.[Mar 11 15:06:23] WARNING[20690]: chan_dahdi.c:17394 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Mar 11 15:06:23] WARNING[20690]: chan_dahdi.c:17394 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Mar 11 15:06:23] WARNING[20690]: chan_dahdi.c:17394 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
[Mar 11 15:06:23] WARNING[20690]: chan_dahdi.c:17394 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Mar 11 15:06:23] WARNING[20690]: chan_dahdi.c:17394 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
.............................[Mar 11 15:06:23] WARNING[20690]: cel_pgsql.c:386 process_my_load_module: CEL pgsql config file missing global section.
....[Mar 11 15:06:23] NOTICE[20690]: cel_tds.c:451 tds_load_module: cel_tds has no global category, nothing to configure.
[Mar 11 15:06:23] WARNING[20690]: cel_tds.c:556 load_module: cel_tds module had config problems; declining load
......................................[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:122 pbx_load_module: Starting AEL load process.
[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:145 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:150 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Mar 11 15:06:23] NOTICE[20690]: pbx_ael.c:153 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
.........................................  == Aliased CLI command 'hangup request' to 'channel request hangup'
  == Aliased CLI command 'originate' to 'channel originate'
  == Aliased CLI command 'help' to 'core show help'
  == Aliased CLI command 'pri intense debug span' to 'pri set debug 2 span'
  == Aliased CLI command 'reload' to 'module reload'
.....................................[Mar 11 15:06:23] ERROR[20690]: ais/clm.c:140 ast_ais_clm_load_module: Could not initialize cluster membership service: Try Again
.......................... ]
Asterisk Ready.

I still cannot see anything with sip set debug on and cannot register a SIP phone.

As for asterisk -vvvvc generates a lot of output, that I am not able to show here.

And “module load chan_sip.so” shows?

module load chan_sip.so :

Unable to load module chan_sip.so
Command 'module load chan_sip.so' failed.
*CLI> [Mar 12 10:56:11] WARNING[23993]: loader.c:829 load_resource: Module 'chan_sip.so' already exists.

module reload chan_sip.so:

*CLI>     -- Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
 Reloading SIP

Re-read post, my initial questions don’t seem relevant.

Something strange is afoot at the CircleK. SIP does indeed operate in Asterisk 1.8 and you can absolutely register SIP phones.

Any firewall in place preventing things from connecting over UDP or TCP to port 5060?

tcpdump -v -i eth0 | grep sip
tcpdump -v -i eth0 | grep 5060

both show SIP packets on both ends being exchanged.

open 5060, 10k-20k

on:

  • router
  • computer’s software firewall