[asterisk-commits] mmichelson: trunk r148376 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 10 16:21:46 CDT 2008
Author: mmichelson
Date: Fri Oct 10 16:21:45 2008
New Revision: 148376
URL: http://svn.digium.com/view/asterisk?view=rev&rev=148376
Log:
The logic used when checking a peer got changed subtly
in the "kill the user" commit and caused calls relying
on the insecure setting to not work properly. I changed
for finding a peer back to how it was prior to that
commit.
(closes issue #13644)
Reported by: pj
Patches:
13644_trunkv2.patch uploaded by putnopvut (license 60)
Tested by: pj
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=148376&r1=148375&r2=148376
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Oct 10 16:21:45 2008
@@ -11997,13 +11997,7 @@
/* For subscribes, match on device name only; for other methods,
* match on IP address-port of the incoming request.
*/
- /* First find device on name */
- peer = find_peer(of, NULL, TRUE, FALSE, FALSE);
-
- /* If not found, then find device on IP (if it's not a SUBSCRIBE) */
- if (!peer && sipmethod != SIP_SUBSCRIBE) {
- peer = find_peer(NULL, &p->recv, TRUE, FALSE, FALSE);
- }
+ peer = (sipmethod == SIP_SUBSCRIBE) ? find_peer(of, NULL, TRUE, FALSE, FALSE) : find_peer(NULL, &p->recv, TRUE, FALSE, FALSE);
if (!peer) {
if (debug)
More information about the asterisk-commits
mailing list