<div dir="ltr">Hey Gregor,<div><br></div><div>Can you double check if you're using the most recent version of verto js lib?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 21, 2016 at 4:49 AM, Gregor Nanger <span dir="ltr"><<a href="mailto:gregor@infomedia.si" target="_blank">gregor@infomedia.si</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"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I am building my web phone with verto from scratch and using this tutorial:</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><a href="http://evoluxbr.github.io/verto-docs/" target="_blank">http://evoluxbr.github.io/verto-docs/</a></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">BAsically everything is ok, I can register and make calls, but I cannot hear audio. Mic is working, but not speakers. I see error:</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Cannot read property 'sinkId' of undefined. This is error line:</div><div class="gmail_default"><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">$.verto.dialog.prototype.setAudioPlaybackDevice = function(sinkId, callback, arg) {</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><span style="white-space:pre-wrap">        </span>var dialog = this;</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><span style="white-space:pre-wrap">        </span>var element = dialog.audioStream;</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><b><span style="white-space:pre-wrap">        </span>if (typeof element.sinkId !== 'undefined') {</b></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><b><br></b></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">I get dialog object without audioStream property and hence element is null.</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">I am using self signed certificate. Could this be cause?</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">Best regards, Gregor</font></div></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"></div><img src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&pi=49bfd464-38dc-4f0b-aef2-878c95c4e5fe" style="display:none!important" height="1" width="1"></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" rel="noreferrer" target="_blank">http://www.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.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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/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"><div dir="ltr">Ítalo Rossi<div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div></div></div>
</div>