<div dir="ltr">Here is jthe simple example taht includes sip.js just to dial in to FS:<div><br></div><div><div><html></div><div><style></div><div>video {</div><div> border: 1px solid lightgrey;</div><div>}</div><div></style></div><div><body></div><div><br></div><div><video id="localVideo" muted="muted"></video></div><div><video id="remoteVideo"></video></div><div><br></div><div><!--button id="startCall">Start Call</button--></div><div><button id="endCall">End Call</button></div><div><br></div><div><script src="sip-0.7.5.min.js"></script> //download this sip.js version and place it in same dir as this html file or include from public link</div><div><br></div><div><script id="e"></div><div>//var my_session;</div><div><br></div><div>var startButton = document.getElementById('startCall');</div><div><br></div><div>var my_session = document.addEventListener('DOMContentLoaded', function() {</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>my_session = userAgent.invite('<a href="mailto:sip%3Adial_string@your.dns.name">sip:dial_string@your.dns.name</a>', options);</div><div>}, false);</div><div><br></div><div>var endButton = document.getElementById('endCall');</div><div><br></div><div>endButton.addEventListener("click", function () {</div><div> my_session.bye();</div><div>}, false);</div><div><br></div><div>var options = {</div><div> media: {</div><div> constraints: {</div><div> audio: true,</div><div> video: true</div><div> },</div><div> render: {</div><div> local: document.getElementById('localVideo'),</div><div> remote: document.getElementById('remoteVideo')</div><div> }</div><div> }</div><div>};</div><div><br></div><div>var userAgent = new <a href="http://SIP.UA">SIP.UA</a>({</div><div> traceSip: true,</div><div> uri: '<a href="mailto:dial_string@your.dns.name">dial_string@your.dns.name</a>',</div><div> wsServers: ['wss://your.dns.name:port'], //wss port of verto or sofia</div><div> authorizationUser: 'directory_user',</div><div> password: 'pass',</div><div> hackIpInContact: true,</div><div> hackWssInTransport: true,</div><div> stunServers: ["<a href="http://stun.l.google.com:19302">stun.l.google.com:19302</a>","<a href="http://stun1.l.google.com:19302">stun1.l.google.com:19302</a>","<a href="http://stun2.l.google.com:19302">stun2.l.google.com:19302</a>","<a href="http://stun3.l.google.com:19302">stun3.l.google.com:19302</a>","<a href="http://stun4.l.google.com:19302">stun4.l.google.com:19302</a>"] </div><div>});</div><div><br></div><div><br></div><div></script></div><div><br></div><div></body></div><div></html></div></div><div><br></div><div><br></div><div>so just google for sip-0.7.5.min.js download it or replace it with public link. </div><div>Make sure to replace all dial_string, pass, your.dns.name:port values that are for your server.</div><div>If you have proper certificates, for wss to be shaked on :) it will work, i suggest letsencrypt</div><div><br></div><div>Good luck :)</div><div>Mirko</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 20, 2016 at 1:47 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@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">A lot of it is covered in <a href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>Debian+8+Jessie</a> though it goes a lot further and gives you a working video conference over webrtc.<div><br></div><div>Loot at <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_verto" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_verto</a> as well.</div><div><br></div><div>Also maybe look at <a href="http://sipjs.com/" target="_blank">http://sipjs.com/</a></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 19, 2016 at 6:43 PM, Don Hawkins <span dir="ltr"><<a href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I'm trying to get WebRTC going on our FS server for the first time. FS is not my problem though, WebRTC is.<div><br></div><div>All I need is a one button script that dials into FS, at which point I will put the user in a conference, anyone have any example scripts that already do this?</div><div><br></div><div>I've looked at all the free libraries and unfortunately java is not my thing so I've had no success.</div><div><br></div><div>Thanks!<div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="color:rgb(102,102,102)"><span><a value="+12146991224"></a></span></span></div></div></div></div></div></div>
</div></div>
<br></div></div>______________________________<wbr>______________________________<wbr>_____________<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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.<wbr>freeswitch.org</a> ☎ <a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a> </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?<wbr>v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?<wbr>v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div>
</font></span></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><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Regards,<div>Mirko</div><div><p style="font-size:14px;line-height:24.5px;margin:0.5em 0px;padding:0px;color:rgb(0,0,0);font-family:"Open Sans",sans-serif;text-align:center">¯\_(ツ)_/¯</p></div><div><br></div></div></div></div></div></div></div>
</div>