diff options
-rw-r--r-- | main/rtp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c index c917e70b4..b394cf285 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -1307,7 +1307,10 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) } if (rtp->resp && !rtp->dtmfcount) { - return send_dtmf(rtp, AST_FRAME_DTMF_END); + struct ast_frame *f; + f = send_dtmf(rtp, AST_FRAME_DTMF_END); + rtp->resp = 0; + return f; } } |