]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 6997 maybe, but anyway - don't retransmit responses to NON-invite requests.
authorOlle Johansson <oej@edvina.net>
Mon, 26 Jun 2006 15:27:58 +0000 (15:27 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 26 Jun 2006 15:27:58 +0000 (15:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36043 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index fc616a535a4143df4525c2bace4654319d26fa55..6d47c87c7115940e6435abe91a037454a15fdfc0 100644 (file)
@@ -10670,9 +10670,9 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
                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 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
        }
        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)
 {