From 86fd0fab70e0f275f7adf8851906554ec8868502 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 2 Jan 2008 18:16:32 +0000 Subject: [PATCH] make echo work from event socket (MODEVENT-10) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7063 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_dptools/mod_dptools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 1c3adbbfe4..d904690b96 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1023,9 +1023,9 @@ SWITCH_STANDARD_APP(echo_function) channel = switch_core_session_get_channel(session); assert(channel != NULL); - switch_channel_answer(channel); + switch_channel_pre_answer(channel); - switch_channel_set_state(channel, CS_LOOPBACK); + switch_ivr_session_echo(session); } SWITCH_STANDARD_APP(park_function)