Open mwshubham opened 6 years ago
@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.
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.
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:
makeCall
endpoint?-bobie
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
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.
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
Hi @DLNlab
Both makeCall.php
and incoming.php
work for me. Did you add any modification to the endpoints?
No, just modify the requested data such as KEY_SECRET, API_KEY, etc.
Where are you seeing the 500
errors?
i am having the same problem as well, did you end up figuring it out?
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.