diff options
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-13 23:40:00 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-13 23:40:00 +0000
commit62b973408d966bc154a77a8f4ddb2acf235e515c (patch)
parentc13df9dd94c79eed9e2f7172f9e324ce09f3aa37 (diff)
ensure that user events are correctly identified (issue #5200)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6572 f38db490-d61c-443f-a65b-d21fe96a405b
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 381d68371..de43197dd 100755
@@ -19,6 +19,10 @@
-- app_meetme
-- If the first caller into a conference hangs up while being prompted for
the conference pin number, the conference will no longer be held open.
+ -- app_userevent
+ -- Events created with this application were indicated as a "call" event
+ instead of a "user" event. This made the "user" event permissions
+ not work correctly.
-- app_voicemail
-- When using the externpass option for voicemail, the password will be
immediately updated in memory as well, instead of having to wait for
diff --git a/apps/app_userevent.c b/apps/app_userevent.c
index 82de783b3..3b3cfc8ca 100755
--- a/apps/app_userevent.c
+++ b/apps/app_userevent.c
@@ -64,12 +64,12 @@ static int userevent_exec(struct ast_channel *chan, void *data)
if(eventbody) {
ast_log(LOG_DEBUG, "Sending user event: %s, %s\n", eventname, eventbody);
- manager_event(EVENT_FLAG_CALL, eventname,
+ manager_event(EVENT_FLAG_USER, eventname,
"Channel: %s\r\nUniqueid: %s\r\n%s\r\n",
chan->name, chan->uniqueid, eventbody);
} else {
ast_log(LOG_DEBUG, "Sending user event: %s\n", eventname);
- manager_event(EVENT_FLAG_CALL, eventname,
+ manager_event(EVENT_FLAG_USER, eventname,
"Channel: %s\r\nUniqueid: %s\r\n", chan->name, chan->uniqueid);