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.