]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.
authorAlec L Davis <sivad.a@paradise.net.nz>
Tue, 15 Jun 2010 00:16:03 +0000 (00:16 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Tue, 15 Jun 2010 00:16:03 +0000 (00:16 +0000)
(issue #17067)
Reported by: tzafrir
Tested by: alecdavis

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@270404 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index cd3b6867311efd0f8a360dc4d90013c45c8cb4ea..d54c951dfd2d89070981edfac176ae1c9f708510 100644 (file)
@@ -4532,6 +4532,7 @@ static struct ast_frame *dahdi_handle_event(struct ast_channel *ast)
                                        p->subs[index].f.frametype = AST_FRAME_CONTROL;
                                        p->subs[index].f.subclass = AST_CONTROL_ANSWER;
                                        /* Make sure it stops ringing */
+                                       dahdi_set_hook(p->subs[index].dfd, DAHDI_OFFHOOK);
                                        p->subs[SUB_REAL].needringing = 0;
                                        ast_log(LOG_DEBUG, "channel %d answered\n", p->channel);
                                        if (p->cidspill) {