Skip to content
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

Voice call not working using Laravel #5

Open
mwshubham opened this issue Mar 27, 2018 · 10 comments
Open

Voice call not working using Laravel #5

mwshubham opened this issue Mar 27, 2018 · 10 comments
Assignees

Comments

@mwshubham
Copy link

mwshubham commented Mar 27, 2018

I have created functions for calling like generateAccessToken, makeCall, placeCall, incomingCall in my controllers. And I have also created public URL using ngrok and have registered on TwiML.
But when I make a call from android twillio SDK ( implementation 'com.twilio:voice-android:2.0.4') only makeCall is hit and no other functions are called which lead to immediate disconnection of the active call on the android side.
screenshot
screenshot1

@kbagchiGWC kbagchiGWC self-assigned this Mar 27, 2018
@kbagchiGWC
Copy link
Collaborator

kbagchiGWC commented Mar 27, 2018

@mwshubham
Are you making a client to client call or client to PSTN call? If you are making a client to client call, is the callee registered to receive incoming call?

README includes step by step instructions for client-to-client-call and client-to-pstn-call. Please follow the steps and let me know if this is still an issue. If it is, please include the CallSid and logs (from the android app and the server) to debug this further.

@mwshubham
Copy link
Author

Thanks for your reply. I am actually making a client to client call via the user identity. And Everything works perfect like token registration and making a voice call on identity and push notification on another device on a fresh LAMP setup with public PHP files as same as SDK.

But the problem is when I create controllers and create public URL via ngrok in that case I am not able to complete a call as the only makeCall is triggered no other internal function like placeCall, incomingCall are called. It would be very helpful if you guide me to set up. I have already added screenshot earlier about controller I am creating.

@bobiechen-twilio
Copy link
Contributor

Hi @mwshubham

Thanks for providing updates.
When you said everything works perfect, was your mobile app hitting a public accessible URL so that you can fetch Access Tokens and the TwiML app can fetch TwiML responses from your server?

The makeCall endpoint is the ultimate demonstration of how to exercise the most basic function of the SDK - client to client/number call. It doesn't require the placeCall and incomingCall endpoints, which are the endpoints we use in the README to show developers how to achieve basic incoming functionality.

For basic functions, you will only need the accessToken and makeCall endpoints.

For not being able to complete the call via the makeCall endpoint:

-bobie

@DLNlab
Copy link

DLNlab commented Jun 29, 2018

Hello, Good Morning

Configure step by step as established in the readme.

But when I enter the url where I have my makeCall.php file, it shows me an HTTP 500 error

Is this normal?

Thank you

@bobiechen-twilio
Copy link
Contributor

Hi @DLNlab

Are you able to see any error message in the console? The 500 code typically means the server endpoint has encountered some internal error, usually code exception.

@DLNlab
Copy link

DLNlab commented Jun 29, 2018

I do not have any error that reports me. Unless you print from the vendor bookstore, is this so?

If so, where can I check this?

The funny thing is that only the files in makeCall.php and incoming.php mark me the errors of HTTP ERROR 500

PlaceCall.php works correctly
index.php works correctly
accessToken.php works correctly
config.php works correctly

@bobiechen-twilio
Copy link
Contributor

Hi @DLNlab

Both makeCall.php and incoming.php work for me. Did you add any modification to the endpoints?

@DLNlab
Copy link

DLNlab commented Jun 29, 2018

No, just modify the requested data such as KEY_SECRET, API_KEY, etc.

@bobiechen-twilio
Copy link
Contributor

Where are you seeing the 500 errors?

@rasta321
Copy link

i am having the same problem as well, did you end up figuring it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants