[asterisk-dev] Question about code for manager DBGet

Tony Mountifield tony at softins.clara.co.uk
Fri Oct 10 09:24:49 CDT 2008

The manager Getvar command to read a channel variable returns the value
of the variable as part of the response:

Response: Success
Variable: varname
Value: varvalue

This is good and allows the answer to be gathered as part of processing
the command response.

However, the DBGet command for reading the asterisk database doesn't do
this. Instead it returns "Response: Result will follow" and then a
separate event DBGetResponse with the actual results. This means that
it is necessary to wait for a separate event in order to gain the
answer desired.

Can anyone explain the reason DBGet works in this way, rather than just
returning a simple response like this:

Response: Success
Family: xxx
Key: yyy
Val: zzz

Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org

More information about the asterisk-dev mailing list