Call fix_nat_sdp for INVITE,RE-Invite.. That's it, This route will take care of everything..
route[fix_nat_sdp] { if(has_body("application/sdp")) { xlog("fix_nat_sdp called\n"); setbflag(3); rtpproxy_offer(); t_on_failure("1"); } t_on_reply("1"); if(nat_uac_test("1")){ fix_nated_contact(); } } onreply_route[1] { xlog("onreply_route called\n"); if(nat_uac_test("1")){ fix_nated_contact(); } if(has_body("application/sdp")){ rtpproxy_answer(); } }
0 comments: