<div dir="auto"><a href="http://www.opensips.org/Documentation/Tutorials-WebSocket-2-1">http://www.opensips.org/Documentation/Tutorials-WebSocket-2-1</a><div dir="auto"><br></div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 18, 2017 11:06 AM, &quot;Michael Jerris&quot; &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>webrtc_media=true</div></div><div><br><div class="gmail_quote"><div>On Sat, Mar 18, 2017 at 8:50 AM Dave Horton &lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="m_572242296312295255gmail_msg">I built something similar - a sip.js-based browser coupled with a webrtc proxy using freeswitch for the media proxy (no verto), with a separate SIP signaling engine (in my case instead of opensips I used my open open source framework, called drachtio <a href="https://github.com/davehorton/drachtio-server" class="m_572242296312295255gmail_msg" target="_blank">https://github.com/<wbr>davehorton/drachtio-server</a>).<div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">TLDR; For the inbound call to the browser, send a 3pcc INVITE to the browser</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">Meaning:</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">1. Send INVITE with no SDP to the browser</div><div class="m_572242296312295255gmail_msg">2.  Get 200 OK with SDP and ICE candidates</div><div class="m_572242296312295255gmail_msg">3. Send INVITE to freeswitch with that SDP</div><div class="m_572242296312295255gmail_msg">4. Get 200 OK from freeswitch with its SDP</div><div class="m_572242296312295255gmail_msg">5. Send ACK to browser with SDP from freeswitch</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">Freeswitch then bridges the call from the webrtc side to the sip side.</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">FYI, my browser app can be seen at <a href="https://webrtc.drachtio.org/" class="m_572242296312295255gmail_msg" target="_blank">https://webrtc.drachtio.<wbr>org/</a>, feel free to try it out, with a couple of notes:</div><div class="m_572242296312295255gmail_msg">1) only google authentication is supported</div><div class="m_572242296312295255gmail_msg">2) you need to have sip credentials from a hosted VoIP provider</div><div class="m_572242296312295255gmail_msg">3) when you first log in, select the ‘Settings’ menu from the upper right and add your sip credentials</div><div class="m_572242296312295255gmail_msg">4) its meant to be an operator type console where you can also monitor other extensions in your business using sip presence, do call pickup etc. </div><div class="m_572242296312295255gmail_msg">5) video is currently not supported</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">Browser app is built using google polymer material design, and code is here: <a href="https://github.com/davehorton/webrtc-operator-console" class="m_572242296312295255gmail_msg" target="_blank">https://github.com/<wbr>davehorton/webrtc-operator-<wbr>console</a></div><div class="m_572242296312295255gmail_msg">Webrtc proxy app code is here: <a href="https://github.com/davehorton/ws-proxy" class="m_572242296312295255gmail_msg" target="_blank">https://github.com/<wbr>davehorton/ws-proxy</a>, and as noted depends on drachtio server and freeswitch (using drachtio-fsmrf module for controlling freeswitch).</div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">For more details or help, feel free to email me directly or open issues on any of those projects.</div></div><div style="word-wrap:break-word" class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg">On Mar 18, 2017, at 6:03 AM, Kamil Nigmatullin &lt;<a href="mailto:kamil.nigmatullin@gmail.com" class="m_572242296312295255gmail_msg" target="_blank">kamil.nigmatullin@gmail.com</a>&gt; wrote:</div><br class="m_572242296312295255m_-2749592596467677745Apple-interchange-newline m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg">Maybe it is a silly question, but cannot find anything. I have the opensips that handles auth and all routing, and freeswitch is responsible for handling media, prepaid and so on.<br clear="all" class="m_572242296312295255gmail_msg"><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">Now, I want to implement browser clinent based on sip.js and therefore i pass all sip signalling through opensips&#39;s implementetion for websockets. For outgoing invites from browser clients this works. <br class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg">But for calls that are directed to browser clients it doesn&#39;t. I beleive that this is due to simlpe sip call does not have ice-candidates. So, the question is how to make freeswitch convert simple sip call to web-rtc oritenteated. I didn&#39;t implement mod_verto. <br class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg">Thanks in advance<br class="m_572242296312295255gmail_msg"></div><div class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg">-- <br class="m_572242296312295255gmail_msg"><div class="m_572242296312295255m_-2749592596467677745gmail_signature m_572242296312295255gmail_msg" data-smartmail="gmail_signature"><div class="m_572242296312295255gmail_msg">Kamil Nigmatullin<br class="m_572242296312295255gmail_msg">Skype: kamil.nigmatullin</div></div>
</div></div>
______________________________<wbr>______________________________<wbr>_____________<br class="m_572242296312295255gmail_msg">Professional FreeSWITCH Consulting Services: <br class="m_572242296312295255gmail_msg"><a href="mailto:consulting@freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="m_572242296312295255gmail_msg"><a href="http://www.freeswitchsolutions.com" class="m_572242296312295255gmail_msg" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg">Official FreeSWITCH Sites<br class="m_572242296312295255gmail_msg"><a href="http://www.freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="m_572242296312295255gmail_msg"><a href="http://confluence.freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">http://confluence.freeswitch.<wbr>org</a><br class="m_572242296312295255gmail_msg"><a href="http://www.cluecon.com" class="m_572242296312295255gmail_msg" target="_blank">http://www.cluecon.com</a><br class="m_572242296312295255gmail_msg"><br class="m_572242296312295255gmail_msg">FreeSWITCH-users mailing list<br class="m_572242296312295255gmail_msg"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br class="m_572242296312295255gmail_msg"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="m_572242296312295255gmail_msg" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br class="m_572242296312295255gmail_msg">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" class="m_572242296312295255gmail_msg" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br class="m_572242296312295255gmail_msg"><a href="http://www.freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">http://www.freeswitch.org</a></div></div><br class="m_572242296312295255gmail_msg"></div></div></div>______________________________<wbr>______________________________<wbr>_____________<br class="m_572242296312295255gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="m_572242296312295255gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="m_572242296312295255gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br class="m_572242296312295255gmail_msg">
<br class="m_572242296312295255gmail_msg">
Official FreeSWITCH Sites<br class="m_572242296312295255gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="m_572242296312295255gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://confluence.freeswitch.<wbr>org</a><br class="m_572242296312295255gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://www.cluecon.com</a><br class="m_572242296312295255gmail_msg">
<br class="m_572242296312295255gmail_msg">
FreeSWITCH-users mailing list<br class="m_572242296312295255gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="m_572242296312295255gmail_msg" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br class="m_572242296312295255gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br class="m_572242296312295255gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br class="m_572242296312295255gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="m_572242296312295255gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>