diff --git a/lib/ami.js b/lib/ami.js index 014c088..35c04c6 100644 --- a/lib/ami.js +++ b/lib/ami.js @@ -140,7 +140,7 @@ function ManagerReader(context, data) { line = line.split(':'); var key = Utils.removeSpaces(line.shift()).toLowerCase(); line = Utils.removeSpaces(line.join(':')); - if (key === 'variable') { + if (key === 'variable' || key === 'chanvariable') { // Handle special case of one or more variables attached to an event and // create a variables subobject in the event object if (typeof(item[key]) !== 'object')