--- ./chan_alsa.c 2004-03-25 17:50:26.000000000 +0100 +++ /tmp/asterisk/channels/chan_alsa.c 2004-05-17 16:35:16.000000000 +0200 @@ -493,11 +493,15 @@ static int alsa_call(struct ast_channel *c, char *dest, int timeout) { int res = 3; + struct ast_frame f = { 0, }; + f.frametype = AST_FRAME_CONTROL; + f.subclass = AST_CONTROL_ANSWER; + ast_queue_frame(c, &f, 0); ast_verbose( " << Call placed to '%s' on console >> \n", dest); if (autoanswer) { ast_verbose( " << Auto-answered >> \n" ); needanswer = 1; - } else { + } else { ast_verbose( " << Type 'answer' to answer, or use 'autoanswer' for future calls >> \n"); needringing = 1; write(sndcmd[1], &res, sizeof(res)); @@ -580,6 +584,8 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f) { + + int res; static char sizbuf[8000]; static int sizpos = 0;