[asterisk-commits] mmichelson: branch group/asterisk-cpp r168388 - /team/group/asterisk-cpp/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 10 17:14:44 CST 2009
Author: mmichelson
Date: Sat Jan 10 17:14:43 2009
New Revision: 168388
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168388
Log:
autoservice.c compiles
I'm done for today
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=168388&r1=168387&r2=168388
==============================================================================
--- team/group/asterisk-cpp/main/autoservice.c (original)
+++ team/group/asterisk-cpp/main/autoservice.c Sat Jan 10 17:14:43 2009
@@ -116,15 +116,12 @@
f = ast_read(chan);
if (!f) {
- struct ast_frame hangup_frame = { 0, };
+ struct ast_frame hangup_frame(AST_FRAME_CONTROL, 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
* of autoservice. So, we'll leave a HANGUP queued up so the
* thread in charge of this channel will know. */
-
- hangup_frame.frametype = AST_FRAME_CONTROL;
- hangup_frame.subclass = AST_CONTROL_HANGUP;
defer_frame = &hangup_frame;
} else {
@@ -200,7 +197,7 @@
return 0;
}
- if (!(as = ast_calloc(1, sizeof(*as))))
+ if (!(as = (struct asent *) ast_calloc(1, sizeof(*as))))
return -1;
/* New entry created */
More information about the asterisk-commits
mailing list