A building block that shows how to handle an inbound call that connects to another person by making an outbound call.
- You must specify one endpoint must be on the path
/webhooks/answer
- Your endpoint must be accessible on a
GET
request - Your endpoint must listen on port
3000
- Your response should return a 200 status code
- You must provide a constant of
YOUR_SECOND_NUMBER
for the user to replace
Note: The example below assumes the constant
YOUR_SECOND_NUMBER
has been set or replaced with a string value of447700900000
.
- Your response should be JSON NCCO with the the following or equivalent body:
[
{
"action": "connect",
"endpoint": [
{
"type": "phone",
"number": "447700900000"
}
]
}
]
- Code examples should include a GitHub link to the file
- Code examples should include the line numbers used from the linked file
- All code examples must be present in the
master
branch of the relevant quickstart repo - All code examples must be tested to work (manual testing is fine)
- Fork this gist
- Edit the gist and the building block files to match the specification
- Return Gist as a comment in the original issue