[OpenSIPS-Users] Dispatcher failure route
Social Boh
social at bohboh.info
Sat Feb 22 16:04:51 EST 2020
Hello list,
I'm testing DISPATCHER module and how i can see, the INVITE never go to
failure route if the first Gateway fail.
My configuration:
route[DISP] {
if(!ds_select_dst("1","9")) {
send_reply("404", "No destination");
exit;
}
update_stat("load_sip:$dd", "+1");
t_on_failure("DISPATCHER_FAILURE");
route(relay);
exit;
}
failure_route[DISPATCHER_FAILURE] {
if (t_was_cancelled()) {
exit;
}
if (t_check_status("[56][09][09]")) {
if(ds_next_dst()) {
t_on_failure("DISPATCHER_FAILURE");
t_relay();
exit;
}
else {
send_reply("404", "No destination");
exit;
}
}
}
I can see the function ds_select_dst select 2 GATEWAY, y con see the
list of GATEWAY, but if I receive a 503 error from the first GATEWAY the
request never pass for FAILURE ROUTE.
changing if(!ds_select_dst("1","9")) {
with
if(!ds_select_dst("1","9","f")) {
or using other alghoritm not solve.
Any light, please?
--
---
I'm SoCIaL, MayBe
More information about the Users
mailing list