From: Anthony Minessale Date: Fri, 6 Sep 2013 00:55:50 +0000 (+0500) Subject: doh X-Git-Tag: v1.2.13~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f81bc47f5207167e2f32b8c112025854b257ae9a;p=thirdparty%2Ffreeswitch.git doh --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 36975f6ba8..3b0726fda8 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1641,7 +1641,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session switch_codec_implementation_t tread_impl = { 0 }, read_impl = { 0 }; switch_core_session_message_t msg = { 0 }; char cid_buf[1024] = ""; - switch_caller_profile_t *cp = NULL, *my_cp = NULL; + switch_caller_profile_t *cp = NULL; uint32_t sanity = 600; if (!switch_channel_media_up(channel)) { @@ -1763,7 +1763,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session msg.message_id = SWITCH_MESSAGE_INDICATE_BRIDGE; switch_core_session_receive_message(session, &msg); cp = switch_channel_get_caller_profile(tchannel); - my_cp = switch_channel_get_caller_profile(channel); + name = cp->caller_id_name; num = cp->caller_id_number;