<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17669">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_variables: Increase parsing capabilities of MSet<br><br>Currently MSet can only parse a maximum of 24 variables.<br>If more variables are provided to MSet, the 24th variable<br>will simply contain the remainder of the string and the<br>remaining variables thereafter will never get set.<br><br>This increases the number of variables that can be parsed<br>in one go from 24 to 99. Additionally, documentation is added<br>since this limitation is currently undocumented and is<br>confusing to users who encounter this limitation.<br><br>ASTERISK-29766 #close<br><br>Change-Id: I3fe35b462dedec0a452fd9ea7f92c920a3939f16<br>---<br>M main/pbx_variables.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/69/17669/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/pbx_variables.c b/main/pbx_variables.c</span><br><span>index 91b5bbb..6077b06 100644</span><br><span>--- a/main/pbx_variables.c</span><br><span>+++ b/main/pbx_variables.c</span><br><span>@@ -98,6 +98,7 @@</span><br><span>                      double-quotes from the right-hand side (value). If you need to put a separator</span><br><span>                       character (comma or vert-bar), you will need to escape them by inserting a backslash</span><br><span>                         before them. Avoid its use if possible.</para></span><br><span style="color: hsl(120, 100%, 40%);">+                  <para>This application allows up to 99 variables to be set at once.</para></span><br><span>               </description></span><br><span>                 <see-also></span><br><span>                     <ref type="application">Set</ref></span><br><span>@@ -1157,7 +1158,7 @@</span><br><span>      char *data;</span><br><span>  int x;</span><br><span>       AST_DECLARE_APP_ARGS(args,</span><br><span style="color: hsl(0, 100%, 40%);">-              AST_APP_ARG(pair)[24];</span><br><span style="color: hsl(120, 100%, 40%);">+                AST_APP_ARG(pair)[99]; /* parse up to 99 variables */</span><br><span>        );</span><br><span>   AST_DECLARE_APP_ARGS(pair,</span><br><span>           AST_APP_ARG(name);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17669">change 17669</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/17669"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: I3fe35b462dedec0a452fd9ea7f92c920a3939f16 </div>
<div style="display:none"> Gerrit-Change-Number: 17669 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>