<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=Big5" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="2"> rewritehostport("voice_gateway_1:5060");<br>
You rewrite the URI ready to be t_relayed.<br>
<br>
forward(uri:host, uri:port);</font><br>
Then you explicitly forward the message before setting t_on_failure.<br>
g-)<br>
<br>
AR. wrote:
<blockquote cite="mid005801c6d247$400d9220$0d3d6e8c@ad.nchc.org.tw"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2963" name="GENERATOR">
<style></style>
<div><font size="2">Hi all</font></div>
<div><font size="2"> I have a problme about the failure route</font></div>
<div><font size="2"> </font></div>
<div><font size="2"> My scenario is that:</font></div>
<div><font size="2"> If voice gateway 1 is busy then forward the
call to the voice gateway 2</font></div>
<div> </div>
<div><font size="2"> My config is :</font></div>
<div><font size="2"> route[5] {<br>
rewritehostport("voice_gateway_1:5060");<br>
forward(uri:host, uri:port);<br>
t_on_failure("2");<br>
if(isflagset(1))<br>
append_branch();<br>
setflag(1);<br>
t_relay();<br>
break;<br>
}<br>
failure_route[2] {</font></div>
<div><font size="2"> route(6);</font></div>
<div><font size="2">}</font></div>
<div><font size="2">route[6] {<br>
rewritehostport("voice_gateway_2:5060");<br>
forward(uri:host, uri:port);<br>
break;<br>
}<br>
</font></div>
<div><font size="2"> But it still doesn't work</font></div>
<div><font size="2"> anyone help?</font></div>
<div> </div>
<div><font size="2">Best Regards</font></div>
<div><font size="2">AR.</font></div>
<div> </div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
</pre>
</blockquote>
</body>
</html>