[Freeswitch-users] hiredis module
William King
william.king at quentustech.com
Tue Jan 19 22:34:01 MSK 2016
I see the confusion. If you have a redis DB installed, you can tell
redis to run a lua script to perform a set of commands. To run that
redis lua script you still need redis api access to the redis DB. Now,
if you are running a lua script in FS, to send api commands to redis
you'd need to use mod_hiredis. So from the FS lua script you can run a
FS api command like:
api = freeswitch.API();
digits = api:execute("hiredis_raw", "get thiskey");
William King
Senior Engineer
Quentus Technologies, INC
1037 NE 65th St Suite 273
Seattle, WA 98115
Main: (877) 211-9337
Office: (206) 388-4772
Cell: (253) 686-5518
william.king at quentustech.com
On 1/19/16 10:56 AM, John Nash wrote:
> Thank you. But in my case (Accessing redis from lua scripts) do i really
> need hiredis module?...Or I can directly use redis from lua as per this
> link? In what situations hiredis will be used (Apart from limit)
> http://redis.io/commands/eval
>
> On Tue, Jan 19, 2016 at 11:20 PM, William King
> <william.king at quentustech.com <mailto:william.king at quentustech.com>> wrote:
>
> If you can add a section to the wiki for how to use the module there is
> a blog post with usage examples here:
> https://quentustech.com/tag/hiredis.html
>
> William King
> Senior Engineer
> Quentus Technologies, INC
> 1037 NE 65th St Suite 273
> Seattle, WA 98115
> Main: (877) 211-9337
> Office: (206) 388-4772
> Cell: (253) 686-5518
> william.king at quentustech.com <mailto:william.king at quentustech.com>
>
> On 1/19/16 8:01 AM, John Nash wrote:
> > I saw this module
> > https://freeswitch.org/confluence/display/FREESWITCH/mod_hiredis
> >
> > I am looking forward to insert some data in REDIS from lua scripts and
> > access it but I could not find any documentation on commands
> available.
> > Above links only show how to configure freeswitch hiredis module.
> >
> > Is there any documentation in progress?
> >
> >
> >
> _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
> >
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list