]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When creating a new packet don't try to stop retransmission of it. It was just alloca...
authorJoshua Colp <jcolp@digium.com>
Thu, 11 Oct 2007 15:26:20 +0000 (15:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 11 Oct 2007 15:26:20 +0000 (15:26 +0000)
(closes issue #10945)
Reported by: flefoll
Patches:
      chan_sip.c.br14.85280.xmit_reliable-patch uploaded by flefoll (license 244)

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

channels/chan_sip.c

index ee983cae1ed767321d41f5b0b3286ffdda4df540..37f3e5e3789202e1dbfcbfcfb774608de66b0c57 100644 (file)
@@ -2030,8 +2030,6 @@ static enum sip_result __sip_reliable_xmit(struct sip_pvt *p, int seqno, int res
                siptimer_a = pkt->timer_t1 * 2;
 
        /* Schedule retransmission */
-       if (pkt->retransid > -1)
-               ast_sched_del(sched, pkt->retransid);
        pkt->retransid = ast_sched_add_variable(sched, siptimer_a, retrans_pkt, pkt, 1);
        if (option_debug > 3 && sipdebug)
                ast_log(LOG_DEBUG, "*** SIP TIMER: Initializing retransmit timer on packet: Id  #%d\n", pkt->retransid);