<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&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_MSet">Asterisk 10 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="Asterisk10Application_MSet-MSet%28%29"></a>MSet()</h1>
<h3><a name="Asterisk10Application_MSet-Synopsis"></a>Synopsis</h3>
<p>Set channel variable(s) or function value(s).</p>
<h3><a name="Asterisk10Application_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="Asterisk10Application_MSet-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>MSet(name1value1[,name2value2[,...]])</pre>
</div></div>
<h5><a name="Asterisk10Application_MSet-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>set1</tt>
        <ul>
                <li><tt>name1</tt></li>
                <li><tt>value1</tt></li>
        </ul>
        </li>
        <li><tt>set2</tt>
        <ul>
                <li><tt>name2</tt></li>
                <li><tt>value2</tt></li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk10Application_MSet-SeeAlso"></a>See Also</h3>
<p><a href="/wiki/display/AST/Asterisk+10+Application_Set" title="Asterisk 10 Application_Set">Asterisk 10 Application_Set</a></p>
<h3><a name="Asterisk10Application_MSet-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_MSet">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_MSet?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>