Skip to content

bug: Mobile app cannot answer incoming external (SIP/drachtio) calls — CallKit/notification vanishes ~2s, desktop works #7702

Description

@CustomIcon

Describe the Bug

Incoming external (PSTN/SIP) calls cannot be answered on the mobile app — on iOS and Android. The incoming-call UI appears and rings, but tapping answer dismisses it after ~2s and the call never connects. The SIP leg keeps ringing server-side for the full 20s timeout, then our queue retries and the phone rings/vanishes again in a loop. Internal user-to-user calls work fine on the same phones; external calls work fine from desktop browsers

Steps to Reproduce

  1. PSTN caller dials our DID → FreeSWITCH IVR answers → caller enters a valid agent extension (1001#)
  2. MediaCallsServer creates the call, sends push + ring signal to the mobile (verified in server debug logs)
  3. Mobile shows incoming call UI and rings
  4. Tap answer → UI vanishes after ~2s, no audio, call never connects
  5. Repeatable 100% for any SIP-originated call (inbound trunk AND internal calls routed through SIP); pure WebRTC internal calls on the same device connect normally, open app or locked

Expected Behavior

Tapping answer connects the call with two-way audio, as it does on desktop and as internal calls do on mobile.

Actual Behavior

The answer never leaves the phone: server debug shows push + sendSignal delivered, then zero client response for 20s — no REST POST /api/v1/media-calls.answer hit, no websocket signal, no ICE, no renegotiation — until FreeSWITCH times out (NO_ANSWER) and cancels. MediaCallsServer logs no error; from its view the phone simply never answered.

Rocket.Chat Server Version

8.8.1 (self-hosted, drachtio + rocketchat/freeswitch image, Ooredoo SIP trunk)

Rocket.Chat App Version

4.77.0 (TestFlight, build 109683)

Device Name

iPhone 15 Pro Max

OS Version

iOS 27

Additional Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions