]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
setting display on wrong channel on eavesdrop
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Jul 2011 18:49:48 +0000 (13:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Jul 2011 18:59:31 +0000 (13:59 -0500)
src/switch_ivr_async.c

index d8b67e7706aab40f75c63eea315737b75d55c033..a47cfbd0c0a391efddd9d87ba1d39cfb12e39b5b 100644 (file)
@@ -1286,7 +1286,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
                switch_snprintf(cid_buf, sizeof(cid_buf), "%s|%s", cp->caller_id_number, cp->caller_id_name);
                msg.string_arg = cid_buf;
                msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
-               switch_core_session_receive_message(tsession, &msg);
+               switch_core_session_receive_message(session, &msg);
 
                while (switch_channel_up(tchannel) && switch_channel_ready(channel)) {
                        uint32_t len = sizeof(buf);