hi all,<br>    <br>    I am trying to implement offline messages. When a message is sent to a user who is offline the messages are getting stored. but when the user logs in the messages are not getting delivered. i am posting the extract of the opensips.cfg<br>
<br><b>route[2] {^M<br>    ^M<br>   ## Register request handler^M<br>    if (is_uri_host_local()) {^M<br>        if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;)) {^M<br>            www_challenge(&quot;&quot;, &quot;1&quot;);^M<br>
            exit;^M<br>        };<br><br>        if (!check_to()) {^M<br>            sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);^M<br>            exit;^M<br>        };^M<br>        if(!search(&quot;^Contact:[ ]*\*&quot;) &amp;&amp; client_nat_test(&quot;7&quot;)) {^M<br>
            log(1,&quot;-------NAT Checking\n&quot;);^M<br>            setbflag(6);^M<br>            fix_nated_contact();^M<br>            force_rport();^M<br>        };^M<br>        save(&quot;location&quot;);<br>#--------------------------------------------------------- msilo testing--------------------------------------------------------------------<br>
        log(1, &quot;REGISTER received -&gt; dumping messages with MSILO------------------- 1\n&quot;);<br>        #append_hf(&quot;Contact: $ct\r\n&quot;);<br>        # MSILO - dumping user&#39;s offline messages<br>                xlog(&quot;L_INFO&quot;,&quot;***************************************** Request Body is :---------&gt; $rb\n&quot;);<br>
                if (m_dump())<br>                {<br>                        log(1, &quot;MSILO: offline messages dumped - if they were----------------------------------- 2\n&quot;);<br>                }else{<br>                        log(1, &quot;MSILO: no offline messages dumped\n&quot;);<br>
                };^M<br>                xlog(&quot;L_INFO,&quot;, &quot;\n Method: [$rm] From-URI: [$fu] To URI [$tu]  REply Status is : [$rs] ************************** Reply reason is: [$rr]&quot;);<br>#---------------------------------------------------------------------------------------------------------------------------------------------------<br>
        exit;^M<br>    } else if {^M<br>     sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);^M<br>    };^M<br>}^M</b><br><br>.......<br>.......<b><br><br>    if (!lookup(&quot;location&quot;)) {<br>#----------Storing Offline Messages----------------------------<br>
            if (!t_newtran())<br>            {<br>                sl_reply_error();<br>                exit;<br>            };<br>            # we do not care about anything else but MESSAGEs<br>            if (!method==&quot;MESSAGE&quot;)<br>
            {<br>                if (!t_reply(&quot;404&quot;, &quot;Not found&quot;))<br>                {<br>                    sl_reply_error();<br>                };<br>                exit;<br>            };<br>            log(1, &quot;MESSAGE received -&gt; storing using MSILO\n&quot;);<br>
            # MSILO - storing as offline message<br>            if (m_store(&quot;$ru&quot;))<br>            {<br>                log(1, &quot;MSILO: offline message stored\n&quot;);<br>                log(1,&quot;MSILO: ---------------------------------------&gt; in lookup location------------------------------- 4\n&quot;);<br>
                if (!t_reply(&quot;202&quot;, &quot;Accepted&quot;))<br>                {<br>                    sl_reply_error();<br>                };<br>            }else{<br>                log(1, &quot;MSILO: offline message NOT stored\n&quot;);<br>
                if (!t_reply(&quot;503&quot;, &quot;Service Unavailable&quot;))<br>                {<br>                    sl_reply_error();<br>                };<br>            };<br>           t_on_failure(&quot;3&quot;);<br>
#           t_relay();^M<br>#-------------Finished, Storing Offline Messages------------------------------------<br>if (does_uri_exist()) {^M<br>            ## User not registered at this time.^M<br>            ## Use the IP Address of your e-mail server^M<br>
            revert_uri();^M<br>            prefix(&quot;u&quot;);^M<br>            rewritehostport(&quot;192.168.1.149&quot;); #Use the IP address of your voicemail server^M<br>            route(6);^M<br>       route(1);^M<br>
        } else {^M<br>            sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);^M<br>       exit;^M<br>        }   ^M<br>        sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);^M<br>        exit;^M<br>            };^M<br>
    route(6); ^M<br>    route(1);^M<br>#   }<br>}^M</b><br><br clear="all"><br>can anyone tell me where have i gone wrong.<br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>