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:
Michael S Collins
2011-08-18 20:29:52 -07:00
parent dc80c40180
commit e4d473190d
5 changed files with 58 additions and 9 deletions

View File

@@ -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;