]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue #7869 - Stop retransmission of 302 redirects (imported from 1.2)
authorOlle Johansson <oej@edvina.net>
Sun, 29 Oct 2006 19:31:58 +0000 (19:31 +0000)
committerOlle Johansson <oej@edvina.net>
Sun, 29 Oct 2006 19:31:58 +0000 (19:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46407 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 99b0049733639e09cf60123b4b2891a350fdd0eb..5e0399ab0815d47c58f2628617a063c91b155b94 100644 (file)
@@ -16668,8 +16668,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest)
        ast_string_field_build(p, our_contact, "Transfer <sip:%s@%s%s%s>", extension, host, port ? ":" : "", port ? port : "");
        transmit_response_reliable(p, "302 Moved Temporarily", &p->initreq);
 
-       /* this is all that we want to send to that SIP device */
-       ast_set_flag(&p->flags[0], SIP_ALREADYGONE);
+       sip_scheddestroy(p, 32000);     /* Make sure we stop send this reply. */
 
        /* hangup here */
        return -1;