diff options
-rwxr-xr-x | channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -647,8 +647,10 @@ int ast_hangup(struct ast_channel *chan) return 0; } free_translation(chan); - if (chan->stream) - ast_stopstream(chan); + if (chan->stream) + ast_closestream(chan->stream); + if (chan->vstream) + ast_closestream(chan->vstream); if (chan->sched) sched_context_destroy(chan->sched); /* Clear any tone stuff remaining */ |