๐งช 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โ
- Pre-Test Prerequisites
- Partner Self-Test Checklist (Test Case Matrix)
- Troubleshooting FAQ (When a Test Fails)
- 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.jsonare uploaded to the Portal. - Test Accounts: Two active SIP extensions provided for end-to-end calling (e.g. Extension
101and102).
2. Partner Self-Test Checklist (Test Case Matrix)โ
Section A: Registration & Session Lifecycleโ
| Test ID | Test Scenario | Steps to Execute | Expected Result | Pass/Fail |
|---|---|---|---|---|
| TC-REG-01 | Initial Extension Login | Enter Extension, Password, Domain $\rightarrow$ Call client.login(...). | Registration state changes: notRegistered $\rightarrow$ connecting $\rightarrow$ registered. | [ ] |
| TC-REG-02 | Session Auto-Login | Kill and reopen the app with previously saved credentials (client.autoLogin()). | App restores session automatically to registered state without re-entering credentials. | [ ] |
| TC-REG-03 | Logout / Unregister | Tap Logout button (client.logout()). | State changes to notRegistered. Credentials cleared from local storage. | [ ] |
| TC-REG-04 | Push Token Registration | Verify 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 ID | Test Scenario | Steps to Execute | Expected Result | Pass/Fail |
|---|---|---|---|---|
| TC-OUT-01 | Standard Outbound Call | Enter destination number $\rightarrow$ Call client.makeCall(callee). | Call state transitions: connecting $\rightarrow$ ringing $\rightarrow$ connected. Two-way audio works upon answer. | [ ] |
| TC-OUT-02 | Callee 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-03 | Callee Unreachable (480) | Call an offline or unregistered extension until timeout. | Call disconnects with status code 480 Temporarily Unavailable. | [ ] |
| TC-OUT-04 | Invalid Number (404) | Call an invalid/non-existent extension (e.g. 99999). | Call terminates immediately with status code 404 Not Found. | [ ] |
| TC-OUT-05 | Originator 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 ID | Test Scenario | Steps to Execute | Expected Result | Pass/Fail |
|---|---|---|---|---|
| TC-IN-01 | Foreground Incoming Call | Call this extension while app is open in foreground. | Incoming call UI pop-up appears immediately with Caller Name & Number. | [ ] |
| TC-IN-02 | Background / 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-03 | Background / 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-04 | Answer Incoming Call | Tap "Accept" / "Answer" on incoming call UI. | Call connects, microphone un-mutes, clear two-way audio starts, call timer counts up. | [ ] |
| TC-IN-05 | Decline Incoming Call | Tap "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-06 | Caller Cancels Before Answer | Caller 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 ID | Test Scenario | Steps to Execute | Expected Result | Pass/Fail |
|---|---|---|---|---|
| TC-ACT-01 | Mute / Unmute | Tap Mute button during active call (client.mute() / client.unmute()). | Callee audio is muted (caller hears silence); tapping unmute restores audio immediately. | [ ] |
| TC-ACT-02 | Speakerphone Toggle | Tap Speaker button (client.setSpeaker(true/false)). | Audio route switches cleanly between Loudspeaker and Earpiece. | [ ] |
| TC-ACT-03 | Bluetooth Headset Routing | Connect a Bluetooth headset during active call. | Audio switches automatically to Bluetooth; onAudioRouteChanged event is emitted. | [ ] |
| TC-ACT-04 | Hold / Unhold | Tap Hold button (client.hold() / client.unhold()). | Remote party hears hold tone/music; tapping unhold resumes two-way conversation. | [ ] |
| TC-ACT-05 | DTMF Tones / IVR | Open keypad and press digits 0-9, *, # (client.sendDTMF(...)). | DTMF tones (RFC 2833) sent successfully (e.g. interacting with an automated IVR menu). | [ ] |
| TC-ACT-06 | Call 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-07 | Normal Hang Up | Tap End Call button (client.hangup()). | Active call terminates immediately on both sides, timer stops, UI resets. | [ ] |
Section E: Network Handover & Edge Casesโ
| Test ID | Test Scenario | Steps to Execute | Expected Result | Pass/Fail |
|---|---|---|---|---|
| TC-NET-01 | Wi-Fi to 4G/5G Handover | Toggle Wi-Fi OFF during active call to force switch to cellular data. | Audio stream recovers seamlessly without call dropping. | [ ] |
| TC-NET-02 | GSM Cellular Call Interruption | Make 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-03 | Microphone Denied Handling | Revoke 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 port5060(UDP/TCP) or5061(TLS) is not blocked by local Wi-Fi or firewall. - Domain check: Enter clean domain (e.g.
sip.company.vn), do not includehttp://orwss://.
๐ด 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
.p12VoIP 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 withpriority: "high"? - On Android 13/14/15: Check
POST_NOTIFICATIONS. For fullscreen incoming calls, verify the host app declaresUSE_FULL_SCREEN_INTENTand thatgetFullScreenIntentStatus()isgranted; 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".
- Is FCM message sent as
๐ด If TC-IN-03 causes iOS app crash immediately:โ
- PushKit Policy: Ensure
CXProvider.reportNewIncomingCallis 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
ACKpacket from the mobile client after200 OKdue 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)
===================================================================