Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • hostname: DNS hostname or IP address of the server (default: localhost)

  • port: TCP port where Redis server is listening (default: 6379)

  • password: if set, the AUTH command is sent to the server (default: no authentication)
  • timeout_ms: timeout waiting for the server connection, in milliseconds (default: 500)

 

 

 

...

  • max-connections: the module keeps a pool of simultaneously open connections, and this sets their limit (default: 3)

Profile parameters:

  • ignore-connect-fail: if set to true, a socket connection error is ignored and the call processing continues; otherwise the call is set to error status (default: false)
  • ignore_error: if set to true, Redis command execution error is ignored, and the call processing continues; otherwise the call is set to error status (default: false)

After configuring the module. apply the changes in fs_cli:

Code Block
 reloadxml
 reload mod_hiredis

Usage

Limit interface

Code Block
<action application="limit" data="hiredis realm id 10 limit_exceeded" />

See also: Limit.

Dialplan application

In both the dialplan application and the API function, the Redis command is preceded with the profile name. See also: Redis command reference.

Code Block
<action application="hiredis_raw" data="default LPUSH Callers ${effective_caller_id_number}" />

 

API function

Code Block
hiredis_raw default set test 01
hiredis_raw default get test

 

Channel variables

hiredis_raw_response is set after the Redis command execution.