From 2f5c21ded7c00813a7f0209720e7c0c86a8b3b2c Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 17 Aug 2006 16:36:21 +0000 Subject: [PATCH] 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 --- channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.47.3