ensure that user events are identified with the correct type (issue #5200)
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Sep 2005 23:36:55 +0000 (23:36 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Sep 2005 23:36:55 +0000 (23:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6571 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_userevent.c

index 6830750..caae092 100755 (executable)
@@ -69,12 +69,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);
        }