diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 09c37b7e95..918370dfae 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -147,6 +147,10 @@ AST_THREADSTORAGE(tmp_buf); Literally returns the given string. 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. + The functions which take a variable name need to be passed var and not + ${var}. Similarly, use PASSTHRU() and not ${PASSTHRU()}. + Example: ${CHANNEL} contains SIP/321-1 + ${CUT(PASSTHRU(${CUT(CHANNEL,-,1)}),/,2)}) will return 321