<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1"><font face="FaceplateSansAGaugeLE">I'm having a problem
with the route sections below. When my proxy receives an Invite to
proxy to
a PSTN gateway, the proxy is sending 2 invites very fast to the gateway
in
the first route block which ends up creating a mess with the gateway.<br>
<br>
Either I have something wrong in the routing code or I have an
SER/OS/hardware timing problem.<br>
<br>
Any</font></font><font size="+1"><font face="FaceplateSansAGaugeLE">
suggestions ?<br>
<br>
<br>
</font></font><font size="+1"><tt>route[1] {<br>
xlog("L_INFO", "Sending to route 1\n%mb\n");<br>
rewritehostport ("1.1.1.1:5060");<br>
append_branch();<br>
t_on_failure("1");<br>
t_relay();<br>
}<br>
<br>
failure_route[1] {<br>
if(t_check_status("487")) {<br>
break;<br>
}<br>
xlog( "L_INFO", "failure on route 1\n%mb\n");<br>
append_branch();<br>
route(2);<br>
break;<br>
}<br>
<br>
route[2] {<br>
xlog("L_INFO", "Sending to route 2\n%mb\n");<br>
rewritehostport ("2.2.2.2:5060");<br>
append_branch();<br>
t_on_failure("2");<br>
t_relay();<br>
}<br>
<br>
failure_route[2] {<br>
if(t_check_status("487")) {<br>
break;<br>
}<br>
xlog( "L_INFO", "failure on route 2\n%mb\n");<br>
append_branch();<br>
route(3);<br>
break;<br>
}<br>
</tt></font><font size="+1"><tt><br>
route[3] {<br>
xlog("L_INFO", "Sending to rout 3\n%mb\n");<br>
rewritehostport ("3.3.3.3:5060");<br>
t_relay();<br>
}</tt></font><font size="+1"><font face="FaceplateSansAGaugeLE"><br>
<br>
</font></font><br>
Thanks,<br>
Matt<br>
<br>
</body>
</html>