Merged revisions 40227 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40227 | russell | 2006-08-17 12:36:21 -0400 (Thu, 17 Aug 2006) | 3 lines

revert bogus change to attempt to fix bug 7506 which actually causes half of
the channels not to get "Newchannel" events at all (issue #7745)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2006-08-17 16:37:39 +00:00
parent 08b23695b4
commit 5784d21897
1 changed files with 2 additions and 1 deletions

View File

@ -3349,7 +3349,8 @@ int ast_setstate(struct ast_channel *chan, int state)
chan->_state = state;
ast_device_state_changed_literal(chan->name);
manager_event(EVENT_FLAG_CALL, "Newstate",
manager_event(EVENT_FLAG_CALL,
(oldstate == AST_STATE_DOWN) ? "Newchannel" : "Newstate",
"Channel: %s\r\n"
"State: %s\r\n"
"CallerID: %s\r\n"