[Freeswitch-users] Verto js: how to create custom near-realtime listener to conference events

Bote Man bote_radio at botecomm.com
Tue Mar 29 18:41:22 MSD 2016


I dithered over where to put it, but through the magic of the “excerpt include” macro in Confluence it now appears in both places by reference.

 

Thanks.

 

Bote

 

 

From: Chad Phillips
Sent: Tuesday, 29 March, 2016 10:25
Subject: Re: [Freeswitch-users] Verto js: how to create custom near-realtime listener to conference events

 

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

 





 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160329/abc4add1/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list