WebRTC, iOS, Outbound Calls, Oh My!

Hello!

Asterisk 20.9.0.

We have a WebRTC app that uses JsSIP and Cordova for iPhone and Android.

iOS’s wkWebView now terminates websocket connections when the app is placed in the background.

This results in outbound calls dropping about 60 seconds after the websocket is terminated.

What’s very odd, inbound calls will stay up, even after the websocket is terminated and once the app is back in the foreground, the websocket reconnects and re-registers, all is good.

It’s not a network or NAT issue, same issue, large number of different networks.

Curious if anyone knows why inbound calls and outbound calls would be treated differently in this scenario or if there’s a way to prevent Asterisk from terminating the outbound calls 60 seconds after the websocket is closed?

Thanks for any advice!

BK

:face_with_peeking_eye: Sounds like the bug is in iOS.

What do your rtp_timeout values look like in PJSIP ? Any chance you can trace some packets on the router ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.