]> 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:51 +0000 (17:17 +0000)
commit7ea0e3bfdaa23aa3d2e9d88b2bf4016179233335
tree05210b8506f8a3e6b31988d33ae4b3c0d0f080a2
parent624c7ac88326e75ae60975d2bbcf5e9d4d03d1ba
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