Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Accessing a global variable from lua


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
john at feith.com
Guest





PostPosted: Fri Jun 26, 2009 4:35 pm    Post subject: [Freeswitch-users] Accessing a global variable from lua Reply with quote

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@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 4:38 pm    Post subject: [Freeswitch-users] Accessing a global variable from lua Reply with quote

You can execute global_getvar api call.

/b

On Jun 26, 2009, at 4:33 PM, John Wehle wrote:

Quote:
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.


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 4:43 pm    Post subject: [Freeswitch-users] Accessing a global variable from lua Reply with quote

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@feith.com (john@feith.com)> wrote:
Quote:
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@feith.com (john@feith.com)  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 5:32 pm    Post subject: [Freeswitch-users] Accessing a global variable from lua Reply with quote

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:

Quote:
Quote:
You can execute global_getvar api call.

Thanks ... I've updated the wiki.

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email:
john@feith.com |
| John Wehle | Fax: 1-215-540-5495
| |
-------------------------------------------------------------------------


_______________________________________________
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


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services