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
> You can execute global_getvar api call.
Thanks ... I've updated the wiki.
-- John
-
| Feith Systems | Voice: 1-215-646-8000 | Email: j...@feith.com |
|John Wehle| Fax: 1-215-540-5495 |
You can execute global_getvar api call.
/b
On Jun 26, 2009, at 4:33 PM, John Wehle 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.
_
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 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
>
John,
Also can you go over the few jira's you have left and see if we can
resolve/knock out some of them.. I'm wanting to roll pre9 this weekend.
Thanks,
Brian
On Jun 26, 2009, at 5:13 PM, John Wehle wrote:
>> You can execute global_getvar api call.
>
> Thanks ... I've updated the wiki