Hi!
I’m trying to exec an originate int this way:
{
action: "originate",
channel: "SIP/autotrunk/66699985049",
context: "from-sip",
exten: "myExten",
priority: 1,
variable: {
name1: "value1,value2",
},
},
However in the ‘varset’ event handler i receive this object:
{
event: 'VarSet',
privilege: 'dialplan,all',
systemname: '2c803df4732e',
channel: 'SIP/autotrunk-00000001',
channelstate: '0',
channelstatedesc: 'Down',
calleridnum: '<unknown>',
calleridname: '<unknown>',
connectedlinenum: '<unknown>',
connectedlinename: '<unknown>',
language: 'en',
accountcode: '',
context: 'autocontext',
exten: '',
priority: '1',
uniqueid: '2c803df4732e-1727252622.2',
linkedid: '2c803df4732e-1727252622.2',
variable: { name1: '' },
value: 'value1'
}
So the value of variable name1 goes from “value1,value2” to ‘value1’. Does exits a way to handle the comma in order to receive it in varset event?