From: Anthony Minessale Date: Mon, 20 Jun 2011 16:15:24 +0000 (-0500) Subject: FS-3275 --resolve X-Git-Tag: v1.2-rc1~108^2^2~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4fe85ed242d1287c3db6efde1ce6f623af62924;p=thirdparty%2Ffreeswitch.git FS-3275 --resolve --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index c98e632f94..8f3e920d9a 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1836,6 +1836,8 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input, switch_caller_extension_add_application(peer_session, extension, app, app_arg); switch_channel_set_caller_extension(peer_channel, extension); switch_channel_set_flag(peer_channel, CF_TRANSFER); + switch_channel_set_state(peer_channel, CS_RESET); + switch_channel_wait_for_state(peer_channel, channel, CS_RESET); switch_channel_set_state(peer_channel, CS_EXECUTE); switch_channel_set_variable(channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE, NULL);