/usr/sbin/asterisk -cvvvv
/usr/sbin/asterisk -cvvvv
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk 1.2.12.1, Copyright (C) 1999 - 2006 Digium, Inc. and others.
…
Sep 24 20:45:52 ERROR[17270]: res_config_mysql.c:651 mysql_reconnect: MySQL RealTime: Failed to connect database server asterisk on 127.0.0.1 (err 1045). Check debug for more info.
Sep 24 20:45:52 WARNING[17270]: res_config_mysql.c:477 load_module: MySQL RealTime: Couldn’t establish connection. Check debug.
this is only ERROR <<<<<<<<<
…
[chan_sip.so] => (Session Initiation Protocol (SIP))
== Parsing ‘/etc/asterisk/sip.conf’: Found
Sep 24 20:45:52 WARNING[17270]: chan_sip.c:12857 reload_config: Failed to bind to 0.0.0.0:5060: Address already in use
== Parsing ‘/etc/asterisk/sip_notify.conf’: Found
== Registered channel type ‘SIP’ (Session Initiation Protocol (SIP))
…
[codec_gsm.so]Sep 24 20:45:53 WARNING[17270]: loader.c:325 __load_resource: /usr/lib/asterisk/modules/codec_gsm.so: undefined symbol: Short_term_analysis_filteringx
Sep 24 20:45:53 WARNING[17270]: loader.c:554 load_modules: Loading module codec_gsm.so failed!
Ouch … error while writing audio data: : Broken pipe
If the only issue is RealTime MySQL, how do I disable it? If not, where do I look for the problem?
sean
/usr/sbin/asterisk -cvvvv
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk 1.2.12.1, Copyright © 1999 - 2006 Digium, Inc. and others.
…
== Parsing ‘/etc/asterisk/cdr.conf’: Found
Sep 24 21:11:35 NOTICE[17470]: cdr.c:1192 do_reload: CDR simple logging enabled.
== Parsing ‘/etc/asterisk/rtp.conf’: Found
…
== Parsing ‘/etc/asterisk/sip.conf’: Found
Sep 24 21:11:35 WARNING[17470]: chan_sip.c:12857 reload_config: Failed to bind to 0.0.0.0:5060: Address already in use
== Parsing ‘/etc/asterisk/sip_notify.conf’: Found
…
[codec_gsm.so]Sep 24 21:11:35 WARNING[17470]: loader.c:325 __load_resource: /usr/lib/asterisk/modules/codec_gsm.so: undefined symbol: Short_term_analysis_filteringx
Sep 24 21:11:35 WARNING[17470]: loader.c:554 load_modules: Loading module codec_gsm.so failed!
[root@mediaserver etc]# Ouch … error while writing audio data: : Broken pipe
That’s it. No ERROR’s. only those WARNING’s or NOTICE. Nothing in syslog. How do I debug this?
sean
turn on debug logging (edit logger.conf), and restart Asterisk. are you sure you don’t already have an instance of Asterisk running, or another app that’s binding to 5060 ?
Since I’m using ekiga, I’d set the bindport to 5061 in sip.conf without changing the default 5060 (:
Fixed that:
grep 506 sip.conf
;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindport = 5061
but asterisk still wants to bind to 5060:
Asterisk Ready.
*CLI> Sep 25 04:58:47 WARNING[25889]: chan_sip.c:1082 __sip_xmit: sip_xmit of 0x647200 (len 453) to 127.0.0.1:5060 returned -1: Bad file descriptor
Sep 25 04:58:48 WARNING[25889]: chan_sip.c:1082 __sip_xmit: sip_xmit of 0x647200 (len 453) to 127.0.0.1:5060 returned -1: Bad file descriptor
Sep 25 04:58:49 WARNING[25889]: chan_sip.c:1082 __sip_xmit: sip_xmit of 0x647200 (len 453) to 127.0.0.1:5060 returned -1: Bad file descriptor
Sep 25 04:58:50 WARNING[25889]: chan_sip.c:1082 __sip_xmit: sip_xmit of 0x647200 (len 453) to 127.0.0.1:5060 returned -1: Bad file descriptor
Sep 25 04:58:50 NOTICE[25889]: chan_sip.c:11613 sip_poke_noanswer: Peer ‘test’ is now UNREACHABLE! Last qualify: 0
Here’s a snip from sip.conf:
realm = asterisk
bindport = 5061
[test]
type=friend
username=test
secret=password
qualify=yes
nat=no
host=mediaserver ; localhost
canreinvite=no
context=internal
And no other instance of asterisk is running.
Any help appreciated.
sean