Thank you Daniel and David for your Response
Yes issue with exit() function and its stopping the script execution for
302 response in failure route.
Regards
Devang Dhandhalya
On Mon, Jul 3, 2023 at 7:06 PM David Villasmil <
david.villasmil.work(a)gmail.com> wrote:
i went through this. It's not that kamailio has
changed, kamailio executes
one first, then the other. So if you now added some drop() or exit()
somewhere on the first route, it won't execute the second.
This is what i found some months ago:
>MMM, that's strange, I was using it on
failure route and the route was
being executed, but the data wasn't there. I
put it on the onreply route and
that one is now executed with the data correctly there...
>
>I probably did something wrong.
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
On Mon, Jul 3, 2023 at 2:21 PM Daniel-Constantin Mierla <miconda(a)gmail.com>
wrote:
Hello,
nothing relevant happened during the past few days (in case you did a
kamailio upgrade), so it should be something specific to your environment.
I would suggest to run with debug=3 in kamailio.cfg and see what you can
get from the debug messages.
Eventually, if it is production, try to add some xlog() lines in config
at relevant places in routing blocks to make you understand better what is
executed and what is not (debug=3 may become too heavy for production).
Cheers,
Daniel
On 03.07.23 08:11, Devang Dhandhalya wrote:
Hello All
I am handling 302 response in the failure route and when receiving 302
response in kamailio, it's not going into the failure route , kamailio just
executing the onreply route when 302 response are received.
A few days ago the same code with failure route worked but now it does
not.
i dont know why kamailio is not executing a failure route from where we
can redirect calls to another server.
code snippet
route[RELAY]{
t_on_reply("MANAGE_REPLY");
t_on_failure("MANAGE_FAILURE");
t_on_branch("MANAGE_BRANCH");
if (!t_relay()) {
sl_reply_error();
}
exit;
}
failure_route[MANAGE_FAILURE] {
if (t_is_canceled()) {
exit;
}
if (t_check_status("302")){
get_redirects("*");
$ru= $T_rpl($sel(contact.uri));
route(RELAY);
}
}
kamailio version : 5.6.4
Please suggest if I am doing anything wrong.
--
Regards,
*Devang Dhandhalya*
*Disclaimer*
In addition to generic Disclaimer which you have agreed on our website,
any views or opinions presented in this email are solely those of the
originator and do not necessarily represent those of the Company or its
sister concerns. Any liability (in negligence, contract or otherwise)
arising from any third party taking any action, or refraining from taking
any action on the basis of any of the information contained in this email
is hereby excluded.
*Confidentiality*
This communication (including any attachment/s) is intended only for the
use of the addressee(s) and contains information that is PRIVILEGED AND
CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
of this communication is prohibited. Please inform originator if you have
received it in error.
*Caution for viruses, malware etc.*
This communication, including any attachments, may not be free of
viruses, trojans, similar or new contaminants/malware, interceptions or
interference, and may not be compatible with your systems. You shall carry
out virus/malware scanning on your own before opening any attachment to
this e-mail. The sender of this e-mail and Company including its sister
concerns shall not be liable for any damage that may incur to you as a
result of viruses, incompleteness of this message, a delay in receipt of
this message or any other computer problems.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
--
Daniel-Constantin Mierla --
www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference -
www.kamailioworld.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to
the sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to
the sender!
Edit mailing list options or unsubscribe:
--
Regards,
*Devang Dhandhalya*
[image: Ecosmob Technologies Pvt. Ltd.] <https://www.ecosmob.com/>
Ecosmob Technologies Pvt. Ltd.
VoIP | Web | Mobile | IoT | Big Data
--
*Disclaimer*
In addition to generic Disclaimer which you have agreed on
our website, any views or opinions presented in this email are solely those
of the originator and do not necessarily represent those of the Company or
its sister concerns. Any liability (in negligence, contract or otherwise)
arising from any third party taking any action, or refraining from taking
any action on the basis of any of the information contained in this email
is hereby excluded.
*Confidentiality*
This communication (including any
attachment/s) is intended only for the use of the addressee(s) and contains
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading,
dissemination, distribution, or copying of this communication is
prohibited. Please inform originator if you have received it in error.
*Caution for viruses, malware etc.*
This communication, including any
attachments, may not be free of viruses, trojans, similar or new
contaminants/malware, interceptions or interference, and may not be
compatible with your systems. You shall carry out virus/malware scanning on
your own before opening any attachment to this e-mail. The sender of this
e-mail and Company including its sister concerns shall not be liable for
any damage that may incur to you as a result of viruses, incompleteness of
this message, a delay in receipt of this message or any other computer
problems.