This is weird- I checked in the
/var/log/asterisk/full log and there's nothing that really indicates any severe problem. For example, last night around 2am I had * start hanging on me again, so I looked and here's a snippet of what I saw:
Code:
[FONT=Fixedsys][2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/users.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] ERROR[20239] netsock2.c: getaddrinfo("pbx.local", "(null)", ...): Name or service not known
[2010-12-31 02:22:30] WARNING[20239] acl.c: Unable to lookup 'pbx.local'
[2010-12-31 02:22:30] VERBOSE[20239] chan_sip.c: == SIP Listening on 0.0.0.0:5060
[2010-12-31 02:22:30] VERBOSE[20239] netsock2.c: == Using SIP TOS bits 96
[2010-12-31 02:22:30] VERBOSE[20239] netsock2.c: == Using SIP CoS mark 4
[2010-12-31 02:22:30] NOTICE[20239] chan_sip.c: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/sip_notify.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/sip_notify_custom.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/sip_notify_additional.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] VERBOSE[20239] channel.c: == Registered channel type 'SIP' (Session Initiation Protocol (SIP))
[2010-12-31 02:22:30] VERBOSE[20239] rtp_engine.c: == Registered RTP glue 'SIP'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered application 'SIPDtmfMode'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered application 'SIPAddHeader'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered application 'SIPRemoveHeader'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered custom function 'SIP_HEADER'
[2010-12-31 02:22:30] DEBUG[20239] xmldoc.c: Cannot find variable 'SIPPEER' in tree 'description'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered custom function 'SIPPEER'
[2010-12-31 02:22:30] DEBUG[20239] xmldoc.c: Cannot find variable 'SIPCHANINFO' in tree 'description'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered custom function 'SIPCHANINFO'
[2010-12-31 02:22:30] VERBOSE[20239] pbx.c: == Registered custom function 'CHECKSIPDOMAIN'
[2010-12-31 02:22:30] VERBOSE[20239] manager.c: == Manager registered action SIPpeers
[2010-12-31 02:22:30] VERBOSE[20239] manager.c: == Manager registered action SIPshowpeer
[2010-12-31 02:22:30] VERBOSE[20239] manager.c: == Manager registered action SIPqualifypeer
[2010-12-31 02:22:30] VERBOSE[20239] manager.c: == Manager registered action SIPshowregistry
[2010-12-31 02:22:30] VERBOSE[20239] manager.c: == Manager registered action SIPnotify
[2010-12-31 02:22:30] VERBOSE[20239] loader.c: chan_sip.so => (Session Initiation Protocol (SIP))
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/gtalk.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] WARNING[20239] config.c: Unknown directive '#bindaddr=192.168.0.10' at line 5 of /etc/asterisk/gtalk.conf
[2010-12-31 02:22:30] WARNING[20239] config.c: Unknown directive '#externip=122.110.124.1' at line 6 of /etc/asterisk/gtalk.conf
[2010-12-31 02:22:30] VERBOSE[20239] rtp_engine.c: == Registered RTP glue 'Gtalk'
[2010-12-31 02:22:30] VERBOSE[20239] channel.c: == Registered channel type 'Gtalk' (Gtalk Channel Driver)
[2010-12-31 02:22:30] VERBOSE[20239] loader.c: chan_gtalk.so => (Gtalk Channel Driver)
[2010-12-31 02:22:30] NOTICE[20239] chan_skinny.c: Configuring skinny from skinny.conf
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Parsing '/etc/asterisk/skinny.conf':
[2010-12-31 02:22:30] VERBOSE[20239] config.c: == Found
[2010-12-31 02:22:30] NOTICE[20277] chan_sip.c: Peer '703' is now Reachable. (50ms / 2000ms)
[2010-12-31 02:22:30] WARNING[20239] chan_skinny.c: Unable to get our IP address, Skinny disabled[/FONT]
The CLI was still "up" (
asterisk -r works & I can still issue commands such as
sip show channels etc). So * was in some state of confusion.
One clue as to what might be causing this is that the tab-completion (auto complete) causes the CLI to become "dead" as well. Example, I type "
sip show channel " and then press TAB and at that point, where * would normally present a list of active SIP channels, insteead the CLI goes dead, I can no longer type anything, can't even CTRL+C. My SSH session is still up because I am running screen and if I switch to one of my other screens everything is still working normally.
Another anomaly is that my logs are FULL of the following (repeating every 5 min):
Code:
[FONT=Fixedsys][2010-12-30 23:10:17] NOTICE[3192] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[2010-12-30 23:10:17] NOTICE[3200] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[2010-12-30 23:15:12] NOTICE[3194] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[2010-12-30 23:15:12] NOTICE[3196] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[2010-12-30 23:15:12] NOTICE[3201] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[2010-12-30 23:15:12] NOTICE[3193] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[2010-12-30 23:20:07] NOTICE[3193] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[2010-12-30 23:20:07] NOTICE[3194] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[2010-12-30 23:20:07] NOTICE[3192] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[2010-12-30 23:20:07] NOTICE[3201] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[2010-12-30 23:25:02] NOTICE[3201] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[2010-12-30 23:25:02] NOTICE[3198] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[2010-12-30 23:25:02] NOTICE[3197] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[2010-12-30 23:25:02] NOTICE[3194] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)[/FONT]
This goes on ad-infinitum. This is related to the Hylafax script (a-fax.sh) which sets up these iaxmodem extensions but I'm not sure what the error indicates and whether to just ignore it or if there's a way to fix it. Google produced no results on that.
Also, picking through the asterisk logs I noticed some module load errors, not sure if these are significant either:
Code:
[FONT=Fixedsys][2010-12-31 02:22:30] WARNING[20239] 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
[2010-12-31 02:22:30] WARNING[20239] loader.c: Module 'format_mp3.so' could not be loaded.
[2010-12-31 02:22:30] WARNING[20239] loader.c: Error loading module 'res_fax_spandsp.so': /usr/lib/asterisk/modules/res_fax_spandsp.so: undefined symbol: t30_set_tx_page_header_info
[2010-12-31 02:22:30] WARNING[20239] loader.c: Module 'res_fax_spandsp.so' could not be loaded.
[2010-12-31 02:22:30] WARNING[20239] loader.c: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[2010-12-31 02:22:30] WARNING[20239] loader.c: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[2010-12-31 02:22:30] WARNING[20239] loader.c: Module 'chan_mgcp.so' could not be loaded.
[/FONT]