Skip to content

Update forward call #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions forward-call/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Forward Call

This Function in `forward-call.js` will return the TwiML required to forward an incoming call to a number that is set in the environment variables.
This Function in `forward-call.js` will return the [TwiML](https://www.twilio.com/docs/voice/twiml) required to forward an incoming call to a number that is set in the environment variables.

### Environment variables

This Function expects one environment variable to be set.

| Variable | Meaning |
| :---------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `MY_PHONE_NUMBER` | The number you want to forward incoming messages to [in E.164 format](https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers) |
| `MY_PHONE_NUMBER` | The number you want to forward incoming calls to [in E.164 format](https://help.twilio.com/articles/223183008-Formatting-International-Phone-Numbers) |

### Parameters

Expand Down
8 changes: 4 additions & 4 deletions forward-call/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>Get started with your application</h2>
</p>
<p>
This app will return the
<a href="https://www.twilio.com/docs/sms/twiml" target="_blank" rel="noopener">TwiML</a>
<a href="https://www.twilio.com/docs/voice/twiml" target="_blank" rel="noopener">TwiML</a>
required to forward an incoming call to a number that is set in the environment variables.
</p>
<ol class="steps">
Expand All @@ -69,8 +69,8 @@ <h2>Troubleshooting</h2>
target="_blank"
rel="noopener">
phone number configuration
</a>
and make sure the Twilio phone number you want for your app has a voice webhook
</a>
for your Twilio number and make sure it has a voice webhook
configured to point at the following URL
<form>
<label for="twilio-webhook">Webhook URL</label>
Expand All @@ -82,7 +82,7 @@ <h2>Troubleshooting</h2>
</div>
</main>
<footer>
<span class="statement">We can't wait to see what you build.</span>
<span class="statement">We can't wait to see what you build!</span>
</footer>
</body>
</html>
Loading