[asterisk-bugs] [Asterisk 0015240]: IAX2 realtime username confusion
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jun 1 07:10:55 CDT 2009
A NOTE has been added to this issue.
======================================================================
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: new
Asterisk Version: 1.6.0.5
Regression: No
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-06-01 07:10 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.
======================================================================
----------------------------------------------------------------------
(0105828) timking (reporter) - 2009-06-01 07:10
https://issues.asterisk.org/view.php?id=15240#c105828
----------------------------------------------------------------------
The documentation says that peers and users can be the same and only
describes one table. Maybe the code is right and the documentation is
wrong?
Issue History
Date Modified Username Field Change
======================================================================
2009-06-01 07:10 timking Note Added: 0105828
======================================================================
More information about the asterisk-bugs
mailing list