[Freeswitch-users] Enumerate variables in a session

Steven Ayre steveayre at gmail.com
Thu Jun 9 18:20:03 MSD 2011


Actually Christian, it is since you have a session object in javascript and
have to access the variables via the Session api.

The simple answer is not directly AFAIK, although I think there is an
undocumented Session.getXMLCDR() function. The XML CDR contains all
variables on the session, so if you parse that XML I think you'll get the
full list.

-Steve


On 9 June 2011 15:03, Christian Benke <benkokakao at gmail.com> wrote:

> On 8 June 2011 20:18, Yungwei Chen <yungwei at resolvity.com> wrote:
> > Hi,
> >
> > I'm wondering if there's way to enumerate the list of variable names in a
> session in javascript. Thanks.
>
> This is not a FreeSWITCH specific question - a javascript-focused
> community or a more general programming website like stackoverflow.com
> would be suited better.
>
> Best regards,
> Christian
>
> _______________________________________________
> 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/20110609/a80152b1/attachment-0001.html 


More information about the FreeSWITCH-users mailing list