Skip to content

Commit 5c67a99

Browse files
InterLinked1gtjoseph
authored andcommitted
pbx_variables: Increase parsing capabilities of MSet
Currently MSet can only parse a maximum of 24 variables. If more variables are provided to MSet, the 24th variable will simply contain the remainder of the string and the remaining variables thereafter will never get set. This increases the number of variables that can be parsed in one go from 24 to 99. Additionally, documentation is added since this limitation is currently undocumented and is confusing to users who encounter this limitation. ASTERISK-29766 #close Change-Id: I3fe35b462dedec0a452fd9ea7f92c920a3939f16
1 parent 97f4001 commit 5c67a99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/pbx_variables.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
double-quotes from the right-hand side (value). If you need to put a separator
9999
character (comma or vert-bar), you will need to escape them by inserting a backslash
100100
before them. Avoid its use if possible.</para>
101+
<para>This application allows up to 99 variables to be set at once.</para>
101102
</description>
102103
<see-also>
103104
<ref type="application">Set</ref>
@@ -1171,7 +1172,7 @@ int pbx_builtin_setvar_multiple(struct ast_channel *chan, const char *vdata)
11711172
char *data;
11721173
int x;
11731174
AST_DECLARE_APP_ARGS(args,
1174-
AST_APP_ARG(pair)[24];
1175+
AST_APP_ARG(pair)[99]; /* parse up to 99 variables */
11751176
);
11761177
AST_DECLARE_APP_ARGS(pair,
11771178
AST_APP_ARG(name);

0 commit comments

Comments
 (0)