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:
Mark Murawki
2012-04-03 19:31:25 +00:00
parent 9cc6f2c59e
commit e4252eac10
7 changed files with 179 additions and 18 deletions

View File

@@ -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