aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-17 16:36:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-17 16:36:21 +0000
commit73270eca9183395525ff214e19e8e1aa9149c359 (patch)
treea88c2db305f310a19d7de4af069d46c3585ad144 /channel.c
parent82d34fb58313947ca7b19c2204c4140838ddd935 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.2@40227 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 26e5e05ba..2f3950195 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"