mirror of https://github.com/asterisk/asterisk
channel_spy() waited indefinitely on the spy channel, so after the spyee hung up the spy audiohook leaving RUNNING was not noticed until waitfor timed out. That kept an autochan reference on the spyee and delayed its destructor / Hangup. Poll with a short timeout instead. On timeout, only re-check hook status; call ast_read() only when the spy channel is readable. Resolves: #2123pull/2160/head
parent
cecb374d91
commit
ea04aadb33
Loading…
Reference in new issue