Skip to content

Commit

Permalink
Merge pull request #549 from twilio-labs/update-forward-call
Browse files Browse the repository at this point in the history
Update forward call
  • Loading branch information
cmsunu28 authored Aug 14, 2024
2 parents 41a307a + 6a594e7 commit cdb0f77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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>

0 comments on commit cdb0f77

Please sign in to comment.