Hi all,
I have a question regarding rtp proxy...I need to force rtp proxy in order that all rtp packets pass through...The issue now is the first INVITE does contains the PSTN GW IP instead of RTP Proxy IP...My config is as below:
if (is_method("INVITE")) { # setflag(4); # do accounting fix_nated_sdp("1");
}
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){ sl_send_reply("403", "Not allowed"); } else { # In cas of failure, re-route the request t_on_failure("1"); t_on_reply("1"); force_rtp_proxy();
t_relay(); }
onreply_route[1] { # if (t_check_status("2[0-9][0-9]") ) if((t_check_status("200|183|180") && search("Content_Type: application/sdp")) || search("Content-Type: application/sdp"))
{ force_rtp_proxy(); } exit; }
Please let me know what's wrong here and how i can fix this issue
Regards
Hello,
if you want to relay the RTP, then use only force_rtp_proxy() for INVITE, do not use fix_nated_sdp().
You can use xlog to be sure your config logic calls force_rtp_proxy() for invite and associated 200ok reply.
Cheers, Daniel
On 03/09/2009 10:52 PM, michel freiha wrote:
Hi all,
I have a question regarding rtp proxy...I need to force rtp proxy in order that all rtp packets pass through...The issue now is the first INVITE does contains the PSTN GW IP instead of RTP Proxy IP...My config is as below:
if (is_method("INVITE")) { # setflag(4); # do accounting fix_nated_sdp("1");
}
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){ sl_send_reply("403", "Not allowed"); } else { # In cas of failure, re-route the request t_on_failure("1"); t_on_reply("1"); force_rtp_proxy();
t_relay(); }
onreply_route[1] { # if (t_check_status("2[0-9][0-9]") ) if((t_check_status("200|183|180") && search("Content_Type: application/sdp")) || search("Content-Type: application/sdp"))
{ force_rtp_proxy(); } exit; }
Please let me know what's wrong here and how i can fix this issue
Regards
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users