Helo everyone! I've a problem with forwarding. My gateway return a "480" response when line is offline and I'm trying to forward to another gateway when line is offline (480 is return). I don't want to use t_on_failure. I write something like this:
if (uri="sip:0@.*"){ sethost("192.168.10.1") t_relay(); if (t_check_status ("480")) { sethost("192.168.10.2"); t_relay(); break; } break; }
But this script dont't work. I want to forward all calls only if return 480 sip response (not 486). Thanks for any help. Sorry for my bad english.
Swaper