asterisk/tests
George Joseph 685f7ef924 func_config: Add ability to retrieve specific occurrence of a variable
I guess nobody uses templates with AST_CONFIG because today if you have a
context that inherits from a template and you call AST_CONFIG on the context,
you'll get the value from the template even if you've overridden it in the
context.  This is because AST_CONFIG only gets the first occurrence which is
always from the template.

This patch adds an optional 'index' parameter to AST_CONFIG which lets you
specify the exact occurrence to retrieve, or '-1' to retrieve the last.
The default behavior is the current behavior.

Tested-by: George Joseph

Review: https://reviewboard.asterisk.org/r/4313/
........

Merged revisions 430315 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2015-01-07 17:54:13 +00:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
test_abstract_jb.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_acl.c Silence a warning message from older versions of GCC. 2012-07-24 19:12:09 +00:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_aoc.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_app.c uniqueid: channel linkedid, ami, ari object creation with id's 2014-03-07 15:47:55 +00:00
test_ari.c ari:Add application/json parameter support 2013-11-27 15:48:39 +00:00
test_ari_model.c Fix module load errors for test_ari_model.so. 2013-09-16 18:36:22 +00:00
test_ast_format_str_reduce.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_astobj2.c test_astobj2: Fix warning for missing trailing slash in category 2014-12-23 23:16:35 +00:00
test_astobj2_thrash.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_bucket.c Fix bucket unit tests 2013-08-25 18:12:42 +00:00
test_callerid.c CallerID: Fix parsing regression 2014-10-10 13:03:18 +00:00
test_cdr.c Make CDR and CEL unit tests less FRACKy. 2014-09-23 14:36:00 +00:00
test_cel.c tests/test_cel: Add test_cel_attended_transfer_bridges_link to racey tests 2014-12-03 20:59:01 +00:00
test_channel_feature_hooks.c test_channel_feature_hooks.c: Fix unit test for DTMF hooks. 2014-11-24 20:39:01 +00:00
test_config.c func_config: Add ability to retrieve specific occurrence of a variable 2015-01-07 17:54:13 +00:00
test_core_codec.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
test_core_format.c Fix build in dev-mode 2014-07-21 17:01:05 +00:00
test_db.c app_queue: Support persisting and loading of long member lists. 2012-10-01 20:36:25 +00:00
test_devicestate.c stasis cache: Enhance to keep track of an item from different entities. 2014-03-07 20:41:13 +00:00
test_dlinklists.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
test_endpoints.c Few more menuselect fixes missed in r392777 2013-06-24 22:05:28 +00:00
test_event.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_expr.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_format_cache.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
test_format_cap.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
test_func_file.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_gosub.c Doxygen Updates Janitor Work 2012-09-22 20:43:30 +00:00
test_hashtab_thrash.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_heap.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_jitterbuf.c Doxygen comment tweaks. 2013-08-16 17:33:21 +00:00
test_json.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_linkedlists.c test_linkedlists: Fix memory leak 2013-10-24 19:57:04 +00:00
test_locale.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_logger.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_message.c Multiple revisions 420089-420090,420097 2014-08-05 21:44:09 +00:00
test_netsock2.c Add a unit test for ast_sockaddr_split_hostport 2011-11-09 19:31:27 +00:00
test_optional_api.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_pbx.c Merged revisions 337062 via svnmerge from 2011-09-20 21:05:42 +00:00
test_poll.c Add leading and trailing backslashes 2012-04-19 21:14:35 +00:00
test_res_stasis.c Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
test_sched.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_scoped_lock.c ao2_iterator: Mini-audit of the ao2_iterator loops in the new code files. 2013-12-20 20:00:50 +00:00
test_security_events.c Stasis: Update security events to use Stasis 2013-05-17 17:36:10 +00:00
test_skel.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_sorcery.c sorcery: Add additional observer capabilities. 2014-12-05 17:08:27 +00:00
test_sorcery_astdb.c Prevent duplicate sorcery wizards from being applied to sorcery object types. 2014-04-02 18:57:29 +00:00
test_sorcery_realtime.c manager/config: Support templates and non-unique category names via AMI 2014-10-13 16:12:17 +00:00
test_stasis.c tests/test_stasis: Resolve compilation issues from Asterisk 12 merge 2014-12-02 19:04:02 +00:00
test_stasis_channels.c Stasis: Update unittest for channel snapshots 2014-12-11 13:53:39 +00:00
test_stasis_endpoints.c endpoints: Fix failing unit tests from r419196 2014-07-23 16:46:13 +00:00
test_stringfields.c Add aggregate operations for stuctures with string fields 2013-02-07 15:16:44 +00:00
test_strings.c test_strings: Remove string tests that exercise asserts. 2014-11-06 02:41:17 +00:00
test_substitution.c uniqueid: channel linkedid, ami, ari object creation with id's 2014-03-07 15:47:55 +00:00
test_taskprocessor.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_threadpool.c Add a serializer interface to the threadpool 2013-02-12 21:45:59 +00:00
test_time.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_uri.c res_http_websocket: Create a websocket client 2014-06-05 17:22:35 +00:00
test_utils.c CallerID: Fix parsing of malformed callerid 2014-08-27 15:39:35 +00:00
test_uuid.c Add uuid wrapper API call ast_uuid_generate_str(). 2013-03-28 23:59:20 +00:00
test_voicemail_api.c Fix more dev-mode build issues 2014-07-22 14:22:00 +00:00
test_websocket_client.c res_http_websocket: read/write string fixup 2014-06-16 16:22:33 +00:00
test_xml_escape.c Merged revisions 378935 via svnmerge from 2013-01-12 07:21:01 +00:00