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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 31 12:22:29 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:                     new
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 12:22 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


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

---------------------------------------------------------------------- 
 (0133210) lmadsen (administrator) - 2011-03-31 12:22
 https://issues.asterisk.org/view.php?id=18953#c133210 
---------------------------------------------------------------------- 
res_config_odbc is more widely supported and tested. I would suggest you
use that instead of res_config_pgsql directly if you're having any issues. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-31 12:22 lmadsen        Note Added: 0133210                          
2011-03-31 12:22 lmadsen        Severity                 major => minor      
======================================================================




More information about the asterisk-bugs mailing list