Hello,
I tried the following callflow using Pivot:
{
"data": {
"channel": "both",
"value": "${Call-ID}",
"variable": "sip_h_X-cid"
},
"module": "set_variable",
"children": {
"_": {
"data": {"to_did":"+xxxxxxxxxx"},
"module": "resources"
}
}
}
I noticed two problems:
1) Variable name is not set as I want and if check fs_cli I can see ecallmgr_undefined=staticvalue (using a static value instead a placeholder)
2) If I try ${Call-ID} I also receive this error in FS:
2017-06-16 08:30:17.742488 [CRIT] switch_channel.c:1407 Invalid data (${ecallmgr_undefined} contains a variable)
so it seems placeholder is incorrect and cannot be resolved in FS
Is there a special syntax that should I respect to set channels variables?
Thanks for your suggestions.