Skip to content

DB_EXISTS()

Synopsis

Check to see if a key exists in the Asterisk database.

Description

This function will check to see if a key exists in the Asterisk database. If it exists, the function will return '1'. If not, it will return '0'. Checking for existence of a database key will also set the variable DB_RESULT to the key's value if it exists.

Syntax

DB_EXISTS(family/key)
Arguments
  • family

  • key

See Also

Generated Version

This documentation was generated from Asterisk branch 21 using version GIT