[Home]

Summary:ASTERISK-03380: [patch] manager actions 'dbget' and 'dbput'
Reporter:k3v (k3v)Labels:
Date Opened:2005-01-29 15:02:01.000-0600Date Closed:2008-01-15 15:23:40.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) db-manager-goodies.patch.txt
Description:While it's true one can use Action: command to manipulate the astdb, the results (at least of dbget) are difficult to parse. The DBGet action triggers a standard Event: syntax responses for ease and consistency.  The DBPut action simply returns a response.

Action: DBGet
Family: EXT
Key: 100

Response: Success
Message: Result will follow

Event: DBGetResponse
Family: EXT
Key: 100
Val: SIP/100

Action: DBPut
Family: EXT
Key: 100
Val: SIP/100

Response: Success
Message: Updated database successfully

****** ADDITIONAL INFORMATION ******

Disclaimer on file.
Comments:By: Brian West (bkw918) 2005-01-29 16:20:04.000-0600

This is not needed at all since you can do this via the manager already.

bkw

By: k3v (k3v) 2005-01-29 17:10:36.000-0600

the problem is the output:

Action: command
Command: database get EXT 100

Response: Follows
Value: SIP/100
--END COMMAND--

I understand your point, however if I am calling a bunch of dbgets, can I ensure which value is which?  My other option was to change manager.c to dispense Family: and Key: lines as well.

By: Mark Spencer (markster) 2005-01-29 17:32:06.000-0600

Added to CVS with minor mods.  Thanks!  bkw:  It is convenient to have it more easily accessible via manager interface.

By: Russell Bryant (russell) 2005-01-29 19:34:01.000-0600

not in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:23:40.000-0600

Repository: asterisk
Revision: 4922

U   trunk/db.c

------------------------------------------------------------------------
r4922 | markster | 2008-01-15 15:23:39 -0600 (Tue, 15 Jan 2008) | 2 lines

Add DBGet/DBPut (bug ASTERISK-3380)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4922