Easiest way to achieve this is simply to change the request URI as the SIP travels through the "middleman" instance:
e.g. $ru = "sip:"+$rU+"@main-opensips.server:5060"; t_relay(); If you want to keep the request uri unchanged, you can change the destination instead: $du = "sip:main-opensips-server:5060"; t_relay(); And to do it in a more managed fashion, you could use the dispatcher module which lets you change the IP of the "main" server on the fly should you wish to. On 2 March 2015 at 15:59, Mert Yazgart <[email protected]> wrote: > We would like to have some of the sip clients connect to a "middleman" > opensips instance which will relay the SIP requests to our "main" opensips > server (after some security related filtering) and relay the responses from > the "main" server back to the clients. > > There will be no NAT involved. RTP doesn't need to be relayed, just the > SIP. > > What is the simplest way of achieving this on the opensips instance in the > middle? t_relay with an IP specified? Other options? Does this need to be > stateful? > > Thanks. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
