[OpenSIPS-Users] rtpproxy in bridge mode

Brad Bendy brad.bendy at benganetworks.com
Tue Oct 11 15:39:51 CEST 2011


Hi list,

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.

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.

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.

All INVITEs come into the 10.101.1.214, ive changed around the flags
several times and seem to have no change in anything.

Any insight as to what im doing wrong would be very helpful, thanks!
 
Here is the important parts of the current config:

route[1]{
    #sanity checks and other things are left out
    do_routing("0");

      if (dst_ip == 10.101.1.214) {
        xlog("dst IP is private");
        if (rtpproxy_offer("FAI")) {
          t_on_reply("1");
        }
      }
      if (dst_ip == 4.4.4.4) {
        xlog("dst is wan");
        if (rtpproxy_offer("FAEE")) {
          t_on_reply("1");
        }
      }  
        
  if (method == "BYE" || method == "CANCEL") {
    unforce_rtp_proxy();
  }

  if (loose_route()) {
    t_relay();
    exit();
  };
    
  if (method == "INVITE") {
    record_route(); 
  }

        if (!t_relay()) {
          sl_reply_error();
        }
}

onreply_route[1] {
  if (!(status=~"183" || status=~"200")) {
  xlog("status was 183 or 200 in reply");
} else {
# rtpproxy_answer("FA");
  }
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111011/70ff021b/attachment.htm>


More information about the Users mailing list