mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
fix the thing the guy mentioned on irc
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user