[Freeswitch-users] Verto js: how to create custom near-realtime listener to conference events
Chad Phillips
chad at apartmentlines.com
Tue Mar 29 18:24:54 MSD 2016
Hey Bote,
Thanks for adding that doc. I'm thinking maybe
https://freeswitch.org/confluence/display/FREESWITCH/mod_verto#mod_verto-Examples
would be a more appropriate spot for it?
Chad
On Mon, Mar 28, 2016 at 3:37 PM, Bote Man <bote_radio at botecomm.com> wrote:
> I have added your template code to the wiki as an example. You can review
> it at
>
>
> https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Outbound#EventSocketOutbound-VertoLiveArray
>
>
>
> Thanks.
>
>
>
>
>
> ---
>
> Bote
>
> FreeSWITCH Docs Janitor
>
> http://freeswitch.org/confluence
>
>
>
>
>
>
>
>
>
> *From:* David Wafula
> *Sent:* Monday, 28 March, 2016 12:02
> *Subject:* Re: [Freeswitch-users] Verto js: how to create custom
> near-realtime listener to conference events
>
>
>
> Thank you, Chad.
>
> $.verto.liveArray() just got me what i was looking for:
>
>
>
> ....
>
> var la = new $.verto.liveArray(verto, data.pvtData.laChannel,
> data.pvtData.laName,
>
> {subParams: {callID: dialog ?
> dialog.callID : null}, "onChange": function (obj, args) {
>
>
>
> }});
>
> la.onChange = function (obj, args) {
>
> console.error("The change", args);
>
> };
>
> ....
>
> Now i have raw events coming through ..just what i needed.
>
>
>
> Regards,
>
>
>
> On Mon, Mar 28, 2016 at 4:45 PM, Chad Phillips <chad at apartmentlines.com>
> wrote:
>
> David,
>
>
>
> You need to leverage $.verto.liveArray() from the verto lib on the client
> side, and make sure your conference has the correct livearray flags set in
> conference.conf.xml (see round about
> https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-ConferenceProfileParameters
> for those).
>
>
>
> Guessing this still isn't that well documented. Start there and work your
> way around, and I think you'll eventually get it figured out. :)
>
>
>
> Chad
>
>
>
> On Mon, Mar 28, 2016 at 7:10 AM, David Wafula <davidwaf at gmail.com> wrote:
>
> Hi all,
>
> What would be the simplest way to listen to conference events in own
> custom js when using verto? The closest i could see was in the demo, a
> table updates in near-realtime with conference events, and unless am
> mistaken, the listening mechanism is embbeded within verto-min.js and
> couldn't find any documentation on how to customize this to own display
> needs.
>
>
>
>
>
> Regards
>
>
>
> --
>
>
>
> David W
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160329/ea0f5b6d/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list