浏览代码

rtpproxy: send timeout socket only for U command

- optional parameters are not allowed for other commands
- patch by Nick Altmann (nikbyte), FS#196
Daniel-Constantin Mierla 13 年之前
父节点
当前提交
7426c76dfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/rtpproxy/rtpproxy.c

+ 1 - 1
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;