<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Verdana,sans-serif" color="#000000"><div>Hi,</div><div><br></div><div>I am trying to re-route to a different $ru after timeout and right before Kamailio reply with a 408.</div><div>I made the changes right before <span style="font-size: 12pt;">sl_reply_error(), however it does not work as I expected. </span></div><div><span style="font-size: 12pt;">Any help will be appreciated. </span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Also, $rm represents the request message received by Kamailio. Is there a variable represents the messages leaving Kamailio?. </span></div></font><font face="Verdana,sans-serif" color="#000000"><div><br></div><div><br></div><div>route[RELAY] {</div><div><br></div><div>   # enable additional event routes for forwarded requests</div><div>   # - serial forking, RTP relaying handling, a.s.o.</div><div>   if (is_method("INVITE|SUBSCRIBE")) {</div><div>      t_on_branch("MANAGE_BRANCH");</div><div>      t_on_reply("MANAGE_REPLY");</div><div>   }</div><div>   if (is_method("INVITE")) {</div><div>      t_on_failure("MANAGE_FAILURE");</div><div>   }</div><div><br></div><div>   if (!t_relay()) {</div><div><span style="font-size: 12pt;">     <span style="background-color: rgb(255, 255, 0);"> // re-route to a new $ru before sending 408</span></span></div><div>      sl_reply_error();</div><div>   }</div><div>   exit;</div><div>}</div><div><br></div><div>Thanks,</div><div>AS</div></font>                                           </div></body>
</html>