DBget( )

DBget( ) Retrieves a key from the AstDB

 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 .

 ; 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)  

See Also

DBdel( ) , DBdeltree( ) , DBput( )

Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net