[OpenSIPS-Users] B2B top hiding
Denis
denis7979 at mail.ru
Tue Nov 8 13:33:46 CET 2016
Hello, Razvan!
I found the problem (that was not correctly analyzing log).
Everything working if i set host and port before b2b_init_request.
Thank you for help.
mailto:denis7979 at mail.ru
Hi, Denis!
Are you seeing any other ERROR messages in the logs? When you see those errors in the log, does OpenSIPS send any message out (even to himself)? Can you provide a full trace?
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 11/07/2016 03:20 PM, Denis wrote:
Re: [OpenSIPS-Users] B2B top hiding Hello, Razvan!
I want to make some input point to my SIP network which will make authentication and topology hiding.
Authentication works (i checked it by inserting in client SIP UA wrong password), but b2b doesn`t.
When i try to setting port before b2b_init_request i see in log " ERROR:b2b_logic:create_top_hiding_entities: failed to create new b2b server instance"
mailto:denis7979 at mail.ru
Hi, Denis!
Can you please detail a bit what you are trying to achieve? In the trace attached, all I can see is that OpenSIPS doesn't authenticate the UA - I don't see why it should even try to send the INVITE anywhere.
However, if you are saying that you see both lines in the log, it means at a certain point the INVITE was authenticated and the topo-hiding was engaged. Did you try setting the port before calling b2b_init_request(), in route(1)?
BR
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 11/07/2016 02:20 PM, Denis wrote:
B2B top hiding 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
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
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/20161108/e7f234a1/attachment.htm>
More information about the Users
mailing list