05-11-2023 11:17 AM
Hello. I'm trying the app-to-phone sample.
Call disconnected immediately and got this response:
POST
https://ocra.api.sinch.com/ocra/v2/calls
[HTTP/2 500 Internal Server Error 181ms]
error Object { code: 500, message: "Unable to connect call", reference: "dbec3c22-aec7-4dd5-b758-312210e9c7cf" }
I put my app key and secret to their respective inputs. I use my firstname as userId. I use my virtual number(UK) as caller identifier and use my verified phone number(PH) to be called.
How to fix this? Thanks!
Solved! Go to Solution.
05-12-2023 12:18 AM
Hi Leyk!
Please see my amended solution above about adding the number you are calling to the verified numbers section in your account.
Summary
I looking in your logs and the number you are dialing is not listed in your verified numbers: https://dashboard.sinch.com/numbers/verified-numbers.
If you add that destination number and verify it is yours you can make a call to it.
Whilst you are using our free test number, any numbers you dial to must be added to the verified numbers or the call will not work.
Once you have added credit you will be able to call any destination.
This restriction only exists whilst you have a test number.
05-11-2023 11:53 AM - edited 05-12-2023 12:16 AM
Hi
I looking in your logs and the number you are dialing is not listed in your verified numbers: https://dashboard.sinch.com/numbers/verified-numbers.
If you add that destination number and verify it is yours you can make a call to it.
Whilst you are using our free test number, any numbers you dial to must be added to the verified numbers or the call will not work.
Once you have added credit you will be able to call any destination.
This restriction only exists whilst you have a test number.
The To number must be your verified number or a valid to number if you have purchased a number
The From number must be your virtual number, either the test number we gave you for starting to test, or a purchased number.
Run the sinch demo from a webserver as outlined in the github README.md
https://github.com/sinch/rtc-reference-applications/tree/master/javascript#running-locally
Your InApp to PSTN call should connect.
05-11-2023 01:55 PM
The name that is in the 'From' is my userId. Why the client doesn't use my caller identifier?
The client does this:
"From":"userId", "To":"+123456789"
The client should do this
"From":"callerIdentifier", "To":"+123456789"
I tried to put my virtual number prefixed with '+' in the userId textfield and I got an error because '+' is not allowed in a userId text according to this article. I tried removing the '+' and still didn't work. 'cause number should have a '+' prefix. You could see my attempts in my call logs.
I put my virtual number in the 'call-identifier' textfield. However, it seems like the client is using the characters in the 'userId' textfield instead of the characters in 'call-identifier' textfield.
05-12-2023 12:18 AM
Hi Leyk!
Please see my amended solution above about adding the number you are calling to the verified numbers section in your account.
Summary
I looking in your logs and the number you are dialing is not listed in your verified numbers: https://dashboard.sinch.com/numbers/verified-numbers.
If you add that destination number and verify it is yours you can make a call to it.
Whilst you are using our free test number, any numbers you dial to must be added to the verified numbers or the call will not work.
Once you have added credit you will be able to call any destination.
This restriction only exists whilst you have a test number.
12-23-2023 03:42 AM - edited 12-23-2023 04:19 AM
Thanks for details answer, It also help my querry.