<DIV id=RTEContent>hi all,</DIV>  <DIV>I am using openser 0.9.5. I recently configured openser&nbsp;supporting gateway chaining with two failure routes. I tested it and it was working fine, and when I put it into actual production environment which processes close to 200 calls per second in peak hrs, openser crashed after an hours time. I think there was a memory leak.</DIV>  <DIV>The error message in syslog at that time showed:</DIV>  <DIV>ERROR: t_should_relay_response: status rewrite by UAS: stored: 487, received: 100</DIV>  <DIV>my snippet of cfg file is below:</DIV>  <DIV>&nbsp;</DIV>  <DIV>modparam("tm", "fr_inv_timer", 27)<BR>modparam("tm", "fr_timer", 3)<BR>modparam("tm", "fr_inv_timer_avp", "3")</DIV>  <DIV>&nbsp;</DIV>  <DIV>if(method=="INVITE") {<BR>&nbsp;&nbsp;setflag(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;if (uri=~"^sip:00[0-9]*@")
 {&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip(2);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewritehost("216.XXX.XXX.XX");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("1");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_reply("2");</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 break;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};</DIV>  <DIV>&nbsp;</DIV>  <DIV>failure_route[1] {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewritehost("217.XXX.XXX.XX");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("2");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>}</DIV>  <DIV>&nbsp;</DIV>  <DIV>failure_route[2] {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewritehost("218.XXX.XXX.XX");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>}</DIV>  <DIV><BR>onreply_route[2] {<BR>&nbsp;if (status=~"18[0-9]") {<BR>&nbsp;&nbsp;t_on_failure("0");<BR>&nbsp;};<BR>}<BR></DIV>  <DIV>I had ser fr_timer to 3 secs so that if there is no response within 3 secs the other route is tried.</DIV>  <DIV>Please let me know what logical error was there in my cfg which made openser crash.
 Is it something related with the timer?</DIV>  <DIV>&nbsp;</DIV>  <DIV>thanks in advance.</DIV>  <DIV>jayesh</DIV>  <DIV>&nbsp;</DIV>  <DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV><p>Send instant messages to your online friends http://in.messenger.yahoo.com