[OpenSIPS-Users] B2B top hiding
Denis
denis7979 at mail.ru
Mon Nov 7 13:20:05 CET 2016
Hello!
Opensips 2.2.2.
I want to make an installation of Opensips which will include auth and top hiding functionality.
First of all, in the main route, i catch INVITE
"if (is_method("INVITE") && !has_totag()) {
route(1);
exit;
}"
then, in route [1], i make some auth procedure using "pv_proxy_authorize" and "proxy_authorize" functions
if auth procedure is successful i make
"xlog("L_INFO", "Route1:$rm was received with auth (IP=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) AND B2B prepared");
b2b_init_request("top hiding");
exit;"
In the local route i try to edit port of the destination, using
"xlog("L_INFO", "Local:$rm was received with auth (IP=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au)");
rewritehostport("1.1.1.1:5065");"
where 1.1.1.1 - ip address of Opensips.
In attachment you can see debug of unsuccessful call, where
1.1.1.1 - ip address of Opensips.
2.2.2.2 - caller SIP UA
I can see in syslog both messages, in local route and in route [1].
As you can see from the debug Opensips doesn`t try to send INVITE to 1.1.1.1:5065.
Thank you for any help.
mailto:denis7979 at mail.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161107/fac1cfc8/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: b2b_problem.txt
URL: <http://lists.opensips.org/pipermail/users/attachments/20161107/fac1cfc8/attachment.txt>
More information about the Users
mailing list