From: Anthony Minessale Date: Thu, 30 Aug 2012 01:35:05 +0000 (-0500) Subject: FS-4576 --resolve X-Git-Tag: v1.2.3^2~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed7bcd88f35bc6c2034010022dc8108cfb2f364;p=thirdparty%2Ffreeswitch.git FS-4576 --resolve --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index c3d4f00590..d199899e9e 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -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"); }