DP-8
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15013 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
480e6a6a0e
commit
8b884e3d85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue