O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required