[mod_rayo] mod_rayo returns error exec_conference_api
fixes #704 - mod_rayo returns error on exec_conference_api
This commit is contained in:
parent
d251a8ccee
commit
f046bc0628
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue