Verto js: how to create custom near-realtime listener to conference events
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
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_conf... 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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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_conf... 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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- David W
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#E... Thanks. --- Bote FreeSWITCH Docs Janitor <http://freeswitch.org/confluence> 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@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_conf... 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@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
Hey Bote, Thanks for adding that doc. I'm thinking maybe https://freeswitch.org/confluence/display/FREESWITCH/mod_verto#mod_verto-Exa... would be a more appropriate spot for it? Chad On Mon, Mar 28, 2016 at 3:37 PM, Bote Man <bote_radio@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#E...
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@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_conf... 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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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-Exa... would be a more appropriate spot for it? Chad On Mon, Mar 28, 2016 at 3:37 PM, Bote Man <bote_radio@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#E... 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@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_conf... 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@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
participants (3)
-
Bote Man
-
Chad Phillips
-
David Wafula