[Asterisk-code-review] res_hiredis: REDIS DeviceState and Dialplan functions (asterisk[master])

Alec Davis asteriskteam at digium.com
Fri Jul 29 07:25:38 CDT 2022


Attention is currently required from: Sean Bright, Alec Davis, N A.
Hello Sean Bright, Joshua Colp, N A, Friendly Automation, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/asterisk/+/18829

to look at the new patch set (#15).

Change subject: res_hiredis: REDIS DeviceState and Dialplan functions
......................................................................

res_hiredis: REDIS DeviceState and Dialplan functions

Interact with a Redis database using the hiredis library

Minimal Dialplan example below using the demo context:

;read the configured prefix and then use Redis syntax directly
;increment # of calls
 same => 2,1,Set(prefix=${REDIS_PREFIX})
 same => n,NoOp(${REDIS_DIRECT(incr ${prefix}calls)})

;set then read a key value with spaces
 same => n,Set(REDIS(test_sentence)=red green blue)
 same => n,Verbose(test_sentence=${REDIS(test_sentence)})

DeviceState automatically updates the Redis DB
to the following key path [prefix:]deviceState:SIP/cisco1

Tested on production system running asterisk 16.

ASTERISK-30147
Reported By: Alec Davis

Change-Id: Ifdf4d33d2a2a5fd044fac13b201c7437de34ba6a
---
M build_tools/menuselect-deps.in
A configs/samples/hiredis.conf.sample
M configure
M configure.ac
M include/asterisk/autoconfig.h.in
M makeopts.in
M menuselect/autoconfig.h.in
A res/res_hiredis.c
8 files changed, 1,175 insertions(+), 55 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/29/18829/15
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18829
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ifdf4d33d2a2a5fd044fac13b201c7437de34ba6a
Gerrit-Change-Number: 18829
Gerrit-PatchSet: 15
Gerrit-Owner: Alec Davis <alec at bdt.co.nz>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Alec Davis <alec at bdt.co.nz>
Gerrit-Attention: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220729/8623bcc3/attachment-0001.html>


More information about the asterisk-code-review mailing list