Multiple ChannelDestroyed events for the same channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hiya,

When I hang up on a call to my stasis app I’m getting multiple channelDestroyed events for the same channel:

app.js:985:13) Channel was destroyed: 1547220509.77
app.js:1029:17) This was a customer
app.js:1030:17) Checking if this was a customer talking to an agent
app.js:1043:21) Customer was not talking to anyone
app.js:1126:13) 2019-01-11 10:28:29
app.js:985:13) Channel was destroyed: 1547220509.77
app.js:1029:17) This was a customer
app.js:1030:17) Checking if this was a customer talking to an agent
app.js:1043:21) Customer was not talking to anyone
app.js:1126:13) 2019-01-11 10:28:29
app.js:985:13) Channel was destroyed: 1547220509.77
app.js:1029:17) This was a customer
app.js:1030:17) Checking if this was a customer talking to an agent
app.js:1043:21) Customer was not talking to anyone

I’m only registering once to the event:

ari.on('ChannelDestroyed', channelDestroyed);

Is this normal?

I’m writing like a CDR on channel destroyed so don’t want to write it multiple times.

Should I keep an array of channels and only write if I haven’t seen the event for that channel before?

Cheers,

Matt Riddell
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev




[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux