<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/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+10+Application_Set">Asterisk 10 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="Asterisk10Application_Set-Set%28%29"></a>Set()</h1>

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

<h3><a name="Asterisk10Application_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>

<p>If (and only if), in 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=19006010" 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.</p>

<h3><a name="Asterisk10Application_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="Asterisk10Application_Set-Arguments"></a>Arguments</h5>

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



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

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


<h3><a name="Asterisk10Application_Set-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</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+10+Application_Set">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_Set?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>