Skip to content

Commit

Permalink
Add option to temporarily forward calls to a specific number
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffneyc committed Jan 16, 2025
1 parent e2783ed commit 5ab9af2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ This is purposely minimal and unexciting. However, feel free to use, change, and

Using it? Tell us how and where. We'd love to hear!

## Configuration

### FORWARD_PHONE_TO

Set this to a phone number to temporarily forward all calls to that number.
Must include area code and not have any spaces or other special characters
(e.g. 5558675309).

© 2014-2018, 2022 [Collective Idea](https://collectiveidea.com/)
11 changes: 8 additions & 3 deletions views/welcome.builder
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
xml.Gather timeout: 5, action: "/menu", numDigits: "1" do |g|
g.Play sound_url("welcome")
if ENV["FORWARD_PHONE_TO"].present?
# Number must include area code and not have any other special characters.
xml.Dial ENV["FORWARD_PHONE_TO"]
else
xml.Gather timeout: 5, action: "/menu", numDigits: "1" do |g|
g.Play sound_url("welcome")
end
xml.Hangup
end
xml.Hangup

0 comments on commit 5ab9af2

Please sign in to comment.