summaryrefslogtreecommitdiff
path: root/res/res_pjsip_mwi.c
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2015-01-07 17:51:35 +0000
committerGeorge Joseph <george.joseph@fairview5.com>2015-01-07 17:51:35 +0000
commit42e4cb7174225c33cbc18479eb4b99fa6896d478 (patch)
tree4043e9c0af7fc3c8f67211b8a4ebbebf1bb26c47 /res/res_pjsip_mwi.c
parent9ea8dd036fa79f7884e71b0d1769d9416a3d958a (diff)
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_mwi.c')
0 files changed, 0 insertions, 0 deletions