[asterisk-dev] [Code Review] StopMixMonitor not stopping mixmonitor thread
David Vossel
dvossel at digium.com
Wed Nov 11 12:19:24 CST 2009
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/424/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
StopMixMonitor will close the filestream, but the thread does not exit properly until channel destruction. This patch fixes that.
To get the thread to exit when StopMixMonitor is used I had to change two things.
1. The audiohook must be triggered for the status change caused by the ast_audiohook_detach_source() call. Without this the mixmonitor thread may be stuck waiting on the audiohook trigger until channel destruction even though the audiohook's status has changed.
2. The datastore must be removed from the channel and freed. This allows the mixmonitor thread to exit cleanly without having to wait for channel destruction to remove the datastore.
This addresses bug 16152.
https://issues.asterisk.org/view.php?id=16152
Diffs
-----
/branches/1.4/apps/app_mixmonitor.c 229350
Diff: https://reviewboard.asterisk.org/r/424/diff
Testing
-------
Tested several combinations of MixMonitor and StopMixMonitor, verified thread exits properly.
Thanks,
David
More information about the asterisk-dev
mailing list