Skip to content

apps/app_chanspy: don't delay spyee Hangup when spy channel has no reverse media - #2124

Open
Tinet-mucw wants to merge 1 commit into
asterisk:masterfrom
Tinet-mucw:master-issues-2123
Open

apps/app_chanspy: don't delay spyee Hangup when spy channel has no reverse media#2124
Tinet-mucw wants to merge 1 commit into
asterisk:masterfrom
Tinet-mucw:master-issues-2123

Conversation

@Tinet-mucw

@Tinet-mucw Tinet-mucw commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

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: #2123

…verse media

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: asterisk#2123
@Tinet-mucw

Copy link
Copy Markdown
Contributor Author

cherry-pick-to: 24
cherry-pick-to: 23
cherry-pick-to: 22
cherry-pick-to: 20

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Checklist Complete

@github-actions github-actions Bot added the has-pr-checklist A PR Checklist is present on the PR label Aug 27, 2026
@github-actions

Copy link
Copy Markdown

Workflow Check failed
master-pjs2-check-890: FAILED TEST: channels/pjsip/transfers/attended_transfer/nominal/caller_local

@Tinet-mucw Tinet-mucw changed the title apps/app_chanspy: don't delay spyee Hangup when spy channel has no re… apps/app_chanspy: don't delay spyee Hangup when spy channel has no reverse media Aug 27, 2026
@gtjoseph
gtjoseph dismissed github-actions[bot]’s stale review September 1, 2026 12:32

Pull Request Checklist Complete

@gtjoseph gtjoseph added cherry-pick-test Trigger dry run of cherry-picks and removed has-pr-checklist A PR Checklist is present on the PR labels Sep 1, 2026
@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-failed Cherry-Pick checks failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Workflow CPCheck failed
24-pjs1-cpcheck-912: FAILED TEST: channels/pjsip/geolocation/incoming/profile_precedence

@seanbright

Copy link
Copy Markdown
Contributor

Possibly related to #68? I’m basing that purely on symptoms

@jcolp

jcolp commented Sep 2, 2026

Copy link
Copy Markdown
Member

I pondered that, but I don't think so. Separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: ChanSpy delays spyee channel destroy / Hangup by the spy wait timeout when the spy path has no reverse media

4 participants