Merge pull request #1289 from gsiehien/fix-rayo-conference

[mod_rayo] mod_rayo returns error exec_conference_api
This commit is contained in:
Andrey Volk 2021-08-02 16:23:11 +03:00 committed by GitHub
commit d20dbb76a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2213,7 +2213,7 @@ static iks *exec_conference_api(switch_core_session_t *session, const char *conf
const char *conf_member_id = switch_channel_get_variable(switch_core_session_get_channel(session), "conference_member_id");
SWITCH_STANDARD_STREAM(stream);
switch_api_execute("conference", switch_core_session_sprintf(session, "%s %s %s", conf_name, command, conf_member_id), NULL, &stream);
if (!zstr(stream.data) && strncmp("OK", stream.data, 2)) {
if (!zstr(stream.data) && strncmp("+OK", stream.data, 3)) {
response = iks_new_error_detailed_printf(node, STANZA_ERROR_SERVICE_UNAVAILABLE, "%s", stream.data);
}
switch_safe_free(stream.data);