[OpenSIPS-Users] media-proxy invalid IP in sdp
Pasan Meemaduma
pasandev at ymail.com
Tue Jul 19 12:31:46 CEST 2011
Hi
I only use 'use_media_proxy' in my dispatch route. below is my script where use_media_proxy is invoked
route[1] {
#check for nat flag
# Fix the test for NAT flag
if (isbflagset(2))
{
fix_nated_contact();
use_media_proxy();
}
t_on_reply("1");
t_on_failure("1");
if(is_method("INVITE")) {
#if(isflagset(12)){
# xlog("L_INFO", "Call sip-to-domain-final - $ruri M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
# }
if(t_check_trans())
{
# xlog("L_INFO", "Duplicate message $ruri M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
exit;
}
}
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
# xlog("L_INFO", "Request leaving server - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
if (!t_relay()) {
#xlog("L_INFO", "(Rewriting) t_relay 1 - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
if(isbflagset(2))
end_media_session();
sl_reply_error();
}
exit;
}
and also in on_reply right to fix the replies for NAT
onreply_route[1]
{
# xlog("L_INFO", "Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n");
if(nat_uac_test("1"))
fix_nated_contact();
if(isbflagset(2) && status =~ "(180)|(183)|(2[0-9][0-9])") {
if(!search("^Content-Length:[ ]*0"))
use_media_proxy();
}
}
How are you using MediaProxy? Using engage_mediaproxy or the individual functions? Any chance you called use_media_proxy twice?
Regards,
--
Saúl Ibarra Corretgé
AG Projects
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110719/717c81d8/attachment.htm>
More information about the Users
mailing list