Hi all, now i can configure SER to modified SDP when caller is in private ip, and use rtpproxy , so client can successed make voice call through NAT/Firewall
but my config now only work when caller is in private , if caller is in public ip , and callee is in private , it can't work
can it be configure to check if one of caller or calee is from private ip , then modify SDP , and force_rtp_proxy?
can any give me some idea ? thanks jimmy
if(nat_uac_test("3")) { if((method == "REGISTER") || !(search("^Record-Route:"))) { log("LOG:Someone trying to register from private IP, rewriting\n");
fix_nated_contact(); if(method == "INVITE") { fix_nated_sdp("1"); force_rtp_proxy(); t_on_reply("1"); }; force_rport(); setflag(6); }; };
onreply_route[1] { if(status =~ "(183)|2[0-9][0-9]") { fix_nated_contact(); force_rtp_proxy(); }; }