Hello, Bogdan!
Is there any idea about problem?
Thank you.
--
С уважением, Денис.
Best regards, Denis
24.03.2017, 07:52, "Denis" <denis7...@mail.ru>:
Hello!It does not work.Opensips "freezes" a call.In syslog i see "INFO:drouting:do_routing: All the gateways are disabled"--С уважением, Денис.Best regards, Denis23.03.2017, 18:42, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi,
You should do :
if (!do_routing(.......) ) {
send_reply("404","No Route");
exit;
}
Regards,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.comOpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.htmlOn 03/23/2017 04:21 PM, Denis wrote:Hello, Bogdan!"test the return code for do_routing()".How can i do that?I triedif (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) { xlog ("Route4: Reason = $rc"); }but can see in log only "INFO:drouting:do_routing: All the gateways are disabled".Thank you.--С уважением, Денис.Best regards, Denis20.03.2017, 17:20, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Failure route does not help you if your routing does not start at all - if do_routing() returns negative. Again, in request route, test the return code for do_routing() - it will return a negative code if no destination is available for routing.
Regards,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.htmlOn 03/20/2017 02:28 PM, Denis wrote:Hello, Bogdan!Yes, i know about that.In failure_route i haveif (($DLG_status == 1) && t_check_status("408"))action. And it works if i have multiple direction (using alternative mode) for the prefix.But when i use only one direction for the prefix i have the problem described below.Thank you.--С уважением, Денис.Best regards, Denis20.03.2017, 15:24, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,
I suspect a scripting error on your side. If all the destinations are disabled, the do_routing() returns a negative code into the script - you need to handle this case and send back whatever negative reply you want. The Drouting modules does not do any SIP signalling for you.
Best regards,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.htmlOn 03/17/2017 07:50 AM, Denis via Users wrote:Hello!According to drouting module documentation i am trying to introduce a probing feature to control destination SIP UA access.Almost everything works correct, besides one thing.If i have only one destination, which became inaccessible, Opensips "freezes" a call, i.e. it sends 100 trying (script logging) and after does not sent any code (i expected, that Opensips will sent 408 code in such situation after fr_timeout triggering).Inaccessible destination has "probing" status and i see OPTIONS sent by Opensis to destination.Server:: OpenSIPS (2.2.3 (x86_64/linux))Thank you for any help.--С уважением, Денис.Best regards, Denis_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users