<div dir="ltr">There's a whole lot of loglines at debug=4. I grabbed the block of lines that seem to belong to the failing INVITE.<div><br></div><div><div> 2(5209) INFO: <script>: INVITE <a href="mailto:sip%3Ajohn.doe.1@1.mail.example.com">sip:john.doe.1@1.mail.example.com</a> (F: <a href="mailto:sip%3Ajohn.doe.2@1.mail.example.com">sip:john.doe.2@1.mail.example.com</a>, T: <a href="mailto:sip%3Ajohn.doe.1@1.mail.example.com">sip:john.doe.1@1.mail.example.com</a>)</div>

<div> 2(5209) DEBUG: <core> [msg_translator.c:206]: check_via_address(): check_via_address(10.0.0.1, 10.0.0.1, 0)</div><div> 2(5209) DEBUG: siputils [checks.c:103]: has_totag(): no totag</div><div> 2(5209) DEBUG: tm [t_lookup.c:1100]: t_check_msg(): DEBUG: t_check_msg: msg id=9 global id=7 T start=(nil)</div>

<div> 2(5209) DEBUG: tm [t_lookup.c:534]: t_lookup_request(): t_lookup_request: start searching: hash=307, isACK=0</div><div> 2(5209) DEBUG: tm [t_lookup.c:492]: matching_3261(): DEBUG: RFC3261 transaction matching failed</div>

<div> 2(5209) DEBUG: tm [t_lookup.c:716]: t_lookup_request(): DEBUG: t_lookup_request: no transaction found</div><div> 2(5209) DEBUG: tm [t_lookup.c:1169]: t_check_msg(): DEBUG: t_check_msg: msg id=9 global id=9 T end=(nil)</div>

<div> 2(5209) INFO: <script>: LOCATION</div><div> 2(5209) DEBUG: registrar [lookup.c:181]: lookup(): contact for [<a href="mailto:john.doe.1@1.mail.example.com">john.doe.1@1.mail.example.com</a>] found by address</div>

<div> 2(5209) INFO: <script>: RELAY</div><div> 2(5209) DEBUG: tm [t_lookup.c:1400]: t_newtran(): DEBUG: t_newtran: msg id=9 , global msg id=9 , T on entrance=(nil)</div><div> 2(5209) DEBUG: tm [t_lookup.c:534]: t_lookup_request(): t_lookup_request: start searching: hash=307, isACK=0</div>

<div> 2(5209) DEBUG: tm [t_lookup.c:492]: matching_3261(): DEBUG: RFC3261 transaction matching failed</div><div> 2(5209) DEBUG: tm [t_lookup.c:716]: t_lookup_request(): DEBUG: t_lookup_request: no transaction found</div>
<div>
 2(5209) DEBUG: tm [t_hooks.c:374]: run_reqin_callbacks_internal(): DBG: trans=0x7f3c9ac29d90, callback type 1, id 0 entered</div><div> 2(5209) DEBUG: dialog [dlg_handlers.c:724]: dlg_onreq(): dialog creation on config flag</div>

<div> 2(5209) DEBUG: dialog [dlg_hash.c:664]: internal_get_dlg(): no dialog callid='a84d5218-a202-1231-5d9f-52540051a1d1' found</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:695]: get_dlg(): no dialog callid='a84d5218-a202-1231-5d9f-52540051a1d1' found</div>

<div> 2(5209) DEBUG: dialog [dlg_hash.c:439]: build_new_dlg(): new dialog on hash 3304</div><div> 2(5209) DEBUG: dialog [dlg_handlers.c:274]: populate_leg_info(): route_set , contact sip:john.doe.3@2.mail.example.com:5080;transport=udp;gw=testpbxs1, cseq 49802847 and bind_addr udp:<a href="http://10.0.0.2:5060">10.0.0.2:5060</a></div>

<div> 2(5209) DEBUG: dialog [dlg_hash.c:718]: link_dlg(): linking dialog [3304:2157]</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:727]: link_dlg(): ref dlg 0x7f3c9ac2b0c0 with 1 -> 1</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:747]: dlg_ref(): ref dlg 0x7f3c9ac2b0c0 with 1 -> 2</div>

<div> 2(5209) DEBUG: dialog [dlg_profile.c:406]: set_current_dialog(): setting current dialog [3304:2157]</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:765]: dlg_unref(): unref dlg 0x7f3c9ac2b0c0 with 1 -> 1</div><div>
 2(5209) DEBUG: dialog [dlg_hash.c:600]: dlg_lookup(): ref dlg 0x7f3c9ac2b0c0 with 1 -> 2</div>
<div> 2(5209) DEBUG: dialog [dlg_hash.c:602]: dlg_lookup(): dialog id=2157 found on entry 3304</div><div> 2(5209) DEBUG: dialog [dlg_handlers.c:729]: dlg_onreq(): dialog added to tm callbacks</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:765]: dlg_unref(): unref dlg 0x7f3c9ac2b0c0 with 1 -> 1</div>

<div> 2(5209) DEBUG: tm [t_hooks.c:374]: run_reqin_callbacks_internal(): DBG: trans=0x7f3c9ac29d90, callback type 1, id 0 entered</div><div> 2(5209) DEBUG: tm [t_funcs.c:347]: t_relay_to(): SER: new INVITE</div><div> 2(5209) DEBUG: <core> [msg_translator.c:206]: check_via_address(): check_via_address(10.0.0.1, 10.0.0.1, 0)</div>

<div> 2(5209) DEBUG: <core> [mem/shm_mem.c:111]: _shm_resize(): WARNING:vqm_resize: resize(0) called</div><div> 2(5209) DEBUG: tm [t_reply.c:706]: _reply_light(): DEBUG: reply sent out. buf=0x7f3ca36c25a0: SIP/2.0 100 trying -..., shmem=0x7f3c9ac2c7f0: SIP/2.0 100 trying -</div>

<div> 2(5209) DEBUG: tm [t_reply.c:716]: _reply_light(): DEBUG: _reply_light: finished</div><div> 2(5209) DEBUG: <script>: new branch [0] to sip:93m51afg@nj1hjakcqv9a.invalid;transport=ws</div><div> 2(5209) WARNING: <core> [msg_translator.c:2499]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found<br>

</div><div> 2(5209) ERROR: <core> [msg_translator.c:1725]: build_req_buf_from_sip_req(): could not create Via header</div><div> 2(5209) ERROR: tm [t_fwd.c:435]: prepare_new_uac(): could not build request</div><div>
 2(5209) ERROR: tm [t_fwd.c:1534]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches</div>
<div> 2(5209) DEBUG: tm [t_funcs.c:357]: t_relay_to(): ERROR:tm:t_relay_to:  t_forward_nonack returned error</div><div> 2(5209) DEBUG: tm [t_funcs.c:365]: t_relay_to(): -2 error reply generation delayed</div><div> 2(5209) DEBUG: <core> [msg_translator.c:206]: check_via_address(): check_via_address(10.0.0.1, 10.0.0.1, 0)</div>

<div> 2(5209) ERROR: sl [sl_funcs.c:371]: sl_reply_error(): ERROR: sl_reply_error used: No error (2/SL)</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:600]: dlg_lookup(): ref dlg 0x7f3c9ac2b0c0 with 1 -> 2</div><div> 2(5209) DEBUG: dialog [dlg_hash.c:602]: dlg_lookup(): dialog id=2157 found on entry 3304</div>

<div> 2(5209) DEBUG: dialog [dlg_hash.c:765]: dlg_unref(): unref dlg 0x7f3c9ac2b0c0 with 1 -> 1</div><div> 2(5209) DEBUG: tm [t_lookup.c:1553]: t_unref(): t_unref: delayed error reply generation(-2)</div><div> 2(5209) DEBUG: <core> [msg_translator.c:206]: check_via_address(): check_via_address(10.0.0.1, 10.0.0.1, 0)</div>

<div> 2(5209) DEBUG: tm [t_hooks.c:288]: run_trans_callbacks_internal(): DBG: trans=0x7f3c9ac29d90, callback type 1048576, id 0 entered</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Sep 26, 2013 at 11:14 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">
    Can you get the logs with debug=4?<br>
    <br>
    It doesn't seem like the same problem with the one reported
    initially in this thread.<br>
    <br>
    Cheers,<br>
    Daniel<div class="im"><br>
    <br>
    <div>On 9/25/13 6:04 PM, Tais Plougmann
      Hansen wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I found out that when a subscriber has multiple
        contacts (ie. by stopping and starting the WS client), kamailio
        either fails matching the connection or matches the wrong one.
        Setting registrar max_contacts to 1 and using save("location",
        "0x04") solved this problem for me.</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Sep 25, 2013 at 12:01 PM, Tais
          Plougmann Hansen <span dir="ltr"><<a href="mailto:taisph@osd.dk" target="_blank">taisph@osd.dk</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">I am getting this error when trying to call
              from an ip phone -> kamailio -> freeswitch ->
              kamailio -> jssip. It looks like it can't match the
              invited subscriber to a WS connection. Calls from jssip to
              ip phone works (although it hangs up after 3-4 seconds for
              some reason).</div>
            <div class="gmail_extra">
              <div>
                <div><br>
                  <br>
                  <div class="gmail_quote">On Mon, Jun 24, 2013 at 5:11
                    PM, 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"> Can you get
                        the ngrep on the server from the initial invite
                        to the ack. It seems that record route is not
                        properly mirrored, so one client might mess the
                        route path.<br>
                        <br>
                        Cheers,<br>
                        Daniel
                        <div><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <blockquote type="cite">
      <div class="gmail_extra">
        <div>
          <table>
            <tbody>
              <tr>
                <td><br>
                </td>
                <td><font color="#666666" face="arial, helvetica,
                    sans-serif"><br>
                  </font></td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </blockquote>
    <br>
    </div><pre cols="72"><div class="im">-- 
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></div>
Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
  - more details about Kamailio trainings at <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -
</pre>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#666666"><font face="arial, helvetica, sans-serif">Tais Plougmann Hansen</font><font face="arial, helvetica, sans-serif"><br></font></font><div><font face="arial, helvetica, sans-serif" color="#666666"><br>

</font></div><div><table><tbody><tr><td><font face="arial, helvetica, sans-serif" color="#666666"><img src="http://osd.dk/img/osd-signature.png"></font></td><td><font face="arial, helvetica, sans-serif" color="#666666">OSD Consulting ApS<br>

<a href="http://osd.dk/" target="_blank">osd.dk</a><br>Tel: +45 78101078<br>CVR: DK31332737<br></font></td></tr></tbody></table></div>
</div>