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