[SR-Users] Making media packets associated with calls appear unidirectional using rtpproxy and kamailio

aft aftnix at gmail.com
Wed Dec 31 13:00:07 CET 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141231/ffbd73cc/attachment.html>


More information about the sr-users mailing list