Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add code block

...

The limit dialplan apps are implemented by mod_dptools.

limit

Code Block
limit <backend> <realm> <resource> <max[/interval]> [<transfer_destination_number> [<dialplan> [<context>]]

backend

The backend to use.

realm

Arbitrary name

...

limit_execute <backend> <realm> <resource> <max[/interval]> <application> [application arguments]

backend

The backend to use.

realm

Arbitrary name

...

The limit APIs are implemented by mod_commands. You can also use them via the dialplan like so:

Code Block
languagexml
themeEmacs
<action application="set" data="api_result=${limit_usage(<backend> <realm> <id></pre>)}"/>

...

mod_hiredis provides a redis backend for limit.

Which Backend Do I Use?

BackendSpeedPersistenceCluster-abilityInterval Support
Hashfastestnosee hash_remoteyes
DBslowyespossibleno
Hiredisfastyes, configurableyesyes

Examples

Limit Access To an Application

...