From: Brian West Date: Tue, 29 Sep 2009 19:05:10 +0000 (+0000) Subject: DP-8 X-Git-Tag: v1.0.6~1775 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b884e3d85ccea04633f624e02f68217ed178fc7;p=thirdparty%2Ffreeswitch.git DP-8 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15013 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index b282476438..ea4ebcfecd 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1519,6 +1519,11 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input, switch_channel_t *channel = switch_core_session_get_channel(session); switch_channel_t *peer_channel = switch_core_session_get_channel(peer_session); + if (dtmf->digit == '*') { + switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); + return SWITCH_STATUS_FALSE; + } + if (dtmf->digit == '#') { switch_channel_hangup(peer_channel, SWITCH_CAUSE_NORMAL_CLEARING); return SWITCH_STATUS_FALSE;