[Asterisk-code-review] Fix session timeout on retransmit of non UDP packets (asterisk[11])
Steve Davies
asteriskteam at digium.com
Tue Sep 13 05:34:58 CDT 2016
Steve Davies has uploaded a new change for review.
https://gerrit.asterisk.org/3887
Change subject: Fix session timeout on retransmit of non UDP packets
......................................................................
Fix session timeout on retransmit of non UDP packets
Change-Id: I844f26801aada10bc94e9bebe6e151f0a8443204
---
M channels/chan_sip.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/3887/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b65f612..9f9bcca 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3949,7 +3949,10 @@
* the first transmission and now is larger than our timeout period. This is a fail safe
* check in case the scheduler gets behind or the clock is changed. */
if ((diff <= 0) || (diff > pkt->retrans_stop_time)) {
+ /* TCP does not need retransmits as that's built in, but with
+ * retrans_stop set, we must give it the full timer_H treatment */
pkt->retrans_stop = 1;
+ siptimer_a = pkt->retrans_stop_time;
}
/* Lock channel PVT */
--
To view, visit https://gerrit.asterisk.org/3887
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I844f26801aada10bc94e9bebe6e151f0a8443204
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Steve Davies <steve at one47.co.uk>
More information about the asterisk-code-review
mailing list