Olivier
2009-May-19 20:47 UTC
[asterisk-users] Feature request: "database show" from manager API
Hi, In ASTDB, I've got a rather long list of entries like: /FamilyA/Key1 Value1 /FamilyA/Key2 Value2 /FamilyA/Key3 Value3 ... Instead of sending several DBGet queries (and parsing every response), I'm wondering if a single "database show" or "database show family" query could be implemented. Alternative if to use ssh ("asterisk -rx "database show FamilyA") but I'm not certain it can be easily in every language supportinq AMI. Any hint ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090519/265afc67/attachment-0001.htm
Olivier
2009-May-19 21:05 UTC
[asterisk-users] Feature request: "database show" from manager API
2009/5/19 Olivier <oza-4h07 at myamail.com>> Hi, > > In ASTDB, I've got a rather long list of entries like: > /FamilyA/Key1 Value1 > /FamilyA/Key2 Value2 > /FamilyA/Key3 Value3 > ... > > Instead of sending several DBGet queries (and parsing every response), I'm > wondering if a single "database show" or "database show family" query could > be implemented. > Alternative if to use ssh ("asterisk -rx "database show FamilyA") but I'm > not certain it can be easily in every language supportinq AMI. > > Any hint ? > > RegardsPS: On advantage of asterisk -rx "database show FamilyA" over DBGet is you don't need to know which key is present and which is not. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090519/a113a9b0/attachment.htm
Gordon Henderson
2009-May-20 07:55 UTC
[asterisk-users] Feature request: "database show" from manager API
On Tue, 19 May 2009, Olivier wrote:> Hi, > > In ASTDB, I've got a rather long list of entries like: > /FamilyA/Key1 Value1 > /FamilyA/Key2 Value2 > /FamilyA/Key3 Value3 > ... > > Instead of sending several DBGet queries (and parsing every response), I'm > wondering if a single "database show" or "database show family" query could > be implemented.You can send a Command: via the manager API and parse the return.. So send it a Action: Command Command: database show FamilyA and just suck up and parse the results... Gordon
Maybe Matching Threads
- reading in a (very simple) list from a file
- Feature request: "database show" from manager API [SOLVED]
- reading multiple key=value pairs per line
- [PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
- [PATCH: server 0/3] Add host-register.rb (replaces host-browser.rb in part)