]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9323 [mod_dptools] raise bind_digit_action event on correct leg
authorAndy Newlands <andynewlands@gmail.com>
Tue, 8 Nov 2016 13:22:13 +0000 (13:22 +0000)
committerAndy Newlands <andynewlands@gmail.com>
Tue, 8 Nov 2016 13:22:13 +0000 (13:22 +0000)
Ensure digit_action_callback raises the match event on leg specified
in bind_digit_action.

Specifying the event leg as "peer" or "self" now executes on the
correct call leg.

FS-9323 #resolve

src/mod/applications/mod_dptools/mod_dptools.c

index 28b1de428fd38824b076230fa84d68b9f0c5ce5a..5d0db2e305fd2fb75fb2c3125f7982718483651a 100644 (file)
@@ -166,7 +166,7 @@ static switch_status_t digit_action_callback(switch_ivr_dmachine_match_t *match)
        int x = 0;
        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) {
                        use_session = act->session;
                }