<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's probably not based on session timer, right?<div><br></div><div>In most cases when it'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'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"><<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@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 dir="ltr">But isn'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's not explicitly passed by the session initiator?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 11:40 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></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 <<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@gmail.com</a>> 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'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"><<a>mike@jerris.com</a>></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'd suggest using that.<br>
<div><div><br>
> On May 19, 2015, at 10:01 PM, Oleg Stolyar <<a>olegstolyar@gmail.com</a>> wrote:<br>
><br>
> Hi guys,<br>
><br>
> 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>
><br>
> The call uses WebRTC and is originated by JsSip from Chrome. Then the user is put into a conference but I doubt it's relevant in this case since the INVITE and disconnect are not happening from mod_conference<br>
><br>
> I suspect it's a re-INVITE but what triggers FS to send it? I couldn't find anything in the logs that could shed light.<br>
><br>
> send 1625 bytes to wss/[##.##.##.##]:50292 at 00:00:19.702933:<br>
> ------------------------------------------------------------------------<br>
> INVITE sip:dj012n41@u40rf5qikah5.invalid;transport=ws;ob SIP/2.0<br>
> Via: SIP/2.0/WSS 10.97.158.232:5067;branch=z9hG4bK7Xm4tjevU45Sr<br>
> Max-Forwards: 70<br>
> From: <sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@anonymous.invalid>;tag=KQecUSr12rSQp<br>
> To: "user1" <sip:anonymous@anonymous.invalid>;tag=v1rlqab64i<br>
> Call-ID: g8980rbrbk2t45oj5mru<br>
> CSeq: 75703945 INVITE<br>
> Contact: <sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@##.##.###.###:5080;transport=udp><br>
> User-Agent: FreeSWITCH-mod_sofia/1.5.15b~64bit<br>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
> Supported: timer, path, replaces<br>
> Session-Expires: 120;refresher=uac<br>
> Min-SE: 120<br>
> Content-Type: application/sdp<br>
> Content-Disposition: session<br>
> Content-Length: 825<br>
><br>
> v=0<br>
> o=FreeSWITCH 1432057287 1432057288 IN IP4 ##.##.##.##<br>
> s=FreeSWITCH<br>
> c=IN IP4 ##.##.##.##<br>
> t=0 0<br>
> a=msid-semantic: WMS uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br>
> m=audio 22670 RTP/SAVPF 9 126 106<br>
> a=rtpmap:9 G722/8000<br>
> a=rtpmap:126 telephone-event/8000<br>
> a=rtpmap:106 CN/8000<br>
> a=ptime:20<br>
> 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>
> a=rtcp-mux<br>
> a=rtcp:22670 IN IP4 ##.##.##.##<br>
> a=ssrc:1029894069 cname:VL2jTPmLiyFVIEaq<br>
> a=ssrc:1029894069 msid:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW a0<br>
> a=ssrc:1029894069 mslabel:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br>
> a=ssrc:1029894069 label:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hWa0<br>
> a=ice-ufrag:5dS3Fzx1Thrmdy9Z<br>
> a=ice-pwd:a19UHlvPK1BjvBzrFilbII2s<br>
> a=candidate:3876535948 1 udp 659136 107.20.175.160 22670 typ host generation 0<br>
> ------------------------------------------------------------------------<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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 -> HANGUP<br>
> 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>
> 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>
> 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>
> 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>
><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="mailto:consulting@freeswitch.org" 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="mailto:FreeSWITCH-users@lists.freeswitch.org" 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>