<div dir="ltr">Thanks for your help Daniel.<div><br></div><div>OK I ngrepped port 5060 and indeed the message tries to get delivered. However it never arrives at the client (1010 in this case).</div><div>I have added localhost listeners for UDP and TCP, even though all clients register through TLS only (could this be the root of the problem?). I added localhost listeners because I was getting the no socket found error message.</div>

<div><br></div><div><div>Listening on </div><div>             udp: <a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a></div><div>             tcp: <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a></div>
<div>             tls: 79.my.server.IP1:5061</div>
<div>Aliases: </div><div>             tcp: localhost:5060</div><div>             udp: localhost:5080</div><div>             *: my.domain.com:*</div></div><div><br></div><div><div>U 2014/07/16 15:29:14.904285 <a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a> -> 79.my.server.IP1:5060</div>

<div>MESSAGE <a href="mailto:sip%3A1010@my.domain.com" target="_blank">sip:1010@my.domain.com</a> SIP/2.0.</div><div>Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKcde3.542219f4000000000000000000000000.0.</div><div>To: <<a href="mailto:sip%3A1010@my.domain.com" target="_blank">sip:1010@my.domain.com</a>>.</div>

<div>From: <<a href="mailto:sip%3A1000@my.domain.com" target="_blank">sip:1000@my.domain.com</a>>;tag=def4124455da8a0b8e97eafabd028e26-2c30.</div><div>CSeq: 10 MESSAGE.</div><div>Call-ID: <a href="mailto:16b126996f51d89c-12460@127.0.0.1" target="_blank">16b126996f51d89c-12460@127.0.0.1</a>.</div>

<div>Max-Forwards: 70.</div><div>Content-Length: 58.</div><div>User-Agent: kamailio (4.1.4 (x86_64/linux)).</div><div>Date: Wed, 16 Jul 2014 15:22:31 GMT.</div><div>Content-Type: text/plain.</div><div>.</div><div>[Offline message - Wed Jul 16 15:22:31 2014] Test 1,2,3</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 8:58 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    can you watch the sip traffic on the network to see if the sip
    messages is sent out? You can use ngrep, like:<br>
    <br>
    ngrep -d any -qt -W byline "sip" port 5060<br>
    <br>
    Cheers,<br>
    Daniel<div><div><br>
    <br>
    <div>On 14/07/14 19:56, Peter Villeneuve
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>This is most likely a stupid mistake on my route config,
          but msilo correctly stores messages for offline users, but
          when they come back online, the message never arrives.</div>
        <div><br>
        </div>
        <div>Looking through the debug logs indeed there is an error,
          with status 408, which suggests kamaiio can't find a route to
          the user that just logged. Before I spend hours looking
          through all the routing blocks, perhaps someone more
          exprienced in kamailio can see the problem right away and
          offer a solution?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>DEBUG: msilo [msilo.c:1148]: m_dump(): msg [1-12] for: <a href="mailto:sip%3A1010@my.domain.com" target="_blank">sip:1010@my.domain.com</a></div>
          <div>DEBUG: <core> [io_wait.h:617]: io_watch_del(): DBG:
            io_watch_del (0x8e3040, 9, -1, 0x10) fd_no=2 called</div>
          <div>DEBUG: <core> [tcp_read.c:1437]: release_tcpconn():
            releasing con 0x7f61ced1b1b0, state 1, fd=9, id=1</div>
          <div> DEBUG: <core> [tcp_read.c:1438]:
            release_tcpconn():  extra_data 0x7f61ced1c4f8</div>
          <div>DEBUG: <core> [tcp_main.c:3385]:
            handle_tcp_child(): handle_tcp_child: reader response=
            7f61ced1b1b0, 1 from 0 </div>
          <div>DEBUG: <core> [io_wait.h:390]: io_watch_add(): DBG:
            io_watch_add(0x89ec40, 26, 2, 0x7f61ced1b1b0), fd_no=21</div>
          <div>DEBUG: <core> [tcp_main.c:3515]:
            handle_tcp_child(): handle_tcp_child: CONN_RELEASE
             0x7f61ced1b1b0 refcnt= 1</div>
          <div>DEBUG: tm [t_reply.c:1304]: t_should_relay_response():
            ->>>>>>>>> T_code=0, new_code=408</div>
          <div>DEBUG: tm [t_reply.c:2086]: local_reply(): DEBUG:
            local_reply: branch=0, save=0, winner=0</div>
          <div>DEBUG: tm [t_reply.c:2123]: local_reply(): DEBUG: local
            transaction completed</div>
          <div>DEBUG: tm [t_hooks.c:288]:
            run_trans_callbacks_internal(): DBG: trans=0x7f61ced1d868,
            callback type 1024, id 0 entered</div>
          <div>
            DEBUG: msilo [msilo.c:1317]: m_tm_callback(): <b>completed
              with status 408</b> [mid: 140058058335472/13]</div>
          <div>DEBUG: msilo [msilo.c:1325]: m_tm_callback(): message
            <13> was not sent successfully</div>
          <div>DEBUG: msilo [ms_msg_list.c:236]: msg_list_set_flag():
            mid:13 fl:8</div>
          <div>DEBUG: tm [t_reply.c:1304]: t_should_relay_response():
            ->>>>>>>>> T_code=0, new_code=408</div>
          <div>DEBUG: tm [t_reply.c:2086]: local_reply(): DEBUG:
            local_reply: branch=0, save=0, winner=0</div>
          <div>DEBUG: tm [t_reply.c:2123]: local_reply(): DEBUG: local
            transaction completed</div>
          <div>DEBUG: tm [t_hooks.c:288]:
            run_trans_callbacks_internal(): DBG: trans=0x7f61ced5f098,
            callback type 1024, id 0 entered</div>
          <div>
            DEBUG: msilo [msilo.c:1317]: m_tm_callback(): completed with
            status 408 [mid: 140058058329184/12]</div>
          <div>DEBUG: msilo [msilo.c:1325]: m_tm_callback(): message
            <12> was not sent successfully</div>
          <div>DEBUG: msilo [ms_msg_list.c:236]: msg_list_set_flag():
            mid:12 fl:8</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre><span><font color="#888888">
    </font></span></blockquote><span><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div>