Skip to content

Commit

Permalink
adding force dialing notice feature, prepping next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Gershman committed Jun 2, 2018
1 parent 6c5c04c commit fba512a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Here is an instructional video that might assist you: https://www.dropbox.com/s/

**This will require that you have an SSL certificate installed on your webserver to transit a secure connection. This is required by Twilio.**

1. Create a new virtual application or add the yap code to an existing folder. The easiest way to get the code there is to upload the latest version there: https://github.com/radius314/yap/archive/1.3.0.zip.
1. Create a new virtual application or add the yap code to an existing folder. The easiest way to get the code there is to upload the latest version there: https://github.com/radius314/yap/archive/1.3.1.zip.

2. Once the application is configured you will need to customize the config.php file. There are several settings there that are documented in that file. There are a number of different ways to utilize the yap platform.

Expand Down Expand Up @@ -175,6 +175,14 @@ You might want to force a particular Twilio number to just call another number.

`/helpline-search.php?ForceNumber=8885551212` or for extension dialing `/helpline-search.php?ForceNumber=8885551212%7Cwwww700`. Each `w` is a 1 second pause.

In some cases, when using 1 second pauses you may want to indicate that there is something happening to the end user as there will be a delay.

You can enable a simple message by setting the following:

```php
static force_dialing_notice = true;
```

## Including province prior to lookup

It may be that your yap instance needs to search multiple states. By default yap will be biased towards the local number state (unless it's tollfree). To enable province lookup set the `$province_lookup`, variable to `true` in the `config.php` file.
Expand Down
13 changes: 7 additions & 6 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# Release Notes

###Future Release
* Added the ability to change the outbound caller id to another verified twilio number.
### 1.3.1
* Added the ability to change the outbound caller id to another verified Twilio number.
* Optional setting for force dialing message to indicate that the call was received and being processed. (Useful for extension dialing with pausing)

###1.3.0
### 1.3.0
* Added option to skip location gathering for helpline routing.
* Playback of the Just For Today as a configurable option with a prompt.
* Added force dialing feature for wiring a Twilio number to just route somewhere else.

###1.2.1
###1 .2.1

* Helpline to helpline redirection support.
* Added alternative authentication support `$alt_auth_method`, for non-SSL roots.
* Bug fix for tollfree bias configuration interpretation.
* Bug fix for <Pause> being inserted into SMS-only responses.

###1.2.0
### 1.2.0

* Support for different postal code length expectations
* Location bias for international lookups
* Ignore formats option
* Added link to instructional video thanks @pjaudiomv
* Bug fix for unpublished meeting call routing

###1.1.0
### 1.1.0

* New feature: language files with overrides, packaged with English and Pig Latin
* New feature: meeting start time grace period (default 15 minutes). https://github.com/radius314/yap/issues/61
Expand Down
6 changes: 5 additions & 1 deletion helpline-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
<Redirect method="GET">helpline-dialer.php?service_body_id=<?php echo $yap_service_body_redirect ?></Redirect>
<?php } else if ($phone_number != "") {
if (!isset($_REQUEST["ForceNumber"])) { ?>
<Say voice="<?php echo $voice; ?>" language="<?php echo $language; ?>"><?php echo word('please_stand_by') ?>... <?php echo word('relocating_your_call_to') ?> <?php echo $location; ?>.</Say>
<Say voice="<?php echo $voice; ?>" language="<?php echo $language; ?>"><?php echo word('please_stand_by') ?>... <?php echo word('relocating_your_call_to') ?> <?php echo $location; ?>.</Say>
<?php } elseif (isset($_REQUEST["ForceNumber"]) && isset($GLOBALS['force_dialing_notice'])) {?>
<Say voice="<?php echo $voice; ?>" language="<?php echo $language; ?>">
<?php echo word('please_wait_while_we_connect_your_call') ?>
</Say>
<?php } ?>
<Dial>
<Number sendDigits="<?php echo $extension ?>"><?php echo $phone_number ?></Number>
Expand Down

0 comments on commit fba512a

Please sign in to comment.