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