Thanks for help,
I set in route [3] : if (t_check_status("(486])||(408)")) { t_on_failure("1"); route(1); break; }; When timer expire and caller receive 408 or 486 last replies it should go to failure route !?
Regards
Harry
according to t_check_status TM docs : *in routing block - the code of the last sent reply. *in on_reply block - the code of the current received reply. *in on_failure block - the code of the selected negative final reply.
--- Zeus Ng zeus.ng@isquare.com.au a écrit :
Harry,
I haven't had much time to look at you config file. Otherwise, I'll will answering questions on the list. So busy these days!
In regards to your question, you have not forward / relay the request in your failure route. That is, you revert the uri, rewrite host port, but no t_relay. So, the request will disappear once it reach the end of that block. Hope that help.
Zeus Ng, CISSP, CCSA Principal Consultant iSquare Technology Tel: +61 2 9419 3887 Fax: +61 2 9410 2629 Mob: 0416 135 794 sip: zeusng(938764)@sip.isquare.com.au Email: zeus.ng@isquare.com.au
-----Original Message----- From: harry gaillac [mailto:gaillacharry@yahoo.fr]
Sent: Saturday, 16 July 2005 7:17 AM To: zeus.ng@isquare.com.au Subject: failure route
Hello,
i read
http://lists.iptel.org/pipermail/serusers/2004-September/011828.html
however i can't use failure route for busy or
noanswer
How can I forward caller to voicemail when status
486
or 408 are replied to caller ?
Regards Harry
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
On Jul 16, 2005 at 17:45, harry gaillac gaillacharry@yahoo.fr wrote:
Thanks for help,
I set in route [3] : if (t_check_status("(486])||(408)")) { t_on_failure("1"); route(1); break; }; When timer expire and caller receive 408 or 486 last replies it should go to failure route !?
No, you should set t_on_failure("1"), t_relay() the request at some point and have the t_check_status() block in the failure route.
Andrei
Thanks for reply,
I set "t_on_failure("1");" in INVITE route block and failure_route[1] { ########################## # Voicemail Handler # ##########################
if (t_check_status("(486)||(408)")) { revert_uri(); # resend to voicemail with original request URI rewritehostport("nxs.yi.org:5040"); append_branch(); t_relay_to_udp("nxs.yi.org","5040"); break; };
--- Andrei Pelinescu-Onciul andrei@iptel.org a écrit :
On Jul 16, 2005 at 17:45, harry gaillac gaillacharry@yahoo.fr wrote:
Thanks for help,
I set in route [3] : if (t_check_status("(486])||(408)")) { t_on_failure("1"); route(1); break; }; When timer expire and caller receive 408 or 486
last
replies it should go to failure route !?
No, you should set t_on_failure("1"), t_relay() the request at some point and have the t_check_status() block in the failure route.
Andrei
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com