Name

DBget() — Retrieves a key from the AstDB

Synopsis

    DBget(varname=family/key)

Retrieves a key value from the Asterisk database and stores it in the variable specified by varname. If the requested key is not found, control jumps to priority n+101 (where n is the current priority), if it exists.

Always returns 0.

    ; put an entry in the AstDB
    exten => 123,1,DBput(test/color=blue)
    ; now retrieve it and assign it to a variable
    exten => 123,2,DBget(COLOR=test/color)

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.