Hi Nitesh,
Neither of the events signify that channel has hungup. You should have another event Hangup when a channel is hung up, or destroyed
if it’s part of an unanswered/timeout Originate (if I remember right). How you decide to clean up or manage your code really depends on what you’re doing. When you say building a mixing bridge, do you mean
a simple conference? Two way call? What you do in your code depends on what you want to happen when one party hangs up! Skrusty From: asterisk-app-dev-bounces@xxxxxxxxxxxxxxxx [mailto:asterisk-app-dev-bounces@xxxxxxxxxxxxxxxx]
On Behalf Of Nitesh Bansal Hello, I'm building a mixing bridge with ARI and Asterisk 13. Now when a channel hangs up, I can see two StasisEvents: 'ChannelLeftBridge' and 'StasisEnd'. To me, there should be just one event when a channel hangs up, if it hangs up, it should automatically leave the bridge. Is there any specific order that these two events should come from Which event should I rely on to write the cleanup code for a channel? Thanks, Nitesh No virus found in this message. |
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev