Skip to content

res_stasis: signal when new command is queued#363

Merged
asterisk-org-access-app[bot] merged 1 commit intoasterisk:masterfrom
mbradeen:master-issue-362
Oct 10, 2023
Merged

res_stasis: signal when new command is queued#363
asterisk-org-access-app[bot] merged 1 commit intoasterisk:masterfrom
mbradeen:master-issue-362

Conversation

@mbradeen
Copy link
Copy Markdown
Contributor

@mbradeen mbradeen commented Oct 2, 2023

res_statsis's app loop sleeps for up to .2s waiting on input
to a channel before re-checking the command queue. This can
cause delays between channel setup and bridge.

This change is to send a SIGURG on the sleeping thread when
a new command is enqueued. This exits the sleeping thread out
of the ast_waitfor() call triggering the new command being
processed on the channel immediately.

Resolves: #362

UserNote: Call setup times should be significantly improved
when using ARI.

@mbradeen
Copy link
Copy Markdown
Contributor Author

mbradeen commented Oct 2, 2023

cherry-pick-to: 21
cherry-pick-to: 20
cherry-pick-to: 18
cherry-pick-to: certified/18.9

gtjoseph
gtjoseph previously approved these changes Oct 3, 2023
res_statsis's app loop sleeps for up to .2s waiting on input
to a channel before re-checking the command queue. This can
cause delays between channel setup and bridge.

This change is to send a SIGURG on the sleeping thread when
a new command is enqueued. This exits the sleeping thread out
of the ast_waitfor() call triggering the new command being
processed on the channel immediately.

Resolves: asterisk#362

UserNote: Call setup times should be significantly improved
when using ARI.
@mbradeen mbradeen requested a review from jcolp October 9, 2023 22:40
@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Oct 10, 2023
@github-actions github-actions bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed cherry-pick-gates-failed Cherry-Pick gates failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-checks-passed Cherry-Pick checks passed cherry-pick-gates-failed Cherry-Pick gates failed cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Oct 10, 2023
@asterisk-org-access-app asterisk-org-access-app bot merged commit 2694792 into asterisk:master Oct 10, 2023
@github-actions
Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["21","20","18","certified/18.9"]

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.

[improvement]: Speed up ARI command processing

4 participants