[asterisk-commits] murf: branch murf/bug_7506_1.2 r47235 - in /team/murf/bug_7506_1.2: ./ includ...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 6 11:14:21 MST 2006


Author: murf
Date: Mon Nov  6 12:14:21 2006
New Revision: 47235

URL: http://svn.digium.com/view/asterisk?rev=47235&view=rev
Log:
In this branch 7506 is fixed via the simple patch provided -- many thanks to moy for his work

Modified:
    team/murf/bug_7506_1.2/channel.c
    team/murf/bug_7506_1.2/include/asterisk/channel.h

Modified: team/murf/bug_7506_1.2/channel.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug_7506_1.2/channel.c?rev=47235&r1=47234&r2=47235&view=diff
==============================================================================
--- team/murf/bug_7506_1.2/channel.c (original)
+++ team/murf/bug_7506_1.2/channel.c Mon Nov  6 12:14:21 2006
@@ -2590,6 +2590,7 @@
 				      c->cid.cid_num ? c->cid.cid_num : "<unknown>",
 				      c->cid.cid_name ? c->cid.cid_name : "<unknown>",
 				      c->uniqueid);
+			ast_set_flag(c, AST_FLAG_NOTNEW);
 		}
 		return c;
 	}
@@ -3253,7 +3254,7 @@
 	chan->_state = state;
 	ast_device_state_changed_literal(chan->name);
 	manager_event(EVENT_FLAG_CALL,
-		      (oldstate == AST_STATE_DOWN) ? "Newchannel" : "Newstate",
+		      (oldstate == AST_STATE_DOWN && !ast_test_flag(chan, AST_FLAG_NOTNEW)) ? "Newchannel" : "Newstate",
 		      "Channel: %s\r\n"
 		      "State: %s\r\n"
 		      "CallerID: %s\r\n"

Modified: team/murf/bug_7506_1.2/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/team/murf/bug_7506_1.2/include/asterisk/channel.h?rev=47235&r1=47234&r2=47235&view=diff
==============================================================================
--- team/murf/bug_7506_1.2/include/asterisk/channel.h (original)
+++ team/murf/bug_7506_1.2/include/asterisk/channel.h Mon Nov  6 12:14:21 2006
@@ -435,6 +435,7 @@
 						   so when ->priority is set, it will get incremented before
 						   finding the next priority to run
 						*/
+#define AST_FLAG_NOTNEW 	(1 << 10)	/*!< see bug:7855 incorrect Newchannel event generation */
 /* @} */
 
 #define AST_FEATURE_PLAY_WARNING	(1 << 0)



More information about the asterisk-commits mailing list