Jean Aunis
2017-Jun-12 08:43 UTC
[asterisk-users] ARI events : ChannelDestroyed and ChannelHangupRequest
Hello, I noticed that when a channel is destroyed, two different events can be raised : ChannelDestroyed and ChannelHangupRequest. These two events seem to be mutually exclusive : if I receive a ChannelHangupRequest, I will never receive a ChannelDestroyed, and vice versa. This behaviour does not look consistent with the documentation, which states : "ChannelDestroyed : Notification that a channel has been destroyed". So I would expect a ChannelDestroyed event to be raised each time a channel is actually destroyed. Is it a bug ? Best regards Jean Aunis
Joshua Colp
2017-Jun-12 13:46 UTC
[asterisk-users] ARI events : ChannelDestroyed and ChannelHangupRequest
On Mon, Jun 12, 2017, at 05:43 AM, Jean Aunis wrote:> Hello, > > I noticed that when a channel is destroyed, two different events can be > raised : ChannelDestroyed and ChannelHangupRequest. These two events > seem to be mutually exclusive : if I receive a ChannelHangupRequest, I > will never receive a ChannelDestroyed, and vice versa. > > This behaviour does not look consistent with the documentation, which > states : "ChannelDestroyed : Notification that a channel has been > destroyed". So I would expect a ChannelDestroyed event to be raised each > time a channel is actually destroyed. > > Is it a bug ?We'd need to know the specific scenarios under which you are doing things to know if it's a bug or not. It is reasonable to expect that ChannelDestroyed is always present, but it depends. I'd also suggest using the app-dev mailing list[1] in the future as its focus is more ARI. [1] http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Jean Aunis
2017-Jun-12 20:56 UTC
[asterisk-users] ARI events : ChannelDestroyed and ChannelHangupRequest
Le 12/06/2017 ? 15:46, Joshua Colp a ?crit :> On Mon, Jun 12, 2017, at 05:43 AM, Jean Aunis wrote: >> Hello, >> >> I noticed that when a channel is destroyed, two different events can be >> raised : ChannelDestroyed and ChannelHangupRequest. These two events >> seem to be mutually exclusive : if I receive a ChannelHangupRequest, I >> will never receive a ChannelDestroyed, and vice versa. >> >> This behaviour does not look consistent with the documentation, which >> states : "ChannelDestroyed : Notification that a channel has been >> destroyed". So I would expect a ChannelDestroyed event to be raised each >> time a channel is actually destroyed. >> >> Is it a bug ? > We'd need to know the specific scenarios under which you are doing > things to know if it's a bug or not. It is reasonable to expect that > ChannelDestroyed is always present, but it depends. I'd also suggest > using the app-dev mailing list[1] in the future as its focus is more > ARI.Thank you Joshua, I was not aware of this mailing list. I will describe the precise scenario as soon as I have free time.> > [1] http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev >