mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
mod_dptools: add transfer_on_failure ext/dp/context to play_and_get_digits
If max tries is reach and user has not made a valid entry then system transfers the call leg to the specified destination.
This commit is contained in:
@@ -825,7 +825,8 @@ SWITCH_DECLARE(char *) CoreSession::playAndGetDigits(int min_digits,
|
||||
char *bad_input_audio_files,
|
||||
char *digits_regex,
|
||||
const char *var_name,
|
||||
int digit_timeout)
|
||||
int digit_timeout,
|
||||
const char *transfer_on_failure)
|
||||
{
|
||||
switch_status_t status;
|
||||
sanity_check((char *)"");
|
||||
@@ -844,7 +845,8 @@ SWITCH_DECLARE(char *) CoreSession::playAndGetDigits(int min_digits,
|
||||
dtmf_buf,
|
||||
sizeof(dtmf_buf),
|
||||
digits_regex,
|
||||
(uint32_t) digit_timeout);
|
||||
(uint32_t) digit_timeout,
|
||||
transfer_on_failure);
|
||||
|
||||
end_allow_threads();
|
||||
return dtmf_buf;
|
||||
|
Reference in New Issue
Block a user