From: Olle Johansson Date: Sun, 29 Oct 2006 19:35:04 +0000 (+0000) Subject: Issue #7869 - Stop retransmission of 302 redirects. X-Git-Tag: 1.6.0-beta1~3^2~4231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53ef33ccc35e465a7684494cb518e70b083db049;p=thirdparty%2Fasterisk.git Issue #7869 - Stop retransmission of 302 redirects. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46408 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a8a1fbed73..2308df0186 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16821,8 +16821,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest) ast_string_field_build(p, our_contact, "Transfer ", 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;