Module: sip-router Branch: 3.2 Commit: 2357e54ecfba7a86b993e5a0e864fd232e1730ba URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2357e54e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Mar 23 12:14:07 2012 +0100
rtpproxy: proper iovec size for rtpproxy commands
- issue introduced with the last fix for timeout socket parameter - reported by Laurent Schweizer (cherry picked from commit 7c7e9f1051148887b7c5a578a9d09d66bf9586ce)
---
modules/rtpproxy/rtpproxy.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c index 277f639..b6aa316 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -2222,9 +2222,9 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc } else { v[3].iov_len = 0; } - if (opts.s.s[0] == 'U' && to_tag.len > 0) { + if (to_tag.len > 0) { iovec_param_count = 18; - if (timeout_socket_str.len > 0) { + if (opts.s.s[0] == 'U' && timeout_socket_str.len > 0) { iovec_param_count = 20; STR2IOVEC(timeout_socket_str, v[19]); }