]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10456)
authorJoshua Colp <jcolp@digium.com>
Wed, 15 Aug 2007 14:18:44 +0000 (14:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 15 Aug 2007 14:18:44 +0000 (14:18 +0000)
Reported by: irroot
Patches:
      sip_timeout.patch uploaded by irroot (license 52)
Change hardcoded timer value to defined value. I'm doing this in 1.4 as well so if it needs to be changed in the future this place would not have been forgotten.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4eeea9fd863caa058615b257ea8743b1793e07d9..edb5d42666770896dc54a40f7bcff853dd47829d 100644 (file)
@@ -17393,7 +17393,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);
 
-       sip_scheddestroy(p, 32000);     /* Make sure we stop send this reply. */
+       sip_scheddestroy(p, SIP_TRANS_TIMEOUT); /* Make sure we stop send this reply. */
        sip_alreadygone(p);
        return 0;
 }