<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'>Hi!<BR> <BR>I have a simple msilo setup which is working fine:<BR> <BR>-If the user is registered, the messages are delivered right away<BR>-If the user is not registered, the messages are stored in msilo and got deliverd at the next register<BR> <BR>Here is the relevant part of the cfg:<BR> <BR>---------------<BR>if (is_method("MESSAGE"))<br>        {<br>         log(1,"-------------------------------------------------------->WE HAVE A NEW MESSAGE\n");<br>         route(MSILO_MESSAGE);<br>        }<BR>.<BR>.<BR>.<BR>route[MSILO_MESSAGE]{<br>if (lookup("location")){<br>t_relay();<br> }else{<br>  m_store("$ru");<br>  sl_send_reply("200", "OK");<br> <br>}<br> exit;<br>}<BR>.<BR>.<BR>.<BR>route[REGISTRAR] {<br> if (is_method("REGISTER"))<br> {<br>  if(isflagset(FLT_NATS))<br>  {<br>   setbflag(FLB_NATB);<br>   # uncomment next line to do SIP NAT pinging <br>   setbflag(FLB_NATSIPPING);<br>  }<br>  if (!save("location"))<br>   sl_reply_error();<br>   # MSILO - dumping user's offline messages<br>                        m_dump();<br>                        exit;<br> }<br>}<BR>-------------------<BR>Thats working fine.<BR> <BR>Now, we have a use case where a user is registered, but got terminated in between abd not reachable.<BR>So the user is in the userloc table, but not reachable.<BR>In this case ,since the user is still in userloc, the t_relay() will be executed, and it drops a 408 (timeout) code which is fine. However, the process end here. The message is then dropped.<BR> <BR>What i would like to achieve is to make sure that t_relay() was executed with 200, otherwise store the message and deliver it at the next register.<BR> <BR> <BR>I was trying this:<BR> <BR> <BR>------------<BR> <BR>##storing offline messages (new)<br>route[MSILO_MESSAGE]{<br>  if (lookup("location")){<br>   if (!t_relay()) {<br>    m_store("$ru");<br>   sl_send_reply("200", "OK");<br>   }<br>   exit;<br> }<br> else{<br>   m_store("$ru");<br>  sl_send_reply("200", "OK");<br>  }<br> exit;<br>}<BR> <BR>-------- <BR> <BR>but i have still the same behaviour.<BR> <BR>Can you help me, what do I wrong?<BR> <BR>Many thnaks<BR> <BR>Marc. M<BR> <BR> <BR> <BR>                                    </div></body>
</html>