See my previous suggestion earlier in this thread<span></span><br><br>On Wednesday, May 20, 2015, Oleg Stolyar &lt;<a href="mailto:olegstolyar@gmail.com">olegstolyar@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I looked at my logs more carefully and noticed that FS sends such re-INVITES for many of my calls but not all.  It is always sent about one minute after the call is established, so it&#39;s probably not based on session timer, right?<div><br></div><div>In most cases when it&#39;s sent JsSip answers with a 100 Trying.  In this case the call stays on.  In some rare cases JsSip does not respond and FS disconnects the call with <span style="color:rgb(0,0,0);font-size:12.8000001907349px">NORMAL_TEMPORARY_FAILURE we see in the log above.  </span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">I will investigate why JsSip sometimes does not respond but I would still like to figure out why FS is sending those re-INVITES to begin with?</span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">I thought it could be happening if JsSip does not respond to OK with an ACK but that&#39;s not the case.  The ACK is there for these calls.</span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">There is a variable nonce-ttl in the sip profile that defaults to 60 seconds.  Perhaps it has something to do with that?  This profile does not require authentication or registration at all, though.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 20, 2015 at 7:40 AM, Oleg Stolyar <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;olegstolyar@gmail.com&#39;);" target="_blank">olegstolyar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">But isn&#39;t that based on the session-timeout param which defaults to 30 min?  My re-invites occur much sooner than 30 min into a call.  Or does session-timeout param only control sessions initiated by FS while incoming sessions use the minimum-session-expires param if it&#39;s not explicitly passed by the session initiator?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 11:40 PM, Michael Jerris <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;mike@jerris.com&#39;);" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">session timer<div><div><span></span><br><br>On Tuesday, May 19, 2015, Oleg Stolyar &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;olegstolyar@gmail.com&#39;);" target="_blank">olegstolyar@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Michael, I&#39;ll see if we can do that!<div><br></div><div>So, is the re-INVITE legit and the problem is that JsSip does not respond to it?  Still, I am curious what is triggering the re-INVITE.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 8:05 PM, Michael Jerris <span dir="ltr">&lt;<a>mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think the sip.js guys fixed this issue when they forked jssip.  I&#39;d suggest using that.<br>
<div><div><br>
&gt; On May 19, 2015, at 10:01 PM, Oleg Stolyar &lt;<a>olegstolyar@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi guys,<br>
&gt;<br>
&gt; Several weeks ago I started getting an occasional problem where FS is sending an INVITE to the other side in the middle of a call, the other side does not respond and FS hangs up the leg.  Below is the relevant log.  The user experience is that they keep talking and hearing each other up to the very end.  I have a recording of that call, so can confirm.<br>
&gt;<br>
&gt; The call uses WebRTC and is originated by JsSip from Chrome.  Then the user is put into a conference but I doubt it&#39;s relevant in this case since the INVITE and disconnect are not happening from mod_conference<br>
&gt;<br>
&gt; I suspect it&#39;s a re-INVITE but what triggers FS to send it?  I couldn&#39;t find anything in the logs that could shed light.<br>
&gt;<br>
&gt; send 1625 bytes to wss/[##.##.##.##]:50292 at 00:00:19.702933:<br>
&gt;    ------------------------------------------------------------------------<br>
&gt;    INVITE sip:dj012n41@u40rf5qikah5.invalid;transport=ws;ob SIP/2.0<br>
&gt;    Via: SIP/2.0/WSS 10.97.158.232:5067;branch=z9hG4bK7Xm4tjevU45Sr<br>
&gt;    Max-Forwards: 70<br>
&gt;    From: &lt;sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@anonymous.invalid&gt;;tag=KQecUSr12rSQp<br>
&gt;    To: &quot;user1&quot; &lt;sip:anonymous@anonymous.invalid&gt;;tag=v1rlqab64i<br>
&gt;    Call-ID: g8980rbrbk2t45oj5mru<br>
&gt;    CSeq: 75703945 INVITE<br>
&gt;    Contact: &lt;sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@##.##.###.###:5080;transport=udp&gt;<br>
&gt;    User-Agent: FreeSWITCH-mod_sofia/1.5.15b~64bit<br>
&gt;    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
&gt;    Supported: timer, path, replaces<br>
&gt;    Session-Expires: 120;refresher=uac<br>
&gt;    Min-SE: 120<br>
&gt;    Content-Type: application/sdp<br>
&gt;    Content-Disposition: session<br>
&gt;    Content-Length: 825<br>
&gt;<br>
&gt;    v=0<br>
&gt;    o=FreeSWITCH 1432057287 1432057288 IN IP4 ##.##.##.##<br>
&gt;    s=FreeSWITCH<br>
&gt;    c=IN IP4 ##.##.##.##<br>
&gt;    t=0 0<br>
&gt;    a=msid-semantic: WMS uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br>
&gt;    m=audio 22670 RTP/SAVPF 9 126 106<br>
&gt;    a=rtpmap:9 G722/8000<br>
&gt;    a=rtpmap:126 telephone-event/8000<br>
&gt;    a=rtpmap:106 CN/8000<br>
&gt;    a=ptime:20<br>
&gt;    a=fingerprint:sha-256 E4:E2:DD:6C:60:61:69:9D:FD:21:64:79:66:C0:14:58:DD:67:CE:29:35:35:58:65:2E:91:70:85:4C:6C:47:69<br>
&gt;    a=rtcp-mux<br>
&gt;    a=rtcp:22670 IN IP4 ##.##.##.##<br>
&gt;    a=ssrc:1029894069 cname:VL2jTPmLiyFVIEaq<br>
&gt;    a=ssrc:1029894069 msid:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW a0<br>
&gt;    a=ssrc:1029894069 mslabel:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br>
&gt;    a=ssrc:1029894069 label:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hWa0<br>
&gt;    a=ice-ufrag:5dS3Fzx1Thrmdy9Z<br>
&gt;    a=ice-pwd:a19UHlvPK1BjvBzrFilbII2s<br>
&gt;    a=candidate:3876535948 1 udp 659136 107.20.175.160 22670 typ host generation 0<br>
&gt;    ------------------------------------------------------------------------<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:19.376858 [DEBUG] switch_core_session.c:1061 Send signal sofia/leia_agent/anonymous@anonymous.invalid [BREAK]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:19.376858 [DEBUG] sofia.c:6627 Channel sofia/leia_agent/anonymous@anonymous.invalid entering state [calling][0]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1061 Send signal sofia/leia_agent/anonymous@anonymous.invalid [BREAK]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1061 Send signal sofia/leia_agent/anonymous@anonymous.invalid [BREAK]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] sofia.c:6627 Channel sofia/leia_agent/anonymous@anonymous.invalid entering state [terminating][503]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [NOTICE] sofia.c:7543 Hangup sofia/leia_agent/anonymous@anonymous.invalid [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_channel.c:3242 Send signal sofia/leia_agent/anonymous@anonymous.invalid [KILL]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1396 Send signal sofia/leia_agent/anonymous@anonymous.invalid [BREAK]<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] mod_conference.c:5057 Channel leaving conference, cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] mod_conference.c:9650 sofia/leia_agent/anonymous@anonymous.invalid skip receive message [UNBRIDGE] (channel is hungup already)<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_media.c:7772 sofia/leia_agent/anonymous@anonymous.invalid skip receive message [REFER_EVENT] (channel is hungup already)<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_codec.c:246 sofia/leia_agent/anonymous@anonymous.invalid Restore previous codec G722:9.<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_session.c:2901 sofia/leia_agent/anonymous@anonymous.invalid skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:535 (sofia/leia_agent/anonymous@anonymous.invalid) State EXECUTE going to sleep<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:472 (sofia/leia_agent/anonymous@anonymous.invalid) Running State Change CS_HANGUP<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:735 (sofia/leia_agent/anonymous@anonymous.invalid) Callstate Change ACTIVE -&gt; HANGUP<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:737 (sofia/leia_agent/anonymous@anonymous.invalid) State HANGUP<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] mod_sofia.c:413 Channel sofia/leia_agent/anonymous@anonymous.invalid hanging up, cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:60 sofia/leia_agent/anonymous@anonymous.invalid Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:737 (sofia/leia_agent/anonymous@anonymous.invalid) State HANGUP going to sleep<br>
&gt;<br>
<br>
<br>
</div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>
</blockquote>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote>