aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-11 15:26:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-11 15:26:20 +0000
commitdfb9a57acefac247bf20d5d00ad9a38cfbcccd77 (patch)
treeb6fcc7a411b0b9167d127149184fa0cabbc0eef7 /channels
parent0e9a40904d2e7ad9ae4d7fe41b4d2be0a8f94ea8 (diff)
When creating a new packet don't try to stop retransmission of it. It was just allocated/created so it's impossible for it to have already been scheduled.
(closes issue #10945) Reported by: flefoll Patches: chan_sip.c.br14.85280.xmit_reliable-patch uploaded by flefoll (license 244) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85397 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ee983cae1..37f3e5e37 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);