[Serusers] fix_nated_sdp can check caller or calee from ??
jimmy huang
jimmy_huang at uni.com.tw
Tue May 11 06:03:06 CEST 2004
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();
};
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040511/a6c9edd9/attachment.htm>
More information about the sr-users
mailing list