[SR-Users] force_rtp_proxy[flag, ipaddress] not rewriting c and o ?
MingHon
gminghon at gmail.com
Fri Jul 1 09:43:12 CEST 2011
im trying to replace the ip address in c= and o= with force_rtp_proxy.
i tried different flag co,rc,ro,fo,fc,rfco but still doesnt work.
hope some one can help me with this..
below is my noob simple script.
hope someone can help..
thanks you :)
route[RTPPROXY] {
#!ifdef WITH_NAT
if (is_method("BYE")) {
unforce_rtp_proxy();
} else if (is_method("INVITE")){
xlog("L_INFO","force_rtp_proxy!!!! $rm from $fu
(IP:$si:$sp)\n");
force_rtp_proxy("rfco","publicip");
}
if (!has_totag()) add_rr_param(";nat=yes");
#!endif
return;
}
--
Regards,
MingHon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110701/2a379c70/attachment.htm>
More information about the sr-users
mailing list