aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-18 19:16:13 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-18 19:16:13 +0000
commitadd0106fc48313fe3a9d95d96d48a9376d558647 (patch)
tree96dc96a769c380cb645d9d315ded4d17b561c52f /doc
parente9de686a670901655b33b5dc68eab92922a22e8e (diff)
The amazing disappearing and reappearing patch... This time with documentation explaining it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6821 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/README.variables28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/README.variables b/doc/README.variables
index 90e74ffcd..5bd3dfe3d 100755
--- a/doc/README.variables
+++ b/doc/README.variables
@@ -66,6 +66,34 @@ value "blabla".
In fact, everything contained ${here} is just replaced with the value of
the variable "here".
+____________________
+VARIABLE INHERITANCE
+--------------------
+
+Variable names which are prefixed by "_" will be inherited to channels
+that are created in the process of servicing the original channel in
+which the variable was set. When the inheritance takes place, the
+prefix will be removed in the channel inheriting the variable. If the
+name is prefixed by "__" in the channel, then the variable is
+inherited and the "__" will remain intact in the new channel.
+
+In the dialplan, all references to these variables refer to the same
+variable, regardless of having a prefix or not. Note that setting any
+version of the variable removes any other version of the variable,
+regardless of prefix.
+
+Example:
+
+Set(__FOO=bar) ; Sets an inherited version of "FOO" variable
+Set(FOO=bar) ; Removes the inherited version and sets a local
+ ; variable.
+
+However,
+
+NoOp(${__FOO}) is identical to NoOp(${FOO})
+
+
+
_______________________________
REMOVING CHARACTERS FROM STRING
-------------------------------