]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis: signal when new command is queued
authorMike Bradeen <mbradeen@sangoma.com>
Mon, 2 Oct 2023 18:35:32 +0000 (12:35 -0600)
committerMike Bradeen <mbradeen@sangoma.com>
Tue, 10 Oct 2023 17:17:55 +0000 (17:17 +0000)
commit79220e3f0c09a007b0dc62ba95b3e4b41b0851ab
treea41b7ce697b6f9301f74e9dba99661daff978b3b
parent1171dcee02e10263cda5532f466a662c3917d792
res_stasis: signal when new command is queued

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.
res/res_stasis.c
res/stasis/control.c
res/stasis/control.h