mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
return +OK on success
This commit is contained in:
parent
28fb509932
commit
423f7fe618
@ -3184,8 +3184,13 @@ SWITCH_STANDARD_API(uuid_answer_function)
|
||||
|
||||
if (uuid && (xsession = switch_core_session_locate(uuid))) {
|
||||
switch_channel_t *channel = switch_core_session_get_channel(xsession);
|
||||
switch_channel_answer(channel);
|
||||
switch_status_t status = switch_channel_answer(channel);
|
||||
switch_core_session_rwunlock(xsession);
|
||||
if (status == SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "+OK\n");
|
||||
} else {
|
||||
stream->write_function(stream, "-ERROR\n");
|
||||
}
|
||||
} else {
|
||||
stream->write_function(stream, "-ERROR\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user