Database Get

Since 0.4.0 AGI Commands Found this useful? Upvote it. ×

Gets database value

Last reviewed 2026-04-14

database get family key
Description

Retrieves an entry in the Asterisk database for a given family and key.

Returns 0 if key is not set. Returns 1 if key is set and returns the variable in parenthesis.

Example return code: 200 result=1 (testvariable)

Arguments
  • family required
  • key required

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.