Add digit_timeout to ESL::IVR's playAndGetDigits method
This commit is contained in:
parent
f44c90e04f
commit
f564d38385
|
@ -73,13 +73,13 @@ sub setVar($;) {
|
|||
|
||||
sub playAndGetDigits($;) {
|
||||
my $self = shift;
|
||||
my ($min, $max, $tries, $to, $term, $file, $invalid_file, $var, $regex) = @_;
|
||||
my ($min, $max, $tries, $to, $term, $file, $invalid_file, $var, $regex, $digit_timeout) = @_;
|
||||
|
||||
if (!$self->{_esl}->connected()) {
|
||||
return undef;
|
||||
}
|
||||
|
||||
$self->execute("play_and_get_digits", "$min $max $tries $to $term $file $invalid_file $var $regex");
|
||||
$self->execute("play_and_get_digits", "$min $max $tries $to $term $file $invalid_file $var $regex $digit_timeout");
|
||||
|
||||
return $self->getVar($var);
|
||||
|
||||
|
|
Loading…
Reference in New Issue