mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add digit_action_set_target app that can set the target (direction of the dtmf flow and subsequent channel who gets the events) to self or peer (bridged channel when possible)
This commit is contained in:
@@ -59,6 +59,7 @@ struct switch_ivr_dmachine {
|
||||
uint32_t input_timeout_ms;
|
||||
switch_hash_t *binding_hash;
|
||||
switch_ivr_dmachine_match_t match;
|
||||
switch_digit_action_target_t target;
|
||||
char digits[DMACHINE_MAX_DIGIT_LEN];
|
||||
char last_matching_digits[DMACHINE_MAX_DIGIT_LEN];
|
||||
char last_failed_digits[DMACHINE_MAX_DIGIT_LEN];
|
||||
@@ -74,6 +75,17 @@ struct switch_ivr_dmachine {
|
||||
};
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_digit_action_target_t) switch_ivr_dmachine_get_target(switch_ivr_dmachine_t *dmachine)
|
||||
{
|
||||
return dmachine->target;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_ivr_dmachine_set_target(switch_ivr_dmachine_t *dmachine, switch_digit_action_target_t target)
|
||||
{
|
||||
dmachine->target = target;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_ivr_dmachine_set_match_callback(switch_ivr_dmachine_t *dmachine, switch_ivr_dmachine_callback_t match_callback)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user