ensure that user events are identified with the correct type (issue #5200)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
cabcfd8921
commit
8da2550874
1 changed files with 2 additions and 2 deletions
|
@ -69,12 +69,12 @@ static int userevent_exec(struct ast_channel *chan, void *data)
|
||||||
|
|
||||||
if(eventbody) {
|
if(eventbody) {
|
||||||
ast_log(LOG_DEBUG, "Sending user event: %s, %s\n", eventname, 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",
|
"Channel: %s\r\nUniqueid: %s\r\n%s\r\n",
|
||||||
chan->name, chan->uniqueid, eventbody);
|
chan->name, chan->uniqueid, eventbody);
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_DEBUG, "Sending user event: %s\n", eventname);
|
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);
|
"Channel: %s\r\nUniqueid: %s\r\n", chan->name, chan->uniqueid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue