<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I think its incredibly easy to switch to sip.js as its pretty close API to jssip, and looking at the invite you posted, it does have a full sdp. &nbsp;jssip has been mostly abandoned for many months (maybe they came back, but it has serious bitrot either way), its not worth the time to mess with something we know is broken when there is an easy alternative we know works.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 21, 2015, at 10:44 AM, Oleg Stolyar &lt;<a href="mailto:olegstolyar@gmail.com" class="">olegstolyar@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">The suggestion about switching to SIP.JS?&nbsp; We are considering this but it will take a us a while to get it done and ready for production.&nbsp; In the meantime I was able to enable debugging on JsSip and it seems that we get this error when receiving re-INVITE from FS:<div class=""><div style="font-size: 12.8000001907349px;" class="">rtcninja:ERROR:RTCPeerConnection setLocalDescription() | error: +0ms Failed to set local answer sdp: Session error code: ERROR_CONTENT. Session error description: Failed to set audio receive codecs..<br class=""></div></div><div class=""><br class=""></div><div class="">It seems that FS is not including codecs info in re-INVITES.&nbsp; JsSip developers are saying that all invites including re-invites should include all the info.&nbsp; What do you think?</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 20, 2015 at 8:19 PM, Michael Jerris <span dir="ltr" class="">&lt;<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See my previous suggestion earlier in this thread<div class="HOEnZb"><div class="h5"><span class=""></span><br class=""><br class="">On Wednesday, May 20, 2015, Oleg Stolyar &lt;<a href="mailto:olegstolyar@gmail.com" target="_blank" class="">olegstolyar@gmail.com</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">I looked at my logs more carefully and noticed that FS sends such re-INVITES for many of my calls but not all.&nbsp; It is always sent about one minute after the call is established, so it's probably not based on session timer, right?<div class=""><br class=""></div><div class="">In most cases when it's sent JsSip answers with a&nbsp;100 Trying.&nbsp; In this case the call stays on.&nbsp; In some rare cases JsSip does not respond and FS disconnects the call with&nbsp;<span style="font-size: 12.8000001907349px;" class="">NORMAL_TEMPORARY_FAILURE we see in the log above. &nbsp;</span></div><div class=""><span style="font-size: 12.8000001907349px;" class=""><br class=""></span></div><div class=""><span style="font-size: 12.8000001907349px;" class="">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 class=""><span style="font-size: 12.8000001907349px;" class=""><br class=""></span></div><div class=""><span style="font-size: 12.8000001907349px;" class="">I thought it could be happening if JsSip does not respond to OK with an ACK but that's not the case.&nbsp; The ACK is there for these calls.</span></div><div class=""><span style="font-size: 12.8000001907349px;" class=""><br class=""></span></div><div class=""><span style="font-size: 12.8000001907349px;" class="">There is a variable nonce-ttl in the sip profile that defaults to 60 seconds.&nbsp; Perhaps it has something to do with that?&nbsp; This profile does not require authentication or registration at all, though.</span></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 20, 2015 at 7:40 AM, Oleg Stolyar <span dir="ltr" class="">&lt;<a class="">olegstolyar@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">But isn't that based on the session-timeout param which defaults to 30 min?&nbsp; My re-invites occur much sooner than 30 min into a call.&nbsp; 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=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, May 19, 2015 at 11:40 PM, Michael Jerris <span dir="ltr" class="">&lt;<a class="">mike@jerris.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">session timer<div class=""><div class=""><span class=""></span><br class=""><br class="">On Tuesday, May 19, 2015, Oleg Stolyar &lt;<a class="">olegstolyar@gmail.com</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Thanks Michael, I'll see if we can do that!<div class=""><br class=""></div><div class="">So, is the re-INVITE legit and the problem is that JsSip does not respond to it?&nbsp; Still, I am curious what is triggering the re-INVITE.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, May 19, 2015 at 8:05 PM, Michael Jerris <span dir="ltr" class="">&lt;<a class="">mike@jerris.com</a>&gt;</span> wrote:<br class=""><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.&nbsp; I'd suggest using that.<br class="">
<div class=""><div class=""><br class="">
&gt; On May 19, 2015, at 10:01 PM, Oleg Stolyar &lt;<a class="">olegstolyar@gmail.com</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt; Hi guys,<br class="">
&gt;<br class="">
&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.&nbsp; Below is the relevant log.&nbsp; The user experience is that they keep talking and hearing each other up to the very end.&nbsp; I have a recording of that call, so can confirm.<br class="">
&gt;<br class="">
&gt; The call uses WebRTC and is originated by JsSip from Chrome.&nbsp; 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 class="">
&gt;<br class="">
&gt; I suspect it's a re-INVITE but what triggers FS to send it?&nbsp; I couldn't find anything in the logs that could shed light.<br class="">
&gt;<br class="">
&gt; send 1625 bytes to wss/[##.##.##.##]:50292 at 00:00:19.702933:<br class="">
&gt;&nbsp; &nbsp; ------------------------------------------------------------------------<br class="">
&gt;&nbsp; &nbsp; INVITE <a href="sip:dj012n41@u40rf5qikah5.invalid;transport=ws;ob" class="">sip:dj012n41@u40rf5qikah5.invalid;transport=ws;ob</a> SIP/2.0<br class="">
&gt;&nbsp; &nbsp; Via: SIP/2.0/WSS 10.97.158.232:5067;branch=z9hG4bK7Xm4tjevU45Sr<br class="">
&gt;&nbsp; &nbsp; Max-Forwards: 70<br class="">
&gt;&nbsp; &nbsp; From: &lt;<a href="sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@anonymous.invalid" class="">sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@anonymous.invalid</a>&gt;;tag=KQecUSr12rSQp<br class="">
&gt;&nbsp; &nbsp; To: "user1" &lt;<a href="sip:anonymous@anonymous.invalid" class="">sip:anonymous@anonymous.invalid</a>&gt;;tag=v1rlqab64i<br class="">
&gt;&nbsp; &nbsp; Call-ID: g8980rbrbk2t45oj5mru<br class="">
&gt;&nbsp; &nbsp; CSeq: 75703945 INVITE<br class="">
&gt;&nbsp; &nbsp; Contact: &lt;<a href="sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@##.##.###.###:5080;transport=udp" class="">sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@##.##.###.###:5080;transport=udp</a>&gt;<br class="">
&gt;&nbsp; &nbsp; User-Agent: FreeSWITCH-mod_sofia/1.5.15b~64bit<br class="">
&gt;&nbsp; &nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br class="">
&gt;&nbsp; &nbsp; Supported: timer, path, replaces<br class="">
&gt;&nbsp; &nbsp; Session-Expires: 120;refresher=uac<br class="">
&gt;&nbsp; &nbsp; Min-SE: 120<br class="">
&gt;&nbsp; &nbsp; Content-Type: application/sdp<br class="">
&gt;&nbsp; &nbsp; Content-Disposition: session<br class="">
&gt;&nbsp; &nbsp; Content-Length: 825<br class="">
&gt;<br class="">
&gt;&nbsp; &nbsp; v=0<br class="">
&gt;&nbsp; &nbsp; o=FreeSWITCH 1432057287 1432057288 IN IP4 ##.##.##.##<br class="">
&gt;&nbsp; &nbsp; s=FreeSWITCH<br class="">
&gt;&nbsp; &nbsp; c=IN IP4 ##.##.##.##<br class="">
&gt;&nbsp; &nbsp; t=0 0<br class="">
&gt;&nbsp; &nbsp; a=msid-semantic: WMS uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br class="">
&gt;&nbsp; &nbsp; m=audio 22670 RTP/SAVPF 9 126 106<br class="">
&gt;&nbsp; &nbsp; a=rtpmap:9 G722/8000<br class="">
&gt;&nbsp; &nbsp; a=rtpmap:126 telephone-event/8000<br class="">
&gt;&nbsp; &nbsp; a=rtpmap:106 CN/8000<br class="">
&gt;&nbsp; &nbsp; a=ptime:20<br class="">
&gt;&nbsp; &nbsp; 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 class="">
&gt;&nbsp; &nbsp; a=rtcp-mux<br class="">
&gt;&nbsp; &nbsp; a=rtcp:22670 IN IP4 ##.##.##.##<br class="">
&gt;&nbsp; &nbsp; a=ssrc:1029894069 cname:VL2jTPmLiyFVIEaq<br class="">
&gt;&nbsp; &nbsp; a=ssrc:1029894069 msid:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW a0<br class="">
&gt;&nbsp; &nbsp; a=ssrc:1029894069 mslabel:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hW<br class="">
&gt;&nbsp; &nbsp; a=ssrc:1029894069 label:uZEfxiWc2Dm3Mj8pRAdC8BQDwtTzC6hWa0<br class="">
&gt;&nbsp; &nbsp; a=ice-ufrag:5dS3Fzx1Thrmdy9Z<br class="">
&gt;&nbsp; &nbsp; a=ice-pwd:a19UHlvPK1BjvBzrFilbII2s<br class="">
&gt;&nbsp; &nbsp; a=candidate:3876535948 1 udp 659136 107.20.175.160 22670 typ host generation 0<br class="">
&gt;&nbsp; &nbsp; ------------------------------------------------------------------------<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:19.376858 [DEBUG] switch_core_session.c:1061 Send signal <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:19.376858 [DEBUG] sofia.c:6627 Channel <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> entering state [calling][0]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1061 Send signal <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1061 Send signal <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] sofia.c:6627 Channel <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> entering state [terminating][503]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [NOTICE] sofia.c:7543 Hangup <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_channel.c:3242 Send signal <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [KILL]<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.616874 [DEBUG] switch_core_session.c:1396 Send signal <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br class="">
&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 class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] mod_conference.c:9650 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> skip receive message [UNBRIDGE] (channel is hungup already)<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_media.c:7772 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> skip receive message [REFER_EVENT] (channel is hungup already)<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_codec.c:246 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> Restore previous codec G722:9.<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_session.c:2901 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:535 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a>) State EXECUTE going to sleep<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:472 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a>) Running State Change CS_HANGUP<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:735 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a>) Callstate Change ACTIVE -&gt; HANGUP<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:737 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a>) State HANGUP<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] mod_sofia.c:413 Channel <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> hanging up, cause: NORMAL_TEMPORARY_FAILURE<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:60 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a> Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br class="">
&gt; fc1927a8-2257-400f-b4cb-67aff7297170 2015-05-20 00:00:22.636900 [DEBUG] switch_core_state_machine.c:737 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" class="">sofia/leia_agent/anonymous@anonymous.invalid</a>) State HANGUP going to sleep<br class="">
&gt;<br class="">
<br class="">
<br class="">
</div></div>_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
</blockquote></div><br class=""></div>
</blockquote>
</div></div><br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</blockquote>
</div></div><br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>