Skip to content

StoreDTMF()

Synopsis

Stores DTMF digits transmitted or received on a channel.

Description

The StoreDTMF function can be used to obtain digits sent in the 'TX' or 'RX' direction of any channel.

The arguments are:

var_name: Name of variable to which to append digits.

max_digits: The maximum number of digits to store in the variable. Defaults to 0 (no maximum). After reading maximum digits, no more digits will be stored.

Example: Store digits in CDR variable
same => n,StoreDTMF(TX,CDR(digits))
Example: Store up to 24 digits
same => n,StoreDTMF(RX,testvar,24)
Example: Disable digit collection
same => n,StoreDTMF(remove)

Syntax

StoreDTMF(direction)
Arguments
  • direction - Must be 'TX' or 'RX' to store digits, or 'remove' to disable.

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT