git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15013 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-09-29 19:05:10 +00:00
parent 480e6a6a0e
commit 8b884e3d85
1 changed files with 5 additions and 0 deletions

View File

@ -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;