Nami icon indicating copy to clipboard operation
Nami copied to clipboard

Wrong handling of VarSet event

Open vovochka404 opened this issue 11 years ago • 0 comments

{ lines: 
   [ 'Event: VarSet',
     'Privilege: dialplan,all',
     'Channel: SIP/sip123456-000000be',
     'Variable: MACRO_DEPTH',
     'Value: 1',
     'Uniqueid: 1399421255.190' ],
  EOL: '\r\n',
  variables: { MACRO_DEPTH: undefined },
  event: 'VarSet',
  privilege: 'dialplan,all',
  channel: 'SIP/sip123456-000000be',
  value: '1',
  uniqueid: '1399421255.190' }

Hack in Message.prototype.unmarshall() that supposed to handle variables in event currently breaks resulted event obj for VarSet event.

There is no variable key in obj. There is no values in variables storage.

vovochka404 avatar May 07 '14 00:05 vovochka404