]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4576 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Aug 2012 01:35:05 +0000 (20:35 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Aug 2012 01:35:05 +0000 (20:35 -0500)
src/mod/applications/mod_commands/mod_commands.c

index c3d4f005908da6b89c1a4c0cd8b13e74e1210fe6..d199899e9e481c0004164dfc82f449f6b38807a1 100644 (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");
        }