[Serusers] RE: failure route

harry gaillac gaillacharry at yahoo.fr
Mon Jul 25 13:42:24 CEST 2005


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 at iptel.org> a écrit
:

> On Jul 16, 2005 at 17:45, harry gaillac
> <gaillacharry at 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




More information about the sr-users mailing list