pipobscure / NodeJS-AsteriskManager

NodeJS Asterisk Manager API
Other
249 stars 103 forks source link

When expecting manager event VarSet, the variable value is an object. #56

Open vinsik opened 7 years ago

vinsik commented 7 years ago

in file asterisk-manager/lib/ami.js

row: if (key === 'variable' || key === 'chanvariable') { needs to be: if ((key === 'variable' || key === 'chanvariable') && item['event'] != 'VarSet') {

Then the varset variable setting will be and string instead of object. Hope this helps some one.