mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-07 07:59:49 +00:00
FS-3750
This commit is contained in:
parent
1145905513
commit
f6c9e19639
@ -2067,12 +2067,8 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
|
|||||||
if (async) {
|
if (async) {
|
||||||
if ((status = switch_core_session_queue_private_event(listener->session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
|
if ((status = switch_core_session_queue_private_event(listener->session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_snprintf(reply, reply_len, "+OK");
|
switch_snprintf(reply, reply_len, "+OK");
|
||||||
} else if (status == SWITCH_STATUS_TERM) {
|
|
||||||
switch_snprintf(reply, reply_len, "-ERR closed queue");
|
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
} else {
|
} else {
|
||||||
switch_snprintf(reply, reply_len, "-ERR memory error");
|
switch_snprintf(reply, reply_len, "-ERR memory error");
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch_ivr_parse_event(listener->session, *event);
|
switch_ivr_parse_event(listener->session, *event);
|
||||||
@ -2082,12 +2078,8 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
|
|||||||
if (!zstr(uuid) && (session = switch_core_session_locate(uuid))) {
|
if (!zstr(uuid) && (session = switch_core_session_locate(uuid))) {
|
||||||
if ((status = switch_core_session_queue_private_event(session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
|
if ((status = switch_core_session_queue_private_event(session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_snprintf(reply, reply_len, "+OK");
|
switch_snprintf(reply, reply_len, "+OK");
|
||||||
} else if (status == SWITCH_STATUS_TERM) {
|
|
||||||
switch_snprintf(reply, reply_len, "-ERR closed queue");
|
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
} else {
|
} else {
|
||||||
switch_snprintf(reply, reply_len, "-ERR memory error");
|
switch_snprintf(reply, reply_len, "-ERR memory error");
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
}
|
}
|
||||||
switch_core_session_rwunlock(session);
|
switch_core_session_rwunlock(session);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user