<div dir="ltr">thanks for that, this is incase my first proxy is canceling the request route to second proxy, what about proxy does not reply at all .<br>I can configure the timer using modparam("tm" , "fr_timer", 20) but how to route call to second if first proxy is timedout ?<br>
<br>thanks again<br><br>Asim <br><pre class="PROGRAMLISTING"><br></pre><br><div class="gmail_quote">On Mon, Oct 13, 2008 at 11:59 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Of course, this is the manual approach for two gateways. If you have more than two gateways and need to cycle through a list, you may want to consider the dispatcher module. s</blockquote>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><br>
<br>
Alex Balashov wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Asim Riaz wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
so then what is the posibility to send calls the first proxy if<br>
thats fail route to another one and so on ?<br>
</blockquote>
<br>
The possibility is high. :-)<br>
<br>
Here - try something like this:<br>
<br>
route {<br>
<br>
...<br>
<br>
if(is_method("INVITE"))<br>
route(1);<br>
<br>
...<br>
}<br>
<br>
<br>
# -- Relay INVITE -- #<br>
<br>
route[1] {<br>
t_on_failure("1");<br>
<br>
if(!t_relay("udp:proxy1:5060")) {<br>
xlog("L_INFO", "Final relay failure!\n");<br>
t_reply("503", "Service Unavailable");<br>
exit;<br>
}<br>
}<br>
<br>
# -- Backup INVITE route on failure of route(1) -- #<br>
<br>
failure_route[1] {<br>
if(t_was_cancelled()) {<br>
xlog("L_INFO", "Transaction cancelled.\n");<br>
exit;<br>
}<br>
<br>
append_branch();<br>
<br>
if(!t_relay("udp:proxy2:5060")) {<br>
xlog("L_INFO", "Relay to proxy2 failed - not so good!\n");<br>
t_reply("503", "Service Unavailable");<br>
exit;<br>
}<br>
}<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
</div></div></blockquote></div><br></div>