[Kamailio-Users] Force rtp proxy

michel freiha michofr at gmail.com
Mon Mar 9 21:52:00 CET 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090309/44aafd94/attachment.htm 


More information about the Users mailing list