[Serusers] sl_send_reply not allowed in failure_route

Juha Heinanen jh at tutpro.com
Sun Apr 11 09:46:40 CEST 2004


i tried something like this:

failure_route [1] {
    if (t_check_status("486")) { # busy
	rewriteuri("sip:foo at bar.com");
	sl_send_reply("302", "Moved Temporarily");
	break;
    };
}

and got 

parse error (sl_send_reply line,xx-yy): Command cannot be used in the block

what is the proper way of doing redirect on busy?

-- juha




More information about the sr-users mailing list