summaryrefslogtreecommitdiff
path: root/net/asterisk-bristuff/files/patch-rtp_timeout
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2009-09-16 19:33:37 +0000
committerMax Khon <fjoe@FreeBSD.org>2009-09-16 19:33:37 +0000
commitd3465e9af0e9d213c4871c62bd585514b7afb6f1 (patch)
tree48a2385f2d68edb04d5551874ae28de16a90593c /net/asterisk-bristuff/files/patch-rtp_timeout
parentUpdate to libpri 1.4.3 + bristuff-0.4.0-RC3g (diff)
Update to 1.4.26.2 + bristuff-0.4.0-RC3g.
All patches except 122-chan_zap-GSM.diff are present in cumulative bristuff patch. Sponsored by: Ethon Technologies GmbH Feature safe: yes
Diffstat (limited to 'net/asterisk-bristuff/files/patch-rtp_timeout')
-rw-r--r--net/asterisk-bristuff/files/patch-rtp_timeout25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/asterisk-bristuff/files/patch-rtp_timeout b/net/asterisk-bristuff/files/patch-rtp_timeout
new file mode 100644
index 000000000000..6f60c74cff41
--- /dev/null
+++ b/net/asterisk-bristuff/files/patch-rtp_timeout
@@ -0,0 +1,25 @@
+--- channels/chan_sip.c.orig 2009-04-14 08:58:13.000000000 +0100
++++ channels/chan_sip.c 2009-04-14 09:00:58.000000000 +0100
+@@ -16287,7 +16287,6 @@
+ restartsearch:
+ /* Check for interfaces needing to be killed */
+ ast_mutex_lock(&iflock);
+- t = time(NULL);
+ /* don't scan the interface list if it hasn't been a reasonable period
+ of time since the last time we did it (when MWI is being sent, we can
+ get back to this point every millisecond or less)
+@@ -16306,12 +16305,14 @@
+ (sip->owner->_state == AST_STATE_UP) &&
+ !sip->redirip.sin_addr.s_addr &&
+ sip->t38.state != T38_ENABLED) {
++ t = time(NULL);
+ if (sip->lastrtptx &&
+ ast_rtp_get_rtpkeepalive(sip->rtp) &&
+ (t > sip->lastrtptx + ast_rtp_get_rtpkeepalive(sip->rtp))) {
+ /* Need to send an empty RTP packet */
+ sip->lastrtptx = time(NULL);
+ ast_rtp_sendcng(sip->rtp, 0);
++ t = time(NULL);
+ }
+ if (sip->lastrtprx &&
+ (ast_rtp_get_rtptimeout(sip->rtp) || ast_rtp_get_rtpholdtimeout(sip->rtp)) &&