res_stasis: fix intermittent delays on adding channel to bridge

Previously, on command execution, the control thread was awoken by
sending a SIGURG. It was found that this still resulted in some
instances where the thread was not immediately awoken.

This change instead sends a null frame to awaken the control thread,
which awakens the thread more consistently.

Resolves: #801
This commit is contained in:
Mike Bradeen
2024-07-10 12:58:44 -06:00
committed by asterisk-org-access-app[bot]
parent 291c1e4c1f
commit a824a0cdb4
3 changed files with 4 additions and 30 deletions

View File

@@ -48,15 +48,6 @@ struct stasis_app_control *control_create(struct ast_channel *channel, struct st
*/
void control_flush_queue(struct stasis_app_control *control);
/*!
* \brief set the control's thread id
* \since 18
*
* \param control Control object on which to set the thread id.
* \param threadid id to set
*/
void control_set_thread(struct stasis_app_control *control, pthread_t threadid);
/*!
* \brief Dispatch all commands enqueued to this control.
*