Asterisk Project : Asterisk 10 Application_Set This page last changed on Oct 14, 2011 by wikibot. # Set() ### Synopsis Set channel variable or function value. ### Description This function can be used to set the value of channel variables or dialplan functions. When setting variables, if the variable name is prefixed with {}, the variable will be inherited into channels created from the current channel. If the variable name is prefixed with ``_, the variable will be inherited into channels created from the current channel and all children channels. If (and only if), in If (and only if), in `/etc/asterisk/asterisk.conf`, you have a `compat` category, and you have `app_set = 1.4` under that, then the behavior of this app changes, and strips surrounding quotes from the right hand side as it did previously in 1.4. The advantages of not stripping out quoting, and not caring about the separator characters (comma and vertical bar) were sufficient to make these changes in 1.6. Confusion about how many backslashes would be needed to properly protect separators and quotes in various database access strings has been greatly reduced by these changes. ### Syntax
    Set(name,value)
##### Arguments `name` `value` ### See Also Asterisk 10 Application_MSet Asterisk 10 Function_GLOBAL Asterisk 10 Function_SET Asterisk 10 Function_ENV ### Import Version This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:24