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/2323/head
parent
093d5aa8fa
commit
cdc19fc3ac
Loading…
Reference in new issue