[svn-commits] branch 1.2 r36043 - /branches/1.2/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jun 26 08:27:58 MST 2006


Author: oej
Date: Mon Jun 26 10:27:58 2006
New Revision: 36043

URL: http://svn.digium.com/view/asterisk?rev=36043&view=rev
Log:
Issue 6997 maybe, but anyway - don't retransmit responses to NON-invite requests.


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?rev=36043&r1=36042&r2=36043&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Jun 26 10:27:58 2006
@@ -10670,9 +10670,9 @@
 		strcpy(p->context, default_context);
 	res = get_refer_info(p, req);
 	if (res < 0)
-		transmit_response_with_allow(p, "404 Not Found", req, 1);
+		transmit_response(p, "603 Declined", req);
 	else if (res > 0)
-		transmit_response_with_allow(p, "484 Address Incomplete", req, 1);
+		transmit_response(p, "484 Address Incomplete", req);
 	else {
 		int nobye = 0;
 		if (!ignore) {
@@ -10724,6 +10724,7 @@
 	}
 	return res;
 }
+
 /*! \brief  handle_request_cancel: Handle incoming CANCEL request ---*/
 static int handle_request_cancel(struct sip_pvt *p, struct sip_request *req, int debug, int ignore)
 {



More information about the svn-commits mailing list