[Asterisk-Dev] splitting users/peers?

Kevin P. Fleming kpfleming at starnetworks.us
Thu Feb 10 16:15:50 MST 2005


Matthew Boehm wrote:
> perhaps I'm not seeing the obvious, but why are users and peers being split
> up?

A more detailed question would have been helpful...

What he is referring to, for those that weren't on the conference call, 
is that the Realtime mappings for sip and iax2 are being changed:

"sipfriends" is now "sipusers" and "sippeers"
"iaxfriends" is now "iaxusers" and "iaxpeers"

You can of course continue to map them to the same database table if you 
like, and there will be very little difference between them. If all of 
your entries are "type=friend", you will see no difference at all, in fact.

The change was made for a simple reason: if you have _both_ a user and a 
peer with the same name in your sipfriends table, and realtime_user (in 
chan_sip) asks for a record with that name, it might randomly get one or 
the other. There is no guarantee which one will be returned. If it 
happens to return the peer entry, then realtime_user will throw it away 
and act as if there was no user entry available, when there is.

This also allows the users and peers to come from different tables, or 
even different databases, if desired.



More information about the asterisk-dev mailing list