PASSTHRU()¶
Synopsis¶
Pass the given argument back as a value.
Description¶
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.
Note
The functions which take a variable name need to be passed var and not ${var}. Similarly, use PASSTHRU() and not ${PASSTHRU()}.
Example: Prints 321
exten => s,1,NoOp(${CHANNEL}) ; contains SIP/321-1
same => n,NoOp(${CUT(PASSTHRU(${CUT(CHANNEL,-,1)}),/,2)})
Syntax¶
Arguments¶
string
Generated Version¶
This documentation was generated from Asterisk branch 21 using version GIT