Asterisk Manager API Action DBGet

Action: DBGet
Family: <family>
Key: <Key>


Response: Error
Message: Database entry not found


Response: Success
Message: Result will follow

Event: DBGetResponse
Family: <family>
Key: <key>
Val: <value>

Example in Perl (verified in asterisk 1.4.22)
use Asterisk::Manager;
my $astman = new Asterisk::Manager;
$astman->connect || die $astman->error . "\n";

$astman->sendcommand(Action => 'DBGet', Family => '<family>', Key => '<key>');
my @result = $astman->sendcommand(Event => 'DBGetResponse');

my $value = $result[7]; -> Value 7 is the returned Value

Created by: mmetzger, Last modification: Fri 24 of Oct, 2008 (01:31) by gkservice
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+