[asterisk-commits] oej: branch oej/sip-subscribe-ng-1.2 r73009 - /team/oej/sip-subscribe-ng-1.2/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 3 05:57:07 CDT 2007


Author: oej
Date: Tue Jul  3 05:57:06 2007
New Revision: 73009

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73009
Log:
Notify's may be in either list

Modified:
    team/oej/sip-subscribe-ng-1.2/channels/chan_sip.c

Modified: team/oej/sip-subscribe-ng-1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/sip-subscribe-ng-1.2/channels/chan_sip.c?view=diff&rev=73009&r1=73008&r2=73009
==============================================================================
--- team/oej/sip-subscribe-ng-1.2/channels/chan_sip.c (original)
+++ team/oej/sip-subscribe-ng-1.2/channels/chan_sip.c Tue Jul  3 05:57:06 2007
@@ -11605,6 +11605,8 @@
 retrylock:
 	ast_mutex_lock(&netlock);
 	p = find_call(&req, &sin, req.method, is_subscription);
+	if (!p && req.resp_method == SIP_NOTIFY)
+		p = find_call(&req, &sin, req.method, !is_subscription);
 	if (p) {
 		/* Go ahead and lock the owner if it has one -- we may need it */
 		if (p->owner && ast_mutex_trylock(&p->owner->lock)) {




More information about the asterisk-commits mailing list