Skip to content

Commit

Permalink
made initial pause configurable, leaving as undocumented feature for …
Browse files Browse the repository at this point in the history
…now #244
  • Loading branch information
dgershman committed Apr 2, 2019
1 parent 24e6fda commit 111e500
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release Notes
### 3.1.0 (Unreleased)
* Added validation for URL fields in Calling Handling [#228]
* Added language file for Australian English to simplify configuration [#252] [#253]
* Added configurable initial pause [#244]

### 3.0.1 (March 31, 2019)
* Fix for no map link being sent when using include map link option. [#254]
Expand Down
1 change: 1 addition & 0 deletions endpoints/_includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class VolunteerLanguage
'include_location_text' => [ 'description' => '', 'default' => false, 'overridable' => true, 'hidden' => false],
'include_map_link' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'infinite_searching' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'initial_pause' => [ 'description' => '' , 'default' => 2, 'overridable' => true, 'hidden' => false],
'jft_option' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'language' => [ 'description' => '' , 'default' => 'en', 'overridable' => true, 'hidden' => false],
'language_selections' => [ 'description' => '', 'default' => null, 'overridable' => true, 'hidden' => false],
Expand Down
4 changes: 2 additions & 2 deletions endpoints/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
?>
<Response>
<Gather language="<?php echo setting('gather_language') ?>" input="<?php echo getInputType() ?>" numDigits="1" timeout="10" speechTimeout="auto" action="input-method.php" method="GET">
<Pause length="2"></Pause>
<Pause length="<?php echo setting('initial_pause') ?>"></Pause>
<?php if (has_setting($promptset_name)) {?>
<Play><?php echo setting($promptset_name) ?></Play>
<?php } else { ?>
<?php if (! isset($_REQUEST["Digits"])) { ?>
<?php if (!isset($_REQUEST["Digits"])) { ?>
<Say voice="<?php echo setting('voice') ?>" language="<?php echo setting('language') ?>">
<?php echo setting('title') ?>
</Say>
Expand Down
1 change: 1 addition & 0 deletions endpoints/lng-selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$_SESSION["override_voice"] = "alice";
?>
<Response>
<Pause length="<?php echo setting('initial_pause') ?>"></Pause>
<Gather language="<?php echo setting('gather_language') ?>" input="<?php echo getInputType() ?>" numDigits="1" timeout="10" speechTimeout="auto" action="index.php" method="GET">
<?php
for ($i = 0; $i < count($language_selection_options); $i++) {
Expand Down

0 comments on commit 111e500

Please sign in to comment.