I integrated Sinch SDK into iOS application (Capacity plugin which works under ionic).
Main use case so far is to make call from App to phone. I followed instructions from here: https://developers.sinch.com/docs/in-app-calling/getting-started/ios/create-app/ and everything works correctly - I can call from the app to phones using Sinch platform.
The problem which I noticed is when callee rejects the call then app does not receive immediate notification about it. Sometimes notification (func callDidEnd(_ call: SinchRTC.SinchCall)) is triggered after some delay (10-20s). However sometimes when callee rejects the call app is still calling and second connection appears on callee's phone - then when second time callee rejects the call app correctly receive callback about it and close the connection.
Do you have any hints what can be the issue here?
We will review the tutorial to see if the issue can be replicated.
However using the
VideoCallKitSwiftSwift sample you can change the following to the sinch client on start and call invocation to make a PSTN call:In CallKitMediator
add the cli:
<YOURCLI>after userId in the SinchRTC.client (In this case I have put a placeholder+4100000000in the cli)From
To
In
CallKitMediator+CXProviderDelegateHere remove thewithId:and change the client method tocallPhoneNumberinstead ofvideoCallToUserFrom
To
Testing to a PSTN connection via this method yields no delay in the
callDidEnd. If your issues persist, I would recommend to open a ticket with Sinch support who can analyse the PSTN leg of the call for you.