diff options
-rw-r--r-- | main/app.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c index c0c9c0309..2b63128af 100644 --- a/main/app.c +++ b/main/app.c @@ -256,8 +256,12 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch res = ast_waitfor(chan, 100); /* ast_waitfor will return the number of remaining ms on success */ - if (res < 0) + if (res < 0) { + if (peer) { + ast_autoservice_stop(peer); + } return res; + } if (ast_opt_transmit_silence) { silgen = ast_channel_start_silence_generator(chan); |