diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-13 20:42:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-13 20:42:03 +0000 |
commit | 317ea2e45dfd66b1934a29ee277b8395e97d01c0 (patch) | |
tree | 7999c8a779ea7262d222e1e6ed6905b4feedf795 /res/res_monitor.c | |
parent | 9681dd52dd8d22bc7c49dbee119a0d1dde538684 (diff) |
Display a list of channel variables in each channel-oriented event.
(Closes AST-33)
Reviewboard: https://reviewboard.asterisk.org/r/368/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230111 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_monitor.c')
-rw-r--r-- | res/res_monitor.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c index f80443b69..e00b7c5b0 100644 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -382,12 +382,11 @@ int AST_OPTIONAL_API_NAME(ast_monitor_start)(struct ast_channel *chan, const cha /* so we know this call has been monitored in case we need to bill for it or something */ pbx_builtin_setvar_helper(chan, "__MONITORED","true"); - manager_event(EVENT_FLAG_CALL, "MonitorStart", - "Channel: %s\r\n" - "Uniqueid: %s\r\n", + ast_manager_event(chan, EVENT_FLAG_CALL, "MonitorStart", + "Channel: %s\r\n" + "Uniqueid: %s\r\n", chan->name, - chan->uniqueid - ); + chan->uniqueid); } else { ast_debug(1,"Cannot start monitoring %s, already monitored\n", chan->name); res = -1; @@ -502,8 +501,8 @@ int AST_OPTIONAL_API_NAME(ast_monitor_stop)(struct ast_channel *chan, int need_l ast_free(chan->monitor); chan->monitor = NULL; - manager_event(EVENT_FLAG_CALL, "MonitorStop", - "Channel: %s\r\n" + ast_manager_event(chan, EVENT_FLAG_CALL, "MonitorStop", + "Channel: %s\r\n" "Uniqueid: %s\r\n", chan->name, chan->uniqueid |