Module: sip-router
Branch: carstenbock/rtpproxy2
Commit: 02f4eddbd34ea09c365ac8bc4af563fc308dbe07
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=02f4edd…
Author: Carsten Bock <lists(a)bock.info>
Committer: Carsten Bock <lists(a)bock.info>
Date: Thu Aug 19 15:33:30 2010 +0200
The Timeout socket must be sent with Update after session confirmation.
---
modules_k/rtpproxy/rtpproxy.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules_k/rtpproxy/rtpproxy.c b/modules_k/rtpproxy/rtpproxy.c
index 909a68c..9b00538 100644
--- a/modules_k/rtpproxy/rtpproxy.c
+++ b/modules_k/rtpproxy/rtpproxy.c
@@ -407,7 +407,7 @@ static param_export_t params[] = {
{"rtpproxy_disable_tout", INT_PARAM, &rtpproxy_disable_tout },
{"rtpproxy_retr", INT_PARAM, &rtpproxy_retr },
{"rtpproxy_tout", INT_PARAM, &rtpproxy_tout },
- {"timeout_socket_str", STR_PARAM, &timeout_socket_str.s },
+ {"timeout_socket", STR_PARAM, &timeout_socket_str.s },
{0, 0, 0}
};
@@ -2173,12 +2173,12 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer)
}
if (to_tag.len > 0) {
iovec_param_count = 18;
- } else {
- iovec_param_count = 14;
if (timeout_socket_str.len > 0) {
- iovec_param_count = 16;
- STR2IOVEC(timeout_socket_str, v[15]);
+ iovec_param_count = 20;
+ STR2IOVEC(timeout_socket_str, v[19]);
}
+ } else {
+ iovec_param_count = 14;
}
cp = send_rtpp_command(node, v, iovec_param_count);