mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
Re-order handlers in CEL to ensure that HANGUP events happen after APP_END
When a channel is hungup, both an APP_END event and a HANGUP event can be fired. To ensure that HANGUP events occur after APP_END events, the method callbacks for the APP_END event should be processed prior to the callbacks for the HANGUP event. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1145,9 +1145,14 @@ static void cel_channel_app_change(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* \brief Handlers for channel snapshot changes.
|
||||||
|
* \note Order of the handlers matters. Application changes must come before state
|
||||||
|
* changes to ensure that hangup notifications occur after application changes.
|
||||||
|
* Linkedid checking should always come last.
|
||||||
|
*/
|
||||||
cel_channel_snapshot_monitor cel_channel_monitors[] = {
|
cel_channel_snapshot_monitor cel_channel_monitors[] = {
|
||||||
cel_channel_state_change,
|
|
||||||
cel_channel_app_change,
|
cel_channel_app_change,
|
||||||
|
cel_channel_state_change,
|
||||||
cel_channel_linkedid_change,
|
cel_channel_linkedid_change,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user