Skip to main content

๐Ÿงช Partner Integration Self-Test Checklist & Troubleshooting FAQ

This document is designed for partner development and QA teams integrating the VoIP React Native SDK (react-native-pitel-voip-v2). It provides an actionable Self-Test Test Case Matrix to validate the integration independently and a Troubleshooting FAQ to diagnose and resolve issues before or during joint debugging.


๐Ÿ“‘ Table of Contentsโ€‹

  1. Pre-Test Prerequisites
  2. Partner Self-Test Checklist (Test Case Matrix)
  3. Troubleshooting FAQ (When a Test Fails)
  4. Escalation & Joint Debugging Data Collection

1. Pre-Test Prerequisitesโ€‹

Before starting the test scenarios, ensure the following setup is verified:

  • Physical iOS Device Available: iOS Simulators cannot receive PushKit VoIP pushes. All inbound background tests must be run on a physical iPhone.
  • Microphone Permission: App requests and handles microphone permission (RECORD_AUDIO / NSMicrophoneUsageDescription).
  • Credentials Uploaded: APNs VoIP certificate (.p12) and Firebase Service Account .json are uploaded to the Portal.
  • Test Accounts: Two active SIP extensions provided for end-to-end calling (e.g. Extension 101 and 102).

2. Partner Self-Test Checklist (Test Case Matrix)โ€‹

Section A: Registration & Session Lifecycleโ€‹

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-REG-01Initial Extension LoginEnter Extension, Password, Domain $\rightarrow$ Call client.login(...).Registration state changes: notRegistered $\rightarrow$ connecting $\rightarrow$ registered.[ ]
TC-REG-02Session Auto-LoginKill and reopen the app with previously saved credentials (client.autoLogin()).App restores session automatically to registered state without re-entering credentials.[ ]
TC-REG-03Logout / UnregisterTap Logout button (client.logout()).State changes to notRegistered. Credentials cleared from local storage.[ ]
TC-REG-04Push Token RegistrationVerify console logs during login.Push token (PushKit on iOS, FCM on Android) is generated and sent to VoIP push server.[ ]

Section B: Outbound Callingโ€‹

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-OUT-01Standard Outbound CallEnter destination number $\rightarrow$ Call client.makeCall(callee).Call state transitions: connecting $\rightarrow$ ringing $\rightarrow$ connected. Two-way audio works upon answer.[ ]
TC-OUT-02Callee Busy (486)Call an extension that is currently engaged in another call or declines.Call terminates immediately; Disconnect event received with code 486 Busy Here.[ ]
TC-OUT-03Callee Unreachable (480)Call an offline or unregistered extension until timeout.Call disconnects with status code 480 Temporarily Unavailable.[ ]
TC-OUT-04Invalid Number (404)Call an invalid/non-existent extension (e.g. 99999).Call terminates immediately with status code 404 Not Found.[ ]
TC-OUT-05Originator Cancel (487)Tap "End Call" / "Hang up" while the call is still ringing.Outgoing call is cancelled cleanly on both client and PBX (487 Request Terminated).[ ]

Section C: Inbound Calling & Wakeupโ€‹

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-IN-01Foreground Incoming CallCall this extension while app is open in foreground.Incoming call UI pop-up appears immediately with Caller Name & Number.[ ]
TC-IN-02Background / Lock Screen (Android)Configure the host app's incoming-call mode, then lock the phone or put the app in background $\rightarrow$ Call the extension from another device.With fullscreen and FSI granted, the call Activity appears when the screen is locked/off. With notification, missing permission, or notGranted, the call remains an actionable heads-up/lock-screen notification; full-screen and screen wake are not guaranteed.[ ]
TC-IN-03Background / Lock Screen (iOS CallKit)Lock physical iPhone or kill app $\rightarrow$ Call extension from another device.PushKit wakes device, native Apple CallKit full-screen UI rings with Accept/Decline buttons.[ ]
TC-IN-04Answer Incoming CallTap "Accept" / "Answer" on incoming call UI.Call connects, microphone un-mutes, clear two-way audio starts, call timer counts up.[ ]
TC-IN-05Decline Incoming CallTap "Decline" / "Reject" on the call screen or Android notification.Android custom screen and notification Decline dismiss this device's incoming presentation and stop its ringtone without sending SIP hangup; the custom app also closes its React Native screen. The Android native call screen and iOS CallKit end/reject the call; the SIP response depends on call state and the server.[ ]
TC-IN-06Caller Cancels Before AnswerCaller hangs up while callee's phone is ringing.Callee's incoming call screen dismisses automatically without leftover ringing.[ ]

Section D: In-Call Telephony Controls & Audioโ€‹

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-ACT-01Mute / UnmuteTap Mute button during active call (client.mute() / client.unmute()).Callee audio is muted (caller hears silence); tapping unmute restores audio immediately.[ ]
TC-ACT-02Speakerphone ToggleTap Speaker button (client.setSpeaker(true/false)).Audio route switches cleanly between Loudspeaker and Earpiece.[ ]
TC-ACT-03Bluetooth Headset RoutingConnect a Bluetooth headset during active call.Audio switches automatically to Bluetooth; onAudioRouteChanged event is emitted.[ ]
TC-ACT-04Hold / UnholdTap Hold button (client.hold() / client.unhold()).Remote party hears hold tone/music; tapping unhold resumes two-way conversation.[ ]
TC-ACT-05DTMF Tones / IVROpen keypad and press digits 0-9, *, # (client.sendDTMF(...)).DTMF tones (RFC 2833) sent successfully (e.g. interacting with an automated IVR menu).[ ]
TC-ACT-06Call Duration (> 35s Check)Maintain an active call for longer than 35 seconds.Call remains connected with stable audio (verifies no 32-second SIP ACK timeout).[ ]
TC-ACT-07Normal Hang UpTap End Call button (client.hangup()).Active call terminates immediately on both sides, timer stops, UI resets.[ ]

Section E: Network Handover & Edge Casesโ€‹

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-NET-01Wi-Fi to 4G/5G HandoverToggle Wi-Fi OFF during active call to force switch to cellular data.Audio stream recovers seamlessly without call dropping.[ ]
TC-NET-02GSM Cellular Call InterruptionMake a native phone call to the device during an active VoIP call.VoIP call is put on hold or ended gracefully depending on OS policy; no native crash.[ ]
TC-NET-03Microphone Denied HandlingRevoke microphone permission $\rightarrow$ attempt to make/answer a call.App displays informative permission prompt instead of crashing or silent failure.[ ]

3. Troubleshooting FAQ (When a Test Fails)โ€‹

๐Ÿ”ด If TC-REG-01 fails (Registration stuck or returns error):โ€‹

  • Status 401 Unauthorized: Verify extension, SIP secret/password, and realm. Ensure no trailing whitespace.
  • Status 408 Request Timeout: Outbound proxy or PBX domain unreachable. Ensure port 5060 (UDP/TCP) or 5061 (TLS) is not blocked by local Wi-Fi or firewall.
  • Domain check: Enter clean domain (e.g. sip.company.vn), do not include http:// or wss://.

๐Ÿ”ด If TC-IN-02 / TC-IN-03 fails (No wakeup / No ring in background):โ€‹

  • iOS (TC-IN-03):
    • Are you testing on a physical device? (Simulators do not support PushKit).
    • Has the .p12 VoIP certificate expired? (Apple certificates expire every 1 year).
    • Is the Bundle ID matching the certificate uploaded on Portal?
  • Android (TC-IN-02):
    • Is FCM message sent as data-only with priority: "high"?
    • On Android 13/14/15: Check POST_NOTIFICATIONS. For fullscreen incoming calls, verify the host app declares USE_FULL_SCREEN_INTENT and that getFullScreenIntentStatus() is granted; otherwise the SDK uses notification fallback and must not be expected to open the screen.
    • On OEM devices (Xiaomi, Oppo, Samsung): Set battery usage to "Unrestricted" and enable "Autostart".

๐Ÿ”ด If TC-IN-03 causes iOS app crash immediately:โ€‹

  • PushKit Policy: Ensure CXProvider.reportNewIncomingCall is invoked synchronously upon push reception. Never await async API calls (e.g. fetching contact info) before reporting to CallKit.

๐Ÿ”ด If TC-OUT-01 / TC-IN-04 has no audio or one-way audio:โ€‹

  • Audio Session Order: Ensure CallKit audio activation delegate (provider:didActivateAudioSession:) runs before PJSIP audio pipeline starts.
  • RTP Port Blocking: Enterprise firewall or NAT is blocking UDP media ports (10000โ€“20000). Test on mobile 4G/5G data to confirm.

๐Ÿ”ด If TC-ACT-06 fails (Call auto-drops at 30โ€“32 seconds):โ€‹

  • Missing SIP ACK: The PBX did not receive the ACK packet from the mobile client after 200 OK due to NAT routing or firewall block, causing PBX transaction timeout (T1 * 64 = 32s). Inspect STUN/ICE settings.

4. Escalation & Joint Debugging Data Collectionโ€‹

If a test case fails and cannot be resolved using the Troubleshooting FAQ, provide the following details to the VoIP support team for joint debugging:

================ JOINT DEBUGGING ESCALATION TICKET ================
1. Test Case ID Failed: [e.g. TC-IN-03 or TC-ACT-06]
2. Timestamp: [e.g. 2026-08-26 14:35:10 UTC+7]
3. Caller Extension: [e.g. 101]
4. Callee Extension: [e.g. 102]
5. SIP Call-ID: [e.g. 3c2a10f9-2b0e-48a1-b684-18e3a241b712@sip.company.vn]
6. Device Information: [e.g. iPhone 15 Pro, iOS 17.5 / Samsung S23, Android 14]
7. Network Type: [e.g. 5G Viettel / Office Wi-Fi]
8. Attached Logs: - Client SDK console log (Debug level enabled)
- Server-side SIP ladder trace (.pcap or PBX log)
===================================================================