From 0910740e9ba58cdc34a718058f154704dbf783da Mon Sep 17 00:00:00 2001 From: Alexandre Abreu Date: Thu, 1 Jun 2017 10:33:43 +0100 Subject: [PATCH] allow channel vars (#46) --- lib/ami.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')