浏览代码

- Updated the patch and the Protocol towards the RTP-Proxy (removed the timeout-socket-type)

Carsten Bock 14 年之前
父节点
当前提交
e5552b2b75
共有 3 个文件被更改,包括 7547 次插入47 次删除
  1. 2 29
      modules/rtpproxy/doc/rtpproxy_admin.xml
  2. 2 10
      modules/rtpproxy/rtpproxy.c
  3. 7543 8
      modules/rtpproxy/test/rtpproxy.patch

+ 2 - 29
modules/rtpproxy/doc/rtpproxy_admin.xml

@@ -241,45 +241,18 @@ modparam("rtpproxy", "nortpproxy_str", "a=sdpmangled:yes\r\n")
 		</para>
 		<para>
 		<emphasis>
-			Default value is <quote></quote>.
+			Default value is <quote></quote> (nothing).
 		</emphasis>
 		</para>
 		<example>
 		<title>Set <varname>timeout_socket</varname> parameter</title>
 		<programlisting format="linespecific">
 ...
-modparam("nathelper", "timeout_socket", "http://127.0.0.1:8000/RPC2")
+modparam("nathelper", "timeout_socket", "xmlrpc:http://127.0.0.1:8000/RPC2")
 ...
 </programlisting>
 		</example>
 	</section>
-	<section>
-		<title><varname>timeout_socket_type</varname> (int)</title>
-		<para>
-		The parameter sets type of the timeout socket, which is transmitted to the RTP-Proxy.
-		</para>
-		<para>
-		If it is not set, type 1 (Kamailio XML-RPC-Socket) is transmitted to the RTP-Proxy.
-		</para>
-		<para>
-		<emphasis>
-			Default value is <quote>1</quote>.
-		</emphasis>
-		</para>
-		<example>
-		<title>Set <varname>timeout_socket_type</varname> parameter</title>
-		<programlisting format="linespecific">
-...
-modparam("nathelper", "timeout_socket_type", 42)
-...
-</programlisting>
-		</example>
-		<para>
-		<emphasis>
-			The only supported Type on the RTP-Proxy is currently <quote>1</quote> or <quote>0</quote> which is the default socket-type of the RTP-Proxy which is not compatible to Kamailio.
-		</emphasis>
-		</para>
-	</section>
 	</section>
 
 	<section>

+ 2 - 10
modules/rtpproxy/rtpproxy.c

@@ -338,7 +338,6 @@ static int *rtpp_socks = 0;
 unsigned int *natping_state=0;
 
 static str timeout_socket_str = {0, 0};
-static int timeout_socket_type = 1;
 
 static cmd_export_t cmds[] = {
 	{"set_rtp_proxy_set",  (cmd_function)set_rtp_proxy_set_f,    1,
@@ -397,7 +396,6 @@ static param_export_t params[] = {
 	{"rtpproxy_retr",         INT_PARAM, &rtpproxy_retr         },
 	{"rtpproxy_tout",         INT_PARAM, &rtpproxy_tout         },
 	{"timeout_socket",    	  STR_PARAM, &timeout_socket_str.s  },
-	{"timeout_socket_type",   INT_PARAM, &timeout_socket_type   },
 	{0, 0, 0}
 };
 
@@ -1789,8 +1787,6 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 		{";", 1},	/* separator */
 		{NULL, 0},	/* medianum */
 		{" ", 1},	/* separator */
-		{NULL, 0},	/* Type of timeout-socket: 1 Kamailio-XML-RPC */
-		{" ", 1},	/* separator */
 		{NULL, 0},	/* Timeout-Socket */
 	};
 	int iovec_param_count;
@@ -2118,12 +2114,8 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 				if (to_tag.len > 0) {
 					iovec_param_count = 18;
 					if (timeout_socket_str.len > 0) {
-						iovec_param_count = 22;
-						snprintf(itoabuf_buf, sizeof itoabuf_buf, "%d", timeout_socket_type);
-						itoabuf_str.s = itoabuf_buf;
-						itoabuf_str.len = strlen(itoabuf_buf);
-						STR2IOVEC(itoabuf_str, v[19]);
-						STR2IOVEC(timeout_socket_str, v[21]);
+						iovec_param_count = 20;
+						STR2IOVEC(timeout_socket_str, v[19]);
 					}
 				} else {
 					iovec_param_count = 14;

文件差异内容过多而无法显示
+ 7543 - 8
modules/rtpproxy/test/rtpproxy.patch


部分文件因为文件数量过多而无法显示