1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-20 10:26:51 +00:00

fix the thing the guy mentioned on irc

This commit is contained in:
Anthony Minessale 2015-02-21 00:49:18 -06:00
parent 9a6c29f8f7
commit 609c02955f

@ -3455,7 +3455,11 @@ SWITCH_STANDARD_API(uuid_pre_answer_function)
if (uuid && (xsession = switch_core_session_locate(uuid))) {
switch_channel_t *channel = switch_core_session_get_channel(xsession);
switch_channel_pre_answer(channel);
if (switch_channel_pre_answer(channel) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "+OK\n");
} else {
stream->write_function(stream, "-ERROR\n");
}
switch_core_session_rwunlock(xsession);
} else {
stream->write_function(stream, "-ERROR\n");