git:3.2: rtpproxy: send timeout socket only for U command
Module: sip-router Branch: 3.2 Commit: 3c6bd5c5d4405fa9e810759e2303515761af1fe3 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3c6bd5c5... Author: Daniel-Constantin Mierla <miconda@gmail.com> Committer: Daniel-Constantin Mierla <miconda@gmail.com> Date: Tue Jan 31 15:21:46 2012 +0100 rtpproxy: send timeout socket only for U command - optional parameters are not allowed for other commands - patch by Nick Altmann (nikbyte), FS#196 (cherry picked from commit 7426c76dfb6750b344e19a632c16374c162f5090) --- modules/rtpproxy/rtpproxy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c index f6f018f..277f639 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -2222,7 +2222,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc } else { v[3].iov_len = 0; } - if (to_tag.len > 0) { + if (opts.s.s[0] == 'U' && to_tag.len > 0) { iovec_param_count = 18; if (timeout_socket_str.len > 0) { iovec_param_count = 20;
participants (1)
-
Daniel-Constantin Mierla