mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
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($;) {
|
sub playAndGetDigits($;) {
|
||||||
my $self = shift;
|
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()) {
|
if (!$self->{_esl}->connected()) {
|
||||||
return undef;
|
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);
|
return $self->getVar($var);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user