[Freeswitch-users] Accessing a global variable from lua

Michael Collins msc at freeswitch.org
Fri Jun 26 14:41:50 PDT 2009


Use the API to execute global_getvar...
http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls

-MC

On Fri, Jun 26, 2009 at 2:33 PM, John Wehle <john at feith.com> wrote:

> How do you get a system variable from within a lua startup script?
> Specifically I want domain_name from vars.xml ... normally I'd use
> session:getVariable, however there is no session in this case.
>
> -- John
> -------------------------------------------------------------------------
> |   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john at feith.com  |
> |    John Wehle    |     Fax: 1-215-540-5495  |                         |
> -------------------------------------------------------------------------
>
>
> _______________________________________________
> 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/20090626/41c75cfa/attachment-0002.html 


More information about the FreeSWITCH-users mailing list