[Freeswitch-users] Enumerate variables in a session

Michael Collins msc at freeswitch.org
Thu Jun 9 20:37:41 MSD 2011


You can also create an API object and issue a uuid_dump <uuid> command and
parse the results.
-MC

On Thu, Jun 9, 2011 at 7:20 AM, Steven Ayre <steveayre at gmail.com> wrote:

> 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
>>
>
>
> _______________________________________________
> 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/2306520b/attachment.html 


More information about the FreeSWITCH-users mailing list