[asterisk-bugs] [Asterisk 0015240]: IAX2 realtime username confusion

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 28 10:05:20 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15240 
====================================================================== 
Reported By:                timking
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15240
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.5 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-01 07:05 CDT
Last Modified:              2009-10-28 10:05 CDT
====================================================================== 
Summary:                    IAX2 realtime username confusion
Description: 
With the realtime support in IAX there's confusion about what's in the
underlying database.
There's code to get at the peer name (which is sometimes described as the
username) in realtime_peer
var = ast_load_realtime("iaxpeers", "name", peername, "host", "dynamic",
SENTINEL);
but then in realtime_user we have
var = ast_load_realtime("iaxusers", "name", username, "host", "dynamic",
SENTINEL);

The effect is that when calling from a realtime * to another realtime, I
see lookups for the incoming call of the form select .. where name="Tim
King" while I think you mean select ... where name="123" as the fieldname
for the real name is username. I'm not sure whether its wrong on the caller
or on the callee.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-28 10:05 russell        version                  1.6.0.5 =>          
2009-10-28 10:05 russell        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list