]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3275 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Jun 2011 16:15:24 +0000 (11:15 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Jun 2011 16:15:24 +0000 (11:15 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index c98e632f94b7ff0c29a3df21c42d7da5314193fa..8f3e920d9a2667c5c1aa5b71bc24e224bf03766b 100755 (executable)
@@ -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);