[asterisk-commits] oej: branch 1.2 r47470 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 10 13:46:26 MST 2006


Author: oej
Date: Fri Nov 10 14:46:25 2006
New Revision: 47470

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47470
Log:
Clear dialog on loop (backport from 1.4 by mistake)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=47470&r1=47469&r2=47470
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Fri Nov 10 14:46:25 2006
@@ -10518,8 +10518,9 @@
 		/* This is a call to ourself.  Send ourselves an error code and stop
 		   processing immediately, as SIP really has no good mechanism for
 		   being able to call yourself */
-		transmit_response(p, "482 Loop Detected", req);
-		/* We do NOT destroy p here, so that our response will be accepted */
+		transmit_response_reliable(p, "482 Loop Detected", req, 1);
+		if (!p->lastinvite)
+			ast_set_flag(p, SIP_NEEDDESTROY);	
 		return 0;
 	}
 	if (!ignore) {



More information about the asterisk-commits mailing list