mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Prequisites for ARI Outbound Websockets
stasis: * Added stasis_app_is_registered(). * Added stasis_app_control_mark_failed(). * Added stasis_app_control_is_failed(). * Fixed res_stasis_device_state so unsubscribe all works properly. * Modified stasis_app_unregister() to unsubscribe from all event sources. * Modified stasis_app_exec to return -1 if stasis_app_control_is_failed() returns true. http: * Added ast_http_create_basic_auth_header(). md5: * Added define for MD5_DIGEST_LENGTH. tcptls: * Added flag to ast_tcptls_session_args to suppress connection log messages to give callers more control over logging. http_websocket: * Add flag to ast_websocket_client_options to suppress connection log messages to give callers more control over logging. * Added username and password to ast_websocket_client_options to support outbound basic authentication. * Added ast_websocket_result_to_str().
This commit is contained in:
@@ -351,7 +351,7 @@ static int is_subscribed_device_state_lock(struct stasis_app *app, const char *n
|
||||
int is_subscribed;
|
||||
|
||||
ao2_lock(device_state_subscriptions);
|
||||
is_subscribed = is_subscribed_device_state(app, name);
|
||||
is_subscribed = is_subscribed_device_state(app, S_OR(name, DEVICE_STATE_ALL));
|
||||
ao2_unlock(device_state_subscriptions);
|
||||
|
||||
return is_subscribed;
|
||||
@@ -409,7 +409,7 @@ static int unsubscribe_device_state(struct stasis_app *app, const char *name)
|
||||
struct device_state_subscription *sub;
|
||||
|
||||
ao2_lock(device_state_subscriptions);
|
||||
sub = find_device_state_subscription(app, name);
|
||||
sub = find_device_state_subscription(app, S_OR(name, DEVICE_STATE_ALL));
|
||||
if (sub) {
|
||||
remove_device_state_subscription(sub);
|
||||
}
|
||||
|
Reference in New Issue
Block a user