pipobscure / NodeJS-AsteriskManager

NodeJS Asterisk Manager API
Other
248 stars 103 forks source link

event.event.toLowerCase is not a function #44

Closed iatalmid closed 8 years ago

iatalmid commented 8 years ago

/srv/main/node_modules/asterisk-manager/lib/ami.js:191

when I add before this line console.log(event.event), I've received ChallengeSent DeviceStateChange Newchannel VarSet VarSet VarSet Newstate SuccessfulAuth Newexten [ 'UserEvent' ]

so, UserEvent caused exception

RShadowhand commented 8 years ago

try the following instead:

var util = require('util'); util.log(event.event);

pipobscure commented 8 years ago

Should be fixed by #45