<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-GB;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">We did have a working msilo implementation a while back, but we don’t use it any more, so I can only look back at the config files (which are a lot more complicated
 than yours).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">We added the a modparam
</span><b><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">modparam("msilo", "outbound_proxy", "<a href="sip:MY_REAL_IP:MY_SIP_PORT;transport=tcp">sip:MY_REAL_IP:MY_SIP_PORT;transport=tcp</a>")</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">which will make it arrive on the local machine on the given socket (instead of localhost) to be processed, but that probably isn’t your problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Is it possible that Kamailio is trying to establish a new connection, instead of reusing the existing connection to the client? That would be visible as TCP
 SYNs in a trace and would cause a 408 after the timeout. We are using a separate outbound enabled edge proxy so this isn’t a problem for us.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hugh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org]
<b>On Behalf Of </b>Peter Villeneuve<br>
<b>Sent:</b> 17 July 2014 13:10<br>
<b>To:</b> Daniel-Constantin Mierla; Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Msilo not delivering message (status 408)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">I guess no one really knows why it isn't working either.<o:p></o:p></p>
</div>
<p class="MsoNormal">The only option I have left seems to be to try and update to the 4.2 nightly and hope that whatever's wrong is a bug with 4.1.4 and not a simple mistake in my routing syntax or logic.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Daniel, is 4.2 nightly debian package stable enough for a production system? Would you recommend I upgrade?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 16, 2014 at 9:37 PM, Peter Villeneuve <<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">Can anyone help please? I was supposed to have this server up and running hours ago and I can't think of anything to do next to help debug this.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 16, 2014 at 7:01 PM, Peter Villeneuve <<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">I removed the localhost listeners on TCP and UDP, and, as I suspected, Kamailio doesn't seem to like that.<o:p></o:p></p>
<div>
<p class="MsoNormal">Why isn't kamailio sending the message back through the TLS socket?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<pre style="mso-line-height-alt:11.7pt"><span style="font-size:12.0pt;color:#393939">NOTICE: <script>: -------------------------MESSAGE PROCESSING: dumping offline messages<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:11.7pt"><span style="font-size:12.0pt;color:#393939">ERROR: tm [ut.h:343]: uri2dst2(): no corresponding socket for af 2<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:11.7pt"><span style="font-size:12.0pt;color:#393939">ERROR: tm [uac.c:266]: t_uac_prepare(): t_uac: no socket found<o:p></o:p></span></pre>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 16, 2014 at 4:44 PM, Peter Villeneuve <<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">And here's the full routing block. I copied it from someone else on the list that was troubleshooting msilo a while back.<o:p></o:p></p>
<div>
<p class="MsoNormal">Also, I can confirm the message never gets delivered because it remains in msilo DB and kamailio logs shows it trying and trying.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">####### Routing Logic ########<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#1F497D">…</span><o:p></o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 16, 2014 at 4:38 PM, Peter Villeneuve <<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">Thanks for your help Daniel.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">OK I ngrepped port 5060 and indeed the message tries to get delivered. However it never arrives at the client (1010 in this case).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Listening on <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             udp: <a href="http://127.0.0.1:5080" target="_blank">
127.0.0.1:5080</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             tcp: <a href="http://127.0.0.1:5060" target="_blank">
127.0.0.1:5060</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             tls: 79.my.server.IP1:5061<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Aliases: <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             tcp: localhost:5060<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             udp: localhost:5080<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">             *: my.domain.com:*<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">MESSAGE <a href="mailto:sip%3A1010@my.domain.com" target="_blank">
sip:1010@my.domain.com</a> SIP/2.0.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKcde3.542219f4000000000000000000000000.0.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">To: <<a href="mailto:sip%3A1010@my.domain.com" target="_blank">sip:1010@my.domain.com</a>>.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">From: <<a href="mailto:sip%3A1000@my.domain.com" target="_blank">sip:1000@my.domain.com</a>>;tag=def4124455da8a0b8e97eafabd028e26-2c30.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">CSeq: 10 MESSAGE.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Call-ID: <a href="mailto:16b126996f51d89c-12460@127.0.0.1" target="_blank">
16b126996f51d89c-12460@127.0.0.1</a>.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Max-Forwards: 70.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Content-Length: 58.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">User-Agent: kamailio (4.1.4 (x86_64/linux)).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Date: Wed, 16 Jul 2014 15:22:31 GMT.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Content-Type: text/plain.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">[Offline message - Wed Jul 16 15:22:31 2014] Test 1,2,3<o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 16, 2014 at 8:58 AM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">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<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 14/07/14 19:56, Peter Villeneuve wrote:<o:p></o:p></p>
</div>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal">Hi, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: <core> [io_wait.h:617]: io_watch_del(): DBG: io_watch_del (0x8e3040, 9, -1, 0x10) fd_no=2 called<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: <core> [tcp_read.c:1437]: release_tcpconn(): releasing con 0x7f61ced1b1b0, state 1, fd=9, id=1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> DEBUG: <core> [tcp_read.c:1438]: release_tcpconn():  extra_data 0x7f61ced1c4f8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: <core> [tcp_main.c:3385]: handle_tcp_child(): handle_tcp_child: reader response= 7f61ced1b1b0, 1 from 0 <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: <core> [io_wait.h:390]: io_watch_add(): DBG: io_watch_add(0x89ec40, 26, 2, 0x7f61ced1b1b0), fd_no=21<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: <core> [tcp_main.c:3515]: handle_tcp_child(): handle_tcp_child: CONN_RELEASE  0x7f61ced1b1b0 refcnt= 1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:1304]: t_should_relay_response(): ->>>>>>>>> T_code=0, new_code=408<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:2086]: local_reply(): DEBUG: local_reply: branch=0, save=0, winner=0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:2123]: local_reply(): DEBUG: local transaction completed<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_hooks.c:288]: run_trans_callbacks_internal(): DBG: trans=0x7f61ced1d868, callback type 1024, id 0 entered<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [msilo.c:1317]: m_tm_callback(): <b>completed with status 408</b> [mid: 140058058335472/13]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [msilo.c:1325]: m_tm_callback(): message <13> was not sent successfully<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [ms_msg_list.c:236]: msg_list_set_flag(): mid:13 fl:8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:1304]: t_should_relay_response(): ->>>>>>>>> T_code=0, new_code=408<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:2086]: local_reply(): DEBUG: local_reply: branch=0, save=0, winner=0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_reply.c:2123]: local_reply(): DEBUG: local transaction completed<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: tm [t_hooks.c:288]: run_trans_callbacks_internal(): DBG: trans=0x7f61ced5f098, callback type 1024, id 0 entered<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [msilo.c:1317]: m_tm_callback(): completed with status 408 [mid: 140058058329184/12]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [msilo.c:1325]: m_tm_callback(): message <12> was not sent successfully<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">DEBUG: msilo [ms_msg_list.c:236]: msg_list_set_flag(): mid:12 fl:8<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
</div>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><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 style="color:#888888"><o:p></o:p></span></pre>
</blockquote>
<p class="MsoNormal"><span style="color:#888888"><br>
<br>
<o:p></o:p></span></p>
<pre><span style="color:#888888">-- <o:p></o:p></span></pre>
<pre><span style="color:#888888">Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><o:p></o:p></span></pre>
<pre><span style="color:#888888"><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><o:p></o:p></span></pre>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<hr>
<p class="MsoNormal"><span style="font-size:7.5pt;line-height:115%;font-family:
"Arial","sans-serif";mso-fareast-font-family:"Times New Roman";color:gray">This e-mail and any attachment
<span class="GramE">is</span> for <span class="SpellE">authorised</span> use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained
 or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.</span></p>
</body>
</html>