<div dir="ltr">Thanks, I did see this. But not what i'm looking for. I still want to be able to send commands to the backend. In my case I want to broadcast a specific event to a specific channel.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 1, 2016 at 1:46 PM, Ítalo Rossi <span dir="ltr"><<a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://evoluxbr.github.io/verto-docs/tut/holding-a-call.html" rel="noreferrer" target="_blank">http://evoluxbr.github.io/verto-docs/tut/holding-a-call.html</a><br>
<br>
<br>
> On 1 de jun de 2016, at 13:09, stevem <<a href="mailto:stevem@singlecomm.com">stevem@singlecomm.com</a>> wrote:<br>
><br>
> I was not able to find any documentation on this. Basically all I want to do<br>
> from my frontend. Is post an event to the backend. Basically run the<br>
> command: uuid_broadcast 69d58330-7f7f-4e52-bb2c-9e25d9f5238b<br>
> event::Event-Name=HOLD.<br>
><br>
> I'm using FreeSWITCH Version 1.4.21~64bit<br>
><br>
> I got the verto/webrtc working using the demo located here:<br>
> <a href="https://webrtc.freeswitch.org/verto/index.html#page-main" rel="noreferrer" target="_blank">https://webrtc.freeswitch.org/verto/index.html#page-main</a><br>
><br>
> I'm able to connect to the dialplan and drop the caller (PSTN/ITSPs) and<br>
> verto client into a conference and the audio is flowing. I just want to send<br>
> a message to the backend to tell it to do things. In my example above I want<br>
> to set the caller on hold.<br>
><br>
> My verto connection in javascript looks like this:<br>
><br>
> $.verto.init({}, bootstrap);<br>
><br>
> function bootstrap(status) {<br>
> that.vertoHandle = new jQuery.verto({<br>
> login: userId + '@' + host,<br>
> passwd: password,<br>
> tag: "vertoAudio",<br>
> socketUrl: 'wss://' + host + ':8082',<br>
> audioParams: {<br>
> googAutoGainControl: false,<br>
> googNoiseSuppression: false,<br>
> googHighpassFilter: false<br>
> },<br>
> iceServers: true<br>
> }, vertoCallbacks);<br>
> }<br>
><br>
> var vertoCallbacks = {<br>
> onWSLogin: onWSLogin,<br>
> onWSClose: onWSClose,<br>
> onDialogState: onDialogState<br>
> };<br>
><br>
><br>
> On successful login i make a call:<br>
><br>
> that.call= that.vertoHandle.newCall({<br>
> destination_number: that.liveCall.ani,<br>
> caller_id_name: user.firstName + ' ' + user.lastName,<br>
> caller_id_number: userId,<br>
> useVideo: false,<br>
> useStereo: false,<br>
> userVariables: {}<br>
> });<br>
><br>
><br>
> Thanks alot. This is my first post and I've only been doing Freeswitch for a<br>
> few months. I have alot of experience in Asterisk though. Let me know if<br>
> more data is needed.<br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Webrtc-Verto-jsapi-tp7596220.html" rel="noreferrer" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Webrtc-Verto-jsapi-tp7596220.html</a><br>
> Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
><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>
<br>
Ítalo Rossi<br>
<a href="mailto:italo@freeswitch.org">italo@freeswitch.org</a><br>
<br>
<br>
<br>
<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></blockquote></div><br></div>