[Freeswitch-users] Esl rubymod get variable

Nigel Kent ktngl at yahoo.co.uk
Sun Aug 29 06:40:06 PDT 2010


That is when an event occurs. I am wanting to get current  value of a custom set variable (like application get)

example custom variable ivrflag is set to 0 

@con.execute("set", "ivrflag=0") 
Then later on  it may be set to 1. 

Now I want to check the current state. What would be the syntax to get the current value of ivrflag



--- On Sun, 29/8/10, Seven Du <dujinfang at gmail.com> wrote:

From: Seven Du <dujinfang at gmail.com>
Subject: Re: [Freeswitch-users] Esl rubymod get variable
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Date: Sunday, 29 August, 2010, 12:57

while e = conn.recvEvent            name = e.getHeader("Event-Name")        var = e.getHeader("variable_blah")        puts e.serializeend


On Sun, Aug 29, 2010 at 8:36 PM, Nigel Kent <ktngl at yahoo.co.uk> wrote:

How can the value of a variable be retrieved in esl ruby





      
_______________________________________________

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





-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn


-----Inline Attachment Follows-----

_______________________________________________
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/20100829/2796750f/attachment.html 


More information about the FreeSWITCH-users mailing list