Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data.list.forEach(function (val) {
- if (val.Status !== 'Dialing') {
- console.log(val.Id);
- if (that.cache[val.Id] === undefined) {
- that.cache[val.Id] = {
- Caller: val.Caller,
- Callee: val.Callee,
- Status: val.Status,
- LastChangeStatus: val.LastChangeStatus,
- Duration: val.Duration
- };
- that.emit('newCall',val);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement