[asterisk-bugs] [Asterisk 0015375]: realtime mysql status always shows connected for 0 seconds/no connection

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 25 05:20:07 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15375 
====================================================================== 
Reported By:                kowalma
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15375
Category:                   Addons/res_config_mysql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-22 06:31 CDT
Last Modified:              2009-06-25 05:20 CDT
====================================================================== 
Summary:                    realtime mysql status always shows connected for 0
seconds/no connection
Description: 
I've found issue with DB connection.

Asterisk-node1(active):/usr/src#  rasterisk  -x "realtime mysql status"
general connected to asterisk at 127.0.0.1, port 3306 with username cdr for 0
seconds.
Asterisk-node1(active):/usr/src#

shows always 0 seconds. Sometime rt shows that there is no db connection
(and then sip show peers show no sip-peer configured) but DB is queried
====================================================================== 

---------------------------------------------------------------------- 
 (0106966) urosh (reporter) - 2009-06-25 05:20
 https://issues.asterisk.org/view.php?id=15375#c106966 
---------------------------------------------------------------------- 
Hi again. I uploaded some of my last messages before asterisk stoped
responding and my script restarted it.

[Jun 25 12:08:53] DEBUG[16207] chan_sip.c: Allocating new SIP dialog for
196084755 at 192_168_1_133 - REGISTER (No RTP)
[Jun 25 12:08:53] DEBUG[16207] chan_sip.c: **** Received REGISTER (2) -
Command in SIP REGISTER
[Jun 25 12:08:53] DEBUG[16207] chan_sip.c: Trying to put 'SIP/2.0 40' onto
UDP socket destined for 192.168.1.133:5060
[Jun 25 12:08:54] VERBOSE[16182] asterisk.c:     -- Remote UNIX
connection
[Jun 25 12:08:54] DEBUG[16207] chan_sip.c: Allocating new SIP dialog for
3eb9fdad4a5ce3c653f4a6ad31e4b557 at 127.0.1.1 - OPTIONS (No RTP)
[Jun 25 12:08:54] DEBUG[16207] acl.c: Found IP address for this socket
[Jun 25 12:08:54] DEBUG[16207] res_config_mysql.c: MySQL RealTime:
Connection okay.
[Jun 25 12:08:54] DEBUG[16207] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM conf_sip WHERE name = '' AND host = 'dynamic'
[Jun 25 12:08:54] DEBUG[16207] res_config_mysql.c: MySQL RealTime: Could
not find any rows in table conf_sip. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-25 05:20 urosh          Note Added: 0106966                          
======================================================================




More information about the asterisk-bugs mailing list