Merge pull request #1041 in FS/freeswitch from ~PERRO/freeswitch:bugfix/FS-9323 to master

* commit '8d8543d0c822d7f2dffa84913b869b539eb341d0':
  FS-9323 [mod_dptools] raise bind_digit_action event on correct leg
This commit is contained in:
Mike Jerris 2016-11-11 15:37:14 -06:00
commit b0b6db050a
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ static switch_status_t digit_action_callback(switch_ivr_dmachine_match_t *match)
int x = 0; int x = 0;
char *flags = ""; char *flags = "";
if (switch_ivr_dmachine_get_target(match->dmachine) == DIGIT_TARGET_PEER || act->target == DIGIT_TARGET_PEER || act->target == DIGIT_TARGET_BOTH) { if (act->target == DIGIT_TARGET_PEER || act->target == DIGIT_TARGET_BOTH) {
if (switch_core_session_get_partner(act->session, &use_session) != SWITCH_STATUS_SUCCESS) { if (switch_core_session_get_partner(act->session, &use_session) != SWITCH_STATUS_SUCCESS) {
use_session = act->session; use_session = act->session;
} }