[Serusers] rtpproxy and sethostport

radan radan at mail.gda.pl
Thu Nov 25 19:09:09 CET 2004


Hi all !
How can I use rtpproxy if i want redirect connection
from my client behind NAT to another user registered on another sip server
I can't use SRV records

# redirection to another sip server
if (uri=~"sip:1([0-9])*@.*") {
         setflag(1);
         strip(1);
         if (nat_uac_test("3")) {
         fix_nated_sdp("1");
         force_rport();
         fix_nated_contact();
         force_rtp_proxy();
         };
                 record_route();
         sethostport("another.sip.server.pl:5060");
if (!t_relay()) {
        sl_reply_error();
  };

break;

                t_relay();
         };

The connection is estabilished fine but I don't hear

Thanks
Andrzej




More information about the sr-users mailing list