From: Grzegorz Siehień Date: Mon, 2 Aug 2021 12:55:29 +0000 (+0200) Subject: [mod_rayo] mod_rayo returns error exec_conference_api X-Git-Tag: v1.10.7^2~305^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1289%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_rayo] mod_rayo returns error exec_conference_api fixes #704 - mod_rayo returns error on exec_conference_api --- diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index b2e3ef2734..6ed46489a7 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -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);