Hi,
I'm trying use two instances of rtpproxy listening to two different public IPs, to handle incoming and outgoing legs.
That means i want to implement this network topology:
SipClient--------->media from client to proxy--->rtpproxy1 Sipclient<----------media from proxy to client<---rtpproxy2
Where rtpproxy1 listening to IP1 and rtpproxy2 listening to IP2
in kamailio cfg : modparam("rtpproxy", "rtpproxy_sock", " udp:127.0.0.1:22222 udp: 127.0.0.1:22223")
if (is_request()) { if (!has_totag()) { add_rr_param(";nat=yes"); } rtpproxy_offer("IP1"); } if (is_reply()) { if(isbflagset(FLB_NATB)) { fix_nated_contact(); } rtpproxy_answer("IP2"); }
But its not working.
Thanks in advance