[asterisk-commits] dvossel: trunk r280627 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 2 09:30:54 CDT 2010


Author: dvossel
Date: Mon Aug  2 09:30:50 2010
New Revision: 280627

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280627
Log:
if totag is not present for an ACK request, do not send an error response


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=280627&r1=280626&r2=280627
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Aug  2 09:30:50 2010
@@ -7363,7 +7363,9 @@
 		}
 		/* reject requests that must always have a To: tag */
 		if (ast_strlen_zero(totag) && (req->method == SIP_ACK || req->method == SIP_BYE || req->method == SIP_INFO )) {
-			transmit_response_using_temp(callid, addr, 1, intended_method, req, "481 Call leg/transaction does not exist");
+			if (req->method != SIP_ACK) {
+				transmit_response_using_temp(callid, addr, 1, intended_method, req, "481 Call leg/transaction does not exist");
+			}
 			ast_debug(5, "%s must have a to tag. dropping callid: %s from: %s\n", sip_methods[req->method].text , callid, from );
 			return NULL;
 		}




More information about the asterisk-commits mailing list