Module: sip-router
Branch: master
Commit: 7426c76dfb6750b344e19a632c16374c162f5090
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7426c76…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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
---
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 93019cd..f72df2a 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -2221,7 +2221,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;