FS-4576 --resolve

This commit is contained in:
Anthony Minessale
2012-08-29 20:35:05 -05:00
committed by Ken Rice
parent 977364961a
commit 89e39609f5
@@ -2747,7 +2747,7 @@ 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);
switch_core_session_rwunlock(session);
switch_core_session_rwunlock(xsession);
} else {
stream->write_function(stream, "-ERROR\n");
}
@@ -2763,7 +2763,7 @@ 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_core_session_rwunlock(session);
switch_core_session_rwunlock(xsession);
} else {
stream->write_function(stream, "-ERROR\n");
}