]> 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:58 +0000 (17:17 +0000)
commit27283a9209c5fdf297989945d78afa1f67866258
tree5057f878dd8057b0dcf73b510da08276f0d8d8dd
parent1ff540c75f3182397457be05aace146d95c0ba5a
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