Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (revision 53063)
+++ channels/chan_sip.c (working copy)
@@ -7328,6 +7328,8 @@
if (sipmethod == SIP_SUBSCRIBE)
/* For subscribes, match on peer name only */
peer = find_peer(of, NULL, 1);
+ else
+ peer = find_peer(of, NULL, 1);
else
/* Look for peer based on the IP address we received data from */
/* If peer is registered from this IP address or have this as a default