Module: sip-router
Branch: 3.3
Commit: 0575f951e3b99e1524347a9c3ebd337fe8b1dcc3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0575f95…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: Thu Nov 1 21:00:05 2012 +0100
Revert "New Option: "x" for automatic bridging between IPv4 and
IPv6."
(Not a Bug-Fix)
This reverts commit 2750e03d4977d4a8f59ca0d2d0f59e1caec96b2d.
---
modules/rtpproxy/doc/rtpproxy.xml | 8 --------
modules/rtpproxy/doc/rtpproxy_admin.xml | 7 -------
modules/rtpproxy/rtpproxy.c | 22 +---------------------
3 files changed, 1 insertions(+), 36 deletions(-)
diff --git a/modules/rtpproxy/doc/rtpproxy.xml b/modules/rtpproxy/doc/rtpproxy.xml
index 741a4d9..d5a15ee 100644
--- a/modules/rtpproxy/doc/rtpproxy.xml
+++ b/modules/rtpproxy/doc/rtpproxy.xml
@@ -57,14 +57,6 @@
<email>osas(a)voipembedded.com</email>
</address>
</editor>
- <editor>
- <firstname>Carsten</firstname>
- <surname>Bock</surname>
- <affiliation><orgname>ng-voice GmbH</orgname></affiliation>
- <address>
- <email>carsten(a)ng-voice.com</email>
- </address>
- </editor>
</authorgroup>
<copyright>
<year>2003-2008</year>
diff --git a/modules/rtpproxy/doc/rtpproxy_admin.xml
b/modules/rtpproxy/doc/rtpproxy_admin.xml
index 64843eb..6b9577a 100644
--- a/modules/rtpproxy/doc/rtpproxy_admin.xml
+++ b/modules/rtpproxy/doc/rtpproxy_admin.xml
@@ -343,13 +343,6 @@ rtpproxy_offer();
the 'w' flag for clients behind NAT! See also above notes!
</para></listitem>
<listitem><para>
- <emphasis>x</emphasis> - this flag will do automatic bridging between
IPv4 on the
- "internal network" and IPv6 on the "external network". The
distinction is done by
- the given IP in the SDP, e.g. a IPv4 Address will always call "ie" to the
RTPProxy
- (IPv4(i) to IPv6(e)) and an IPv6Address will always call "ei" to the
RTPProxy (IPv6(e)
- to IPv4(i)).
- </para></listitem>
- <listitem><para>
<emphasis>f</emphasis> - instructs rtpproxy to ignore marks
inserted by another rtpproxy in transit to indicate that the
session is already goes through another proxy. Allows creating
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index e18655f..b50b2d1 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -1939,7 +1939,6 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
{NULL, 0}, /* Timeout-Socket */
};
int iovec_param_count;
- int autobridge_ipv4v6;
char *c1p, *c2p, *bodylimit, *o1p;
char itoabuf_buf[20];
@@ -1959,7 +1958,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
LM_ERR("out of pkg memory\n");
FORCE_RTP_PROXY_RET (-1);
}
- flookup = force = real = orgip = commip = via = autobridge_ipv4v6 = 0;
+ flookup = force = real = orgip = commip = via = 0;
for (cp = str1; cp != NULL && *cp != '\0'; cp++) {
switch (*cp) {
case '1':
@@ -2023,11 +2022,6 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
orgip = 1;
break;
- case 'x':
- case 'X':
- autobridge_ipv4v6 = 1;
- break;
-
case 'w':
case 'W':
if (append_opts(&opts, 'S') == -1) {
@@ -2205,12 +2199,6 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
}
/* XXX must compare address families in all addresses */
if (pf == AF_INET6) {
- if (autobridge_ipv4v6 != 0) {
- if ((append_opts(&opts, 'E') == -1) && (append_opts(&opts,
'I') == -1)) {
- LM_ERR("out of pkg memory\n");
- FORCE_RTP_PROXY_RET (-1);
- }
- }
if (append_opts(&opts, '6') == -1) {
LM_ERR("out of pkg memory\n");
FORCE_RTP_PROXY_RET (-1);
@@ -2218,15 +2206,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
/* We need to update the pointers and the length here, it has changed. */
v[1].iov_base = opts.s.s;
v[1].iov_len = opts.oidx;
- } else {
- if (autobridge_ipv4v6 != 0) {
- if ((append_opts(&opts, 'I') == -1) && (append_opts(&opts,
'E') == -1)) {
- LM_ERR("out of pkg memory\n");
- FORCE_RTP_PROXY_RET (-1);
- }
- }
}
-
STR2IOVEC(newip, v[9]);
STR2IOVEC(oldport, v[11]);
#ifdef EXTRA_DEBUG