diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 9e486d6be83dc9100449993f1e3286564db0607e..937fe2b9c204a2076921f19193550426e39748db 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -165,6 +165,10 @@ AST_THREADSTORAGE(tmp_buf); <para>Literally returns the given <replaceable>string</replaceable>. The intent is to permit other dialplan functions which take a variable name as an argument to be able to take a literal string, instead.</para> + <note><para>The functions which take a variable name need to be passed var and not + ${var}. Similarly, use PASSTHRU() and not ${PASSTHRU()}.</para></note> + <para>Example: ${CHANNEL} contains SIP/321-1</para> + <para> ${CUT(PASSTHRU(${CUT(CHANNEL,-,1)}),/,2)}) will return 321</para> </description> </function> <function name="REGEX" language="en_US">