asterisk/funcs
Tilghman Lesher 52dbebad8e Add DB_KEYS.
Discussion on #asterisk on 2011-01-19:
(02:07:03 PM) boch: i wonder how to cycle all entries in a tree
(02:07:11 PM) leifmadsen: use While()
(02:07:17 PM) leifmadsen: you need to know the tree structure already though
(02:07:36 PM) boch: what you mean?
(02:09:02 PM) leifmadsen: you need to know the structure prior to looping, because you can't just return the structure from the dialplan
(02:09:43 PM) leifmadsen: the only way I can think of doing that is via something like writing the output of:  asterisk -rx "database show" to a file, then looping through that to know the structure of the database and check everything
(02:09:59 PM) leifmadsen: but at that point you're better off just using either a relational database or an external script
(02:10:13 PM) boch: for example i need to know all entries in the tree
(02:10:15 PM) boch: got it
(02:10:20 PM) leifmadsen: exactly
(02:10:22 PM) leifmadsen: that's the problem
(02:10:22 PM) boch: thank you
(02:13:09 PM) mateu: yeah, i'm surprised there isn't something from the dialplan like 'database show family' so one can get all keys in a family to loop over.
(02:15:35 PM) leifmadsen: database shows everything
(02:16:22 PM) mateu: i mean something from the dial plan that mimics 'database show <family>'
(02:16:41 PM) leifmadsen: guess no one has found that important enough to program :)
(02:16:52 PM) leifmadsen: at that point you should probably just use a relational database...
(02:17:10 PM) mateu: i dunno
(02:17:16 PM) mateu: seems pretty basic to me.
(02:17:16 PM) leifmadsen: me either
(02:17:19 PM) leifmadsen: sure does
(02:17:24 PM) leifmadsen: no one has programmed it though
(02:17:28 PM) ***leifmadsen shrugs
(02:17:43 PM) mateu: ok, well at least we know how it currently stands.  thanks leifmadsen
(02:28:52 PM) Corydon76-home: leifmadsen: something like HASHKEYS() ?
(02:30:11 PM) leifmadsen: Corydon76-home: ummm, I was thinking more like DUNDI_QUERY() and DUNDI_RESULT()
(02:30:31 PM) leifmadsen: although HASHKEYS() might work
(02:30:58 PM) leifmadsen: actually ya, looking at it, similar to HASHKEYS()
(02:31:01 PM) leifmadsen: DBKEYS() I guess?
(02:31:45 PM) Corydon76-home: So with no argument, retrieves families, with an argument, retrieves keys of that family?
(02:34:02 PM) leifmadsen: ya
(02:34:16 PM) leifmadsen: how would you iterate through layers of them?
(02:34:30 PM) leifmadsen: i.e. family/key/key/key ?
(02:34:43 PM) Corydon76-home: Essentially, yes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@303198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-01-21 08:13:18 +00:00
..
Makefile Merged revisions 207647 via svnmerge from 2009-07-21 13:28:04 +00:00
func_aes.c Add relationships to function documentation. 2011-01-14 20:07:02 +00:00
func_audiohookinherit.c Merged revisions 229669 via svnmerge from 2009-11-12 16:44:39 +00:00
func_base64.c Add relationships to function documentation. 2011-01-14 20:07:02 +00:00
func_blacklist.c ast_callerid restructuring 2010-07-14 15:48:36 +00:00
func_callcompletion.c Add small documentation update to func_callcompletion.c. 2010-04-21 19:07:25 +00:00
func_callerid.c Expand the caller ANI field to an ast_party_id 2010-07-14 16:58:03 +00:00
func_cdr.c Add High Resolution Times to CDRs for Asterisk 2010-06-08 23:48:17 +00:00
func_channel.c Merged revisions 286189 via svnmerge from 2010-09-10 22:15:47 +00:00
func_config.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
func_curl.c Oops, missed the actual decoding part. 2011-01-07 18:23:52 +00:00
func_cut.c AST-2009-005 2009-08-10 19:20:57 +00:00
func_db.c Add DB_KEYS. 2011-01-21 08:13:18 +00:00
func_devstate.c Add load priority order, such that preload becomes unnecessary in most cases 2010-07-20 19:35:02 +00:00
func_dialgroup.c Merged revisions 298478 via svnmerge from 2010-12-16 08:56:59 +00:00
func_dialplan.c ast_callerid restructuring 2010-07-14 15:48:36 +00:00
func_enum.c AST-2009-005 2009-08-10 19:20:57 +00:00
func_env.c Merged revisions 289543,289581 via svnmerge from 2010-09-30 20:40:08 +00:00
func_extstate.c Merge str_substitution branch. 2009-04-29 18:53:01 +00:00
func_frame_trace.c Merged revisions 287647 via svnmerge from 2010-09-20 22:16:37 +00:00
func_global.c Convert the ast_channel data structure over to the astobj2 framework. 2009-04-24 14:04:26 +00:00
func_groupcount.c Add support for GROUP_MATCH_COUNT regex matching on category 2010-02-17 19:51:53 +00:00
func_iconv.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
func_lock.c Fix a build error on FreeBSD. 2009-12-01 23:38:34 +00:00
func_logic.c Merge str_substitution branch. 2009-04-29 18:53:01 +00:00
func_math.c Kill some startup warnings and errors and make some messages more helpful in tracking down the source. 2010-07-09 17:00:22 +00:00
func_md5.c Merge str_substitution branch. 2009-04-29 18:53:01 +00:00
func_module.c Merge str_substitution branch. 2009-04-29 18:53:01 +00:00
func_odbc.c Merged revisions 283350 via svnmerge from 2010-08-24 12:51:46 +00:00
func_pitchshift.c Change needed to make Mac OS X 10.6 happy 2010-03-08 05:12:55 +00:00
func_rand.c AST-2009-005 2009-08-10 19:20:57 +00:00
func_realtime.c Merged revisions 206807 via svnmerge from 2009-07-16 16:51:05 +00:00
func_sha1.c Merge str_substitution branch. 2009-04-29 18:53:01 +00:00
func_shell.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
func_speex.c Adding some clarifications to func_speex doxygen docs. 2009-11-03 16:56:48 +00:00
func_sprintf.c AST-2009-005 2009-08-10 19:20:57 +00:00
func_srv.c Commit compromise I suggested on review 608. 2010-04-19 18:42:31 +00:00
func_strings.c Merged revisions 293159 via svnmerge from 2010-10-28 16:11:53 +00:00
func_sysinfo.c Move function SYSINFO documentation to XML. 2009-06-06 21:56:58 +00:00
func_timeout.c AST-2009-005 2009-08-10 19:20:57 +00:00
func_uri.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
func_version.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
func_vmcount.c More 'static' qualifiers on module global variables. 2009-06-15 17:34:30 +00:00
func_volume.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00