<!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 SER receives an Invite to proxy to
a PSTN gateway, SER 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&nbsp; 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>
&nbsp;&nbsp; &nbsp;xlog("L_INFO", "Sending to route 1\n%mb\n");<br>
&nbsp;&nbsp; &nbsp;rewritehostport ("1.1.1.1:5060");<br>
&nbsp;&nbsp; &nbsp;append_branch();<br>
&nbsp;&nbsp; &nbsp;t_on_failure("1");<br>
&nbsp;&nbsp; &nbsp;t_relay();<br>
}<br>
<br>
failure_route[1] {<br>
&nbsp;&nbsp; &nbsp;if(t_check_status("487")) {<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br>
&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;xlog( "L_INFO", "failure on route 1\n%mb\n");<br>
&nbsp;&nbsp; &nbsp;append_branch();<br>
&nbsp;&nbsp; &nbsp;route(2);<br>
&nbsp;&nbsp; &nbsp;break;<br>
}<br>
<br>
route[2] {<br>
&nbsp;&nbsp; &nbsp;xlog("L_INFO", "Sending to route 2\n%mb\n");<br>
&nbsp;&nbsp; &nbsp;rewritehostport ("2.2.2.2:5060");<br>
&nbsp;&nbsp; &nbsp;append_branch();<br>
&nbsp;&nbsp; &nbsp;t_on_failure("2");<br>
&nbsp;&nbsp; &nbsp;t_relay();<br>
}<br>
<br>
failure_route[2] {<br>
&nbsp;&nbsp; &nbsp;if(t_check_status("487")) {<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br>
&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;xlog( "L_INFO", "failure on route 2\n%mb\n");<br>
&nbsp;&nbsp; &nbsp;append_branch();<br>
&nbsp;&nbsp; &nbsp;route(3);<br>
&nbsp;&nbsp; &nbsp;break;<br>
}<br>
</tt></font><font size="+1"><tt><br>
route[3] {<br>
&nbsp;&nbsp; &nbsp;xlog("L_INFO", "Sending to rout 3\n%mb\n");<br>
&nbsp;&nbsp; &nbsp;rewritehostport ("3.3.3.3:5060");<br>
&nbsp;&nbsp;&nbsp; t_relay();<br>
}</tt></font><font size="+1"><font face="FaceplateSansAGaugeLE"><br>
<br>
</font></font><br>
Thanks,<br>
Matt<br>
</body>
</html>