Summary:ASTERISK-14243: IAX2 realtime username confusion
Reporter:Tim King (timking)Labels:
Date Opened:2009-06-01 07:05:52Date Closed:2011-06-07 14:07:55
Versions:Frequency of
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.
Comments:By: Tim King (timking) 2009-06-01 07:10:55

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?

By: Jason Parker (jparker) 2010-01-04 17:59:36.000-0600

I don't understand what the confusion is here.  "username" and "name" are different.  Neither are the real name of the user (use callerid for that).  Where is "Tim King" coming from?

I don't see any documentation that would suggest that "username" is anything but the username to use.

By: Paul Belanger (pabelanger) 2010-04-28 15:20:08

timking: Are you able to provide more information about this?  Which document are you referring too?

By: Tim King (timking) 2010-04-29 10:20:51

Sorry this is old and it was a confusion on my part of what had to be in the realtime database. Close it.

By: Paul Belanger (pabelanger) 2010-04-29 11:01:49

Closing, was support related issue.