You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you setup the PHP quickstart, and make a call from your device to the client, it fails to call the client - instead you get the default response from the voice.php file.
To Reproduce
Steps to reproduce the behavior:
Follow the guide at the above link to be able to make a call inbound to your PHP quickstart.
Make a call in, and you should hear the default text from the voice.php file being spoken, then it hangs up.
Expected behavior
As this is the browser client example, customers expect to be able to answer the incoming call in their browser. This is possible with a few changes to the PHP file.
Desktop (please complete the following information):
OS: Mac OSX
Browser: Chrome
Version: 93
Smartphone (please complete the following information):
N/A - voice call
Additional context
You can make this work by doing the following:
Instead of passing "$_REQUEST['phone']" to the function "get_voice_response" in voice.php, pass "$_REQUEST['Called']".
$_SESSION['identity'] didn't return anything (for me, at least), so just as a test, you can hardcode in your client identity by replacing it with the automatically generated identity in the "Your Device Info" section, on the "http://localhost:8000/" page.
This should then allow you to receive a call in the browser client as expected.
The text was updated successfully, but these errors were encountered:
Where has this bug occurred?
https://github.com/TwilioDevEd/voice-javascript-sdk-quickstart-php
Describe the bug
When you setup the PHP quickstart, and make a call from your device to the client, it fails to call the client - instead you get the default response from the voice.php file.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As this is the browser client example, customers expect to be able to answer the incoming call in their browser. This is possible with a few changes to the PHP file.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
You can make this work by doing the following:
This should then allow you to receive a call in the browser client as expected.
The text was updated successfully, but these errors were encountered: