<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Set">Asterisk 11 Application_Set</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Asterisk11Application_Set-Set%28%29"></a>Set()</h1>

<h3><a name="Asterisk11Application_Set-Synopsis"></a>Synopsis</h3>

<p>Set channel variable or function value.</p>
<h3><a name="Asterisk11Application_Set-Description"></a>Description</h3>



<p>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 {<em>}, the variable will be inherited into channels created from the current channel. If the variable name is prefixed with <tt></em>_</tt>, the variable will be inherited into channels created from the current channel and all children channels.</p>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Note</b><br />If (and only if), in <tt>/etc/asterisk/asterisk.conf</tt>, you have a <tt><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=compat&amp;linkCreation=true&amp;fromPageId=20187341" class="createlink">compat</a></tt> category, and you have <tt>app_set = 1.4</tt> 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.</td></tr></table></div>


<h3><a name="Asterisk11Application_Set-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>Set(name=value)</pre>
</div></div>
<h5><a name="Asterisk11Application_Set-Arguments"></a>Arguments</h5>


<ul>
        <li>name</li>
        <li>value</li>
</ul>


<h3><a name="Asterisk11Application_Set-SeeAlso"></a>See Also</h3>


<ul>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+11+Application_MSet&amp;linkCreation=true&amp;fromPageId=20187341" class="createlink">Asterisk 11 Application&#95;MSet</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_GLOBAL" title="Asterisk 11 Function_GLOBAL">Asterisk 11 Function&#95;GLOBAL</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_SET" title="Asterisk 11 Function_SET">Asterisk 11 Function&#95;SET</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_ENV" title="Asterisk 11 Function_ENV">Asterisk 11 Function&#95;ENV</a></li>
</ul>


<h3><a name="Asterisk11Application_Set-ImportVersion"></a>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Set">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Set?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>