davor jovanovic wrote:
sip:mister@no.com -> “404 Not Found” -> use
aliases -> sip:1234@no.com
-> t_relay -> GW -> PBX
Maybe something like that?
route{
...
t_on_failure("1");
t_relay();
}
failure_route[1]{
if(t_check_status("404")){
lookup("aliases");
rewritehostport("your.gateway", "5060");
t_relay();
}
}
HTH,
Andy