Just added some lines to route[relay].
Thanks to Kirill Galinurov.
Not ideal in some cases but mostly what I need.
route[relay] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {
t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("missed_call");
}
# fix address in Record-Route if this is a 100/200 reply to Multifon // this
is only until OpenSIPS is behind NAT!
if($td=="multifon.ru") {
set_advertised_address("x.X.116.2");
}
if (!t_relay()) {
send_reply("500","Internal Error");
};
exit;
}
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users