From: Russell Bryant Date: Thu, 17 Aug 2006 16:36:21 +0000 (+0000) Subject: revert bogus change to attempt to fix bug 7506 which actually causes half of X-Git-Tag: 1.2.11~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f5c21ded7c00813a7f0209720e7c0c86a8b3b2c;p=thirdparty%2Fasterisk.git 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/branches/1.2@40227 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 26e5e05ba3..2f3950195d 100644 --- a/channel.c +++ b/channel.c @@ -3196,7 +3196,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"