mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
Allow the Hangup manager action to match channels by regex
* Hangup now can take a regular expression as the Channel option. If you want to hangup multiple channels, use /regex/ as the Channel option. Existing behavior to hanging up a single channel is unchanged, but if you pass a regex, the manager will send you a list of channels back that were hung up. (closes issue ASTERISK-19575) Reported by: Mark Murawski Tested by: Mark Murawski git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1382,6 +1382,14 @@ int ast_check_hangup(struct ast_channel *chan);
|
||||
|
||||
int ast_check_hangup_locked(struct ast_channel *chan);
|
||||
|
||||
/*!
|
||||
* \brief Lock the given channel, then request softhangup on the channel with the given causecode
|
||||
* \param obj channel on which to hang up
|
||||
* \param causecode cause code to use
|
||||
* \return 0
|
||||
*/
|
||||
int ast_channel_softhangup_withcause_locked(void *obj, int causecode);
|
||||
|
||||
/*!
|
||||
* \brief Compare a offset with the settings of when to hang a channel up
|
||||
* \param chan channel on which to check for hang up
|
||||
|
Reference in New Issue
Block a user