[asterisk-commits] oej: trunk r149542 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 15 08:52:13 CDT 2008


Author: oej
Date: Wed Oct 15 08:52:13 2008
New Revision: 149542

URL: http://svn.digium.com/view/asterisk?view=rev&rev=149542
Log:
Adding a note about a missing part of "kill-the-user" - I got lost in the Ao2 world...
We're going to try to get time to fix this and kpfleming believes that there's code in ao2 
so that we can solve it...

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=149542&r1=149541&r2=149542
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Oct 15 08:52:13 2008
@@ -4121,6 +4121,11 @@
 	
 	\note Avoid using this function in new functions if there is a way to avoid it, i
 	since it might cause a database lookup.
+
+	\todo - we need to fix so that we actually match on username only if forcenamematch is on.
+ 	There's a flag in peers for "onlymatchonip" - these peers needs to be avoided when
+	searching the "peers" hash table.
+
 */
 static struct sip_peer *find_peer(const char *peer, struct sockaddr_in *sin, int realtime, int forcenamematch, int devstate_only)
 {




More information about the asterisk-commits mailing list