FS-4576 --resolve

This commit is contained in:
Anthony Minessale 2012-08-29 20:35:05 -05:00
parent c7d7bf23d3
commit 8ed7bcd88f
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}