aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoralecdavis <alecdavis@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-15 00:16:03 +0000
committeralecdavis <alecdavis@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-15 00:16:03 +0000
commit331fdbead46a47169f737da4d0628d4cbe501ea3 (patch)
tree7dfeceba3c748648096e7ecfbe076ff471f4f1a5 /channels
parent4c00c42c8e687a2d35922373bf15165b6149a233 (diff)
fixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.
(issue #17067) Reported by: tzafrir Tested by: alecdavis git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270404 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index cd3b68673..d54c951df 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -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) {