[asterisk-bugs] [Asterisk 0018953]: Wrong Column Value When Using res_config_pgsql

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 31 13:50:10 CDT 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18953 
====================================================================== 
Reported By:                dread
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18953
Category:                   Resources/res_config_pgsql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.4-rc2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-10 04:50 CST
Last Modified:              2011-03-31 13:50 CDT
====================================================================== 
Summary:                    Wrong Column Value When Using res_config_pgsql
Description: 
When realtime peer unregistred, asterisk update sip_user table with wrong
value

UPDATE asterisk_sip_users_tbl SET ipaddr = '(null)', port = '(null)',
regseconds = '1299753779', defaultuser = '3001', useragent = '', lastms =
'0', fullcontact = '' WHERE name = '3001'

'(null)' is not NULL. 


after peer unregistred 
sip show peers show:

Name/username              Host                                    Dyn
Forcerport ACL Port     Status     Realtime
3001/3001                  (Unspecified)                            D     
 A  0        UNKNOWN    Cached RT


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-31 13:50 lmadsen        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list