[OpenSIPS-Users] rtp proxy issue

Ghaith ALKAYYEM ghaith.alkayyem at telecom-bretagne.eu
Wed Sep 30 11:28:22 CEST 2009


Hi,
Maybe you have to try calling some functions before forcing the traffic
in order to change the parameter in SDP headers.
you can try something like that:

    force_rport();
    set_rtp_proxy_set("0");
    fix_nated_contact();
    force_rtp_proxy();

Because as far as I know that SER will change the "connection c=" field
in the SDP header.
It works fine with me.
Good luck


On Wed, 2009-09-30 at 01:57 -0700, Jan D. wrote:
> I'm having problems with force_rtp_proxy(). My final goal is to use rtp_proxy
> for user to user calls (not outbound).
> 
> I compiled opensips 1.5.3 on a Debian Unstable system. Als used apt-get to
> install rtpproxy. It runs under user opensips.
> 
> If I use force_rtp_proxy() the new IP address (77.20.20.1) (in the body) is
> placed behind the old IP address (89.10.10.1):
> Connection Address: 89.10.10.177.20.20.1
> 
> Here the nathelper config:
> 
> loadmodule "nathelper.so"
> modparam("nathelper", "natping_interval", 60)
> modparam("nathelper", "ping_nated_only", 1)
> modparam("nathelper", "sipping_from", "sip:natping at sip3.sollie.nl")
> modparam("nathelper", "received_avp", "$avp(i:801)")
> modparam("nathelper", "sipping_bflag", 6)
> modparam("nathelper", "rtpproxy_sock",
> "unix:/var/run/rtpproxy/rtpproxy.sock")
> 
> This is how I use rtpproxy:
> 
> # rtp proxy for local to local
> if(has_body("application/sdp"))
> {
> xlog("L_INFO"," INFO: force_rtp_proxy\n");
> force_rtp_proxy();
> t_on_reply("2");
> }
> 
> t_relay("0x05");
> 
> I also tried to set options but without any success.
> 
> Can anyone help or give a hint?
> 
> Jan
> 




More information about the Users mailing list