summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorLeif Madsen <leif@leifmadsen.com>2011-11-07 21:58:14 +0000
committerLeif Madsen <leif@leifmadsen.com>2011-11-07 21:58:14 +0000
commit02f886b5a27d8921d1b4b741520e56c7037b0c8a (patch)
tree07aa85db83aebead91a8481a359cf6de672735fa /configs
parent2b6ebcb9e9822186afdcfcac3e90b259cbacc20f (diff)
Allow built in variables to be used with dynamic weights.
You can now use the built in variables , , and within a dynamic weight. For example, this could be useful when you want to pass requested lookup number to the SHELL() function which could be used to execute a script to dynamically set the weight of the result. (Closes issue ASTERISK-13657) Reported by: Joel Vandal Tested by: Leif Madsen, Russell Bryant Patches: asterisk-1.6-dundi-varhead.patch uploaded by Joel Vandal (License #5374) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@343693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r--configs/dundi.conf.sample4
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/dundi.conf.sample b/configs/dundi.conf.sample
index 4733733ca..70f97d422 100644
--- a/configs/dundi.conf.sample
+++ b/configs/dundi.conf.sample
@@ -143,6 +143,10 @@ autokill=yes
; in a response shouuld be.
;testmap3 => context3,${SHELL(echo 123)},IAX2,guest@peer3/${NUMBER}
;
+; The built in variables ${SECRET}, ${IPADDR} and ${NUMBER} can also be
+; passed to the weight. For example, you could pass the ${NUMBER} value
+; to your SHELL() script and use that to dynamically return a weight.
+;
; Note than when using a global variable or dialplan function to set the
; weight for a mapping, that response caching should be disabled if you
; plan for these values to change frequently at all. If the results are