- Ya
- 26 Aprili 2026, 17:00 UTC
- Mwandishi
- kamo
- Ahadi ya
- 733cff4
The softphone hook used to instantiate ringcentral-web-phone unconditionally, which threw on any FreePBX credential shape because that SDK is hard-coded to RingCentral's WSS provisioning format. - New PhoneSdk interface defines a provider-agnostic surface (start, stop, invite, **************** plus a PhoneSdkSession with **************** - RingCentralPhoneSdk wraps ringcentral-web-phone, preserving the existing RC behaviour. - SipJsPhoneSdk wraps sip.js (UserAgent + Registerer + Inviter/Invitation), attaches remote audio via the negotiated peer connection, supports in-dialog re-INVITE for hold/unhold, and refers for transfer. - createPhoneSdk picks the adapter from creds.provider (RING_CENTRAL, FREE_PBX, KAMO_PBX). - useSoftphone now drives the unified SDK and surfaces the real SDK error text in registrationError instead of the generic 'Phone SDK failed to initialize' string. - Adds sip.js@0.21.2 dependency.