[Freeswitch-users] Esl rubymod get variable

Seven Du dujinfang at gmail.com
Sun Aug 29 18:50:34 PDT 2010


@con.api("uuid_getvar", "#@uuid} variable_ivrflag")

On Mon, Aug 30, 2010 at 8:57 AM, Nigel Kent <ktngl at yahoo.co.uk> wrote:

> I tried a few things as suggested but I am not getting any where
>
> val = @con.execute("uuid_getvar", "#{@uuid} ivrflag")
> or
> val = @con.execute("get", "ivrflag")
> does not get returned with the value of  ivrflag.
>
> What is the correct way to retrieve channel variable data?
>
> --- On *Sun, 29/8/10, Mathieu Rene <mrene_lists at avgs.ca>* wrote:
>
>
> From: Mathieu Rene <mrene_lists at avgs.ca>
>
> Subject: Re: [Freeswitch-users] Esl rubymod get variable
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Date: Sunday, 29 August, 2010, 17:31
>
>
> uuid_getvar
> http://wiki.freeswitch.org/wiki/Mod_commands#uuid_getvar
>
> Mathieu Rene
> Avant-Garde Solutions Inc
> Office: + 1 (514) 664-1044 x100
> Cell: +1 (514) 664-1044 x200
> mrene at avgs.ca <http://mc/compose?to=mrene@avgs.ca>
>
>
>
>
> On 2010-08-29, at 12:38 PM, Nigel Kent wrote:
>
> Thanks for that tip.
>
> I want to find out as well how to retrieve the  value with the opposite of
> the 'set' command which is how the value was added in the first place.
>
> Is a get command not available ?.
>
>
>
> --- On *Sun, 29/8/10, Seven Du <dujinfang at gmail.com<http://mc/compose?to=dujinfang@gmail.com>
> >* wrote:
>
>
> From: Seven Du <dujinfang at gmail.com<http://mc/compose?to=dujinfang@gmail.com>
> >
> Subject: Re: [Freeswitch-users] Esl rubymod get variable
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org<http://mc/compose?to=freeswitch-users@lists.freeswitch.org>
> >
> Date: Sunday, 29 August, 2010, 16:18
>
> you either can wait for a new event coming, or use the uuid_dump API to get
> everything.
>
> @con.execute("uuid_dump", uuid).getBody
>
> On Sun, Aug 29, 2010 at 9:40 PM, Nigel Kent <ktngl at yahoo.co.uk> wrote:
>
> 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.serialize
> end
>
>
> On Sun, Aug 29, 2010 at 8:36 PM, Nigel Kent <ktngl at yahoo.co.uk<http://mc/compose?to=ktngl@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://mc/compose?to=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
>
>
>
>
> --
> 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://mc/compose?to=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 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
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=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
>
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=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 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100830/f07e3b49/attachment-0001.html 


More information about the FreeSWITCH-users mailing list