[asterisk-commits] russell: branch 1.2 r40227 - /branches/1.2/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Aug 17 09:36:21 MST 2006


Author: russell
Date: Thu Aug 17 11:36:21 2006
New Revision: 40227

URL: http://svn.digium.com/view/asterisk?rev=40227&view=rev
Log:
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)

Modified:
    branches/1.2/channel.c

Modified: branches/1.2/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channel.c?rev=40227&r1=40226&r2=40227&view=diff
==============================================================================
--- branches/1.2/channel.c (original)
+++ branches/1.2/channel.c Thu Aug 17 11:36:21 2006
@@ -3196,7 +3196,8 @@
 
 	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"



More information about the asterisk-commits mailing list