<div dir="ltr">Thanks Michael!<div><br></div><div>There are some internal reasons why it&#39;s not trivial for us to switch to sip.js but as I said we&#39;ll be looking into that as well.</div><div>On a side note, JsSip did come back - they are actively releasing new versions.</div><div><br></div><div>Also, I have a question about best practices.  If a client originates a call to FS, do you think it&#39;s better to have the client be the session refresher or FS?  Any reason one way or another?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 7:50 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" 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"><div style="word-wrap:break-word">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.  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><div class="h5"><div><br><div><blockquote type="cite"><div>On May 21, 2015, at 10:44 AM, Oleg Stolyar &lt;<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">The suggestion about switching to SIP.JS?  We are considering this but it will take a us a while to get it done and ready for production.  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><div style="font-size:12.8000001907349px">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></div></div><div><br></div><div>It seems that FS is not including codecs info in re-INVITES.  JsSip developers are saying that all invites including re-invites should include all the info.  What do you think?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 20, 2015 at 8:19 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" 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">See my previous suggestion earlier in this thread<div><div><span></span><br><br>On Wednesday, May 20, 2015, Oleg Stolyar &lt;<a href="mailto:olegstolyar@gmail.com" 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">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="font-size:12.8000001907349px">NORMAL_TEMPORARY_FAILURE we see in the log above.  </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="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="font-size:12.8000001907349px"><br></span></div><div><span style="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="font-size:12.8000001907349px"><br></span></div><div><span style="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>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>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>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 <a>sip:dj012n41@u40rf5qikah5.invalid;transport=ws;ob</a> 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;<a>sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@anonymous.invalid</a>&gt;;tag=KQecUSr12rSQp<br>
&gt;    To: &quot;user1&quot; &lt;<a>sip:anonymous@anonymous.invalid</a>&gt;;tag=v1rlqab64i<br>
&gt;    Call-ID: g8980rbrbk2t45oj5mru<br>
&gt;    CSeq: 75703945 INVITE<br>
&gt;    Contact: &lt;<a>sip:answer-c4e14a20-fe82-11e4-95ed-22000b358f22@##.##.###.###:5080;transport=udp</a>&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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [BREAK]<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> entering state [terminating][503]<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [KILL]<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> [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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a>) 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 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a>) 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 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a>) 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 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a>) State HANGUP<br>
&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" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 <a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a> 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 (<a href="mailto:sofia/leia_agent/anonymous@anonymous.invalid" target="_blank">sofia/leia_agent/anonymous@anonymous.invalid</a>) 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>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>
</div></div></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>
_________________________________________________________________________<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></div></blockquote></div><br></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">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">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>