[asterisk-users] MSet()

Mark Michelson mmichelson at digium.com
Fri Dec 12 15:41:54 CST 2008


Philipp Kempgen wrote:
> How is MSet() different from Set()?
> Is it supposed to be a "Multi"-Set()?
> Why was it added in 1.6?
> 
> 
>    Philipp Kempgen
> 

It is a Multiset application. My recollection of the addition is that due to 
parser changes in 1.6, a statement like:

exten => s,1,Set(FOO=hello,BAR=world)

would result in a variable called FOO being set to the value "hello,BAR=world".
The MSet application was added to facilitate being able to set multiple 
variables in a single application call. If using MSet, the above would instead 
result in a variable called FOO being set to the value "hello" and a variable 
called BAR being set to "world".

Mark Michelson



More information about the asterisk-users mailing list