<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi list,<BR>
<BR>
Im trying to get a opensips 1.6.4-2 with rtpproxy 1.2.1 to work in bridge mode, calls will get a INVITE from a private network then opensips needs to forward that invite out upstream via a public interface.<BR>
<BR>
It appears the issue right now im seeing is the c= in SDP has the IP address twice, ie: c=IN IP4 10.101.1.21410.101.1.214.<BR>
<BR>
Ive tried about four different variations of this script and am now working off the base alg.cfg samples script, yet im still having the same problem. Before I was not getting a duplicate IP in the c= but was getting the public IP on the private side of the SDP.<BR>
<BR>
All INVITEs come into the 10.101.1.214, ive changed around the flags several times and seem to have no change in anything.<BR>
<BR>
Any insight as to what im doing wrong would be very helpful, thanks!<BR>
<BR>
Here is the important parts of the current config:<BR>
<BR>
route[1]{<BR>
#sanity checks and other things are left out<BR>
do_routing("0");<BR>
<BR>
if (dst_ip == 10.101.1.214) {<BR>
xlog("dst IP is private");<BR>
if (rtpproxy_offer("FAI")) {<BR>
t_on_reply("1");<BR>
}<BR>
}<BR>
if (dst_ip == 4.4.4.4) {<BR>
xlog("dst is wan");<BR>
if (rtpproxy_offer("FAEE")) {<BR>
t_on_reply("1");<BR>
}<BR>
} <BR>
<BR>
if (method == "BYE" || method == "CANCEL") {<BR>
unforce_rtp_proxy();<BR>
}<BR>
<BR>
if (loose_route()) {<BR>
t_relay();<BR>
exit();<BR>
};<BR>
<BR>
if (method == "INVITE") {<BR>
record_route(); <BR>
}<BR>
<BR>
if (!t_relay()) {<BR>
sl_reply_error();<BR>
}<BR>
}<BR>
<BR>
onreply_route[1] {<BR>
if (!(status=~"183" || status=~"200")) {<BR>
xlog("status was 183 or 200 in reply");<BR>
} else {<BR>
# rtpproxy_answer("FA");<BR>
}<BR>
}<BR>
<BR>
</BODY>
</HTML>