[asterisk-commits] russell: branch group/asterisk-cpp r168408 - /team/group/asterisk-cpp/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 10 19:20:40 CST 2009


Author: russell
Date: Sat Jan 10 19:20:40 2009
New Revision: 168408

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168408
Log:
fix autoservice.c

Modified:
    team/group/asterisk-cpp/main/autoservice.c

Modified: team/group/asterisk-cpp/main/autoservice.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/autoservice.c?view=diff&rev=168408&r1=168407&r2=168408
==============================================================================
--- team/group/asterisk-cpp/main/autoservice.c (original)
+++ team/group/asterisk-cpp/main/autoservice.c Sat Jan 10 19:20:40 2009
@@ -116,7 +116,10 @@
 		f = ast_read(chan);
 	
 		if (!f) {
-			struct ast_frame hangup_frame(AST_FRAME_CONTROL, AST_CONTROL_HANGUP);
+			struct ast_frame hangup_frame = { AST_FRAME_CONTROL, };
+
+			hangup_frame.subclass = AST_CONTROL_HANGUP;
+
 			/* No frame means the channel has been hung up.
 			 * A hangup frame needs to be queued here as ast_waitfor() may
 			 * never return again for the condition to be detected outside




More information about the asterisk-commits mailing list