<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_MSet">Asterisk 11 Application_MSet</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_MSet-MSet%28%29"></a>MSet()</h1>

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

<p>Set channel variable(s) or function value(s).</p>
<h3><a name="Asterisk11Application_MSet-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. MSet behaves in a similar fashion to the way Set worked in 1.2/1.4 and is thus prone to doing things that you may not expect. For example, it strips surrounding double-quotes from the right-hand side (value). If you need to put a separator character (comma or vert-bar), you will need to escape them by inserting a backslash before them. Avoid its use if possible.</p>

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

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>MSet(name1=value1name2=value2)</pre>
</div></div>
<h5><a name="Asterisk11Application_MSet-Arguments"></a>Arguments</h5>


<ul>
        <li>set1
        <ul>
                <li>name1</li>
                <li>value1</li>
        </ul>
        </li>
        <li>set2
        <ul>
                <li>name2</li>
                <li>value2</li>
        </ul>
        </li>
</ul>


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


<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_Set" title="Asterisk 11 Application_Set">Asterisk 11 Application&#95;Set</a></li>
</ul>


<h3><a name="Asterisk11Application_MSet-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_MSet">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_MSet?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>