diff options
author | Mark Murawki <markm@intellasoft.net> | 2012-04-03 19:31:25 +0000 |
---|---|---|
committer | Mark Murawki <markm@intellasoft.net> | 2012-04-03 19:31:25 +0000 |
commit | e4252eac1010af969007afb525871242855d39e7 (patch) | |
tree | 27f4bcb1ede2c708c34454ba98e5880a7df836a5 /include/asterisk/manager.h | |
parent | 9cc6f2c59e41c0d5fa34f03950131a4eb81cc7ab (diff) |
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
Diffstat (limited to 'include/asterisk/manager.h')
-rw-r--r-- | include/asterisk/manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index 5ffe7fac1..65aa1fb28 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -261,6 +261,9 @@ struct ast_variable *astman_get_variables(const struct message *m); /*! \brief Send error in manager transaction */ void astman_send_error(struct mansession *s, const struct message *m, char *error); +/*! \brief Send error in manager transaction (with va_args support) */ +void astman_send_error_va(struct mansession *s, const struct message *m, const char *fmt, ...); + /*! \brief Send response in manager transaction */ void astman_send_response(struct mansession *s, const struct message *m, char *resp, char *msg); |