WonderCX Operations & Administration Guide

This guide covers system prerequisites, service startup, telephony configuration, network architecture, daily operations, and disaster recovery.


Contents

What runs where

Component Where it runs How it starts
WCX Server A trusted desktop computer that stays running and awake Launch the Server app; it owns the PostgreSQL database, routing, provider workers and authenticated Client access
WCX Client Each Agent/operator desktop Launch the Client app and connect to the Server; it has no local operational database
Built-in phone engine (SoftPBX) The Server computer, in its own process started by the Server Deploy/start through Settings → PBX; the Server restarts the process if it exits unexpectedly
Managed FreeSWITCH The Server computer, separately from the Electron app Explicitly deploy/start through Settings → PBX
Native Agent phone The assigned Agent's computer Softphone → Connect assigned native phone; the app starts its bundled Baresip helper
External WebRTC PBX, if used instead Customer-managed telephony infrastructure Operated separately; configured through Settings → Telephony provisioning
Mail, messaging/social, carrier and optional AI services Customer-owned providers Enabled individually in WonderCX; no WonderCX cloud is required

The PBX engine and Agent phone are different dependencies: FreeSWITCH is the PBX; Baresip is the phone. Installing the ordinary WCX Server does not install either preview automatically. Starting Electron does not deploy or start FreeSWITCH. Starting FreeSWITCH does not start the WonderCX Server or provider workers.

The Server is a desktop application, not a Windows service or headless Linux daemon. Closing its window normally leaves it in the tray. Quitting, logging out, sleeping or shutting down its computer interrupts application access and workers. The independently started PBX has the platform lifecycle described below.

Dependency checklist

Installed applications

Requirement Needed by Notes
Matching WCX Server/Client installer and CPU architecture Every installation General targets: 64-bit Windows 10/11, macOS 13+ Intel/Apple Silicon (required by patched Electron 44), or supported desktop Linux. Prefer an OS still supported by its vendor. Managed Windows PBX is x64 only
Desktop session, at least 4 GB RAM and 500 MB app disk space Server and Client These are base installation requirements, not workload sizing. Reserve additional space for PBX/runtime files, media, database, backups and build caches
Functional OS credential store Server Required for encrypted secrets/audit keys: Windows OS protection, macOS Keychain, or a supported Linux desktop secret store. Do not substitute plaintext storage or copy encrypted files to an unrelated OS account
Stable LAN address/DNS, time synchronization and trusted TLS setup Shared Server and Clients Server time affects certificate validity, TOTP and signed callbacks. LAN Client access requires TLS
Default microphone/speakers/headset and microphone permission Computers using voice Native preview uses default OS devices. Test physical devices separately
Approved network/firewall policy Shared access, PBX and integrations The installers do not create PBX firewall rules or router mappings

Packaged WonderCX applications include all required runtime dependencies, and the Windows and macOS Server installers include PostgreSQL 16. On Linux the Server uses the standard distribution postgresql-16 package. Client workstations connect securely to the Server and require no separate local database server. Native Windows phone builds use standard operating system libraries.

Linux DEB dependencies are libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1 and libsecret-1-0. RPM equivalents are gtk3, libnotify, nss, libXScrnSaver, libXtst, xdg-utils, at-spi2-core, libuuid and libsecret. A working display and secret-store session are still necessary. AppImage may additionally require compatible FUSE libraries or --appimage-extract-and-run.

Source development and standard installer builds

Install these only on the build/development computer:

Dependency Requirement
Node and npm Node 22.16+, preferably maintained LTS; npm 10+
Git Access to the private repository; clone using your authorized account, without putting tokens in commands or documentation
npm packages npm ci from the checkout root; package-lock.json is the exact dependency resolution
Build space/network Approximately 3 GB for the base build, more for native engines/archives/installers; initial dependency downloads need Internet access
Native packaging host Build Windows installers on Windows and macOS installers on macOS; see host matrix
Linux packaging tools, if building Linux Debian/Ubuntu: build-essential rpm fakeroot libarchive-tools; RHEL-family: rpm-build gcc-c++ make libarchive
Release credentials, if distributing Publisher signing keys/certificates and macOS notarization/installer signing as applicable; never store private keys/passwords in the repository

npm ci installs all JavaScript dependencies; do not install these individually or globally:

Group Packages and purpose
Application/UI react, react-dom
Email imapflow, mailparser, nodemailer
Certificates and WebRTC selfsigned, sip.js
Desktop/build tooling electron, electron-builder, typescript, vite, @vitejs/plugin-react
Styling tailwindcss, postcss, autoprefixer
Development process tools concurrently, wait-on
Type declarations @types/node, @types/react, @types/react-dom, @types/mailparser, @types/nodemailer

Declared supported versions are in package.json; exact resolved versions are in package-lock.json. Do not upgrade dependencies merely to start the app.

Additional PBX and native-phone dependencies

Target Additional requirements
Managed PBX on Windows Optional choice in the standard all-users Windows x64 Server installer; built-in Windows PowerShell/system service tools; administrative approval for installation/service changes; exact official FreeSWITCH 1.11.3 x64 MSI downloaded only for the local choice
Windows native phone build Native Windows x64 build host for this PBX deployment; Visual Studio 2022 C++ tools/Windows SDK, CMake 3.24+, Windows tar, dumpbin, static OpenSSL 3 for the matching architecture using /MT, and its license notice
macOS PBX development Interactive macOS arm64/x64 session, accepted Xcode/Command Line Tools prerequisites, Homebrew, exact FreeSWITCH 1.11.3, its development headers/libraries and English sound/language assets
macOS native Server installer PBX Explicitly approved local Homebrew choice in the standard PKG (also inside the Server DMG); Internet, extra dependency/build space, supported macOS/Homebrew and possibly Apple Command Line Tools; no dependencies for deferred/external choices
macOS downloadable PBX preview Explicit download-enabled Server package, Internet access to publisher/CDN HTTPS hosts, sufficient private runtime/media disk space and the runtime's recorded minimum macOS version; no Homebrew, Xcode or Node installation on the destination
macOS native phone build CMake 3.24+, Homebrew openssl@3, Apple compiler/SDK and matching native CPU architecture
Agent desktop Matching native-SIP preview Client; no FreeSWITCH installation or build tools on the Agent
IVR, if configured Every named local prompt: mono 16-bit PCM WAV, 8 or 16 kHz, at most 16 MB/file and 64 MB total
External telephone calls Approved carrier contract, fixed IPv4 carrier endpoint, inbound source CIDRs, authentication, DID/caller-ID/dialing/emergency policy and a suitable controlled network

The native build pins Baresip 4.12.0/libre 4.12.0 and verifies source archive hashes before extraction. The managed PBX requires these FreeSWITCH modules:

mod_console       mod_logfile       mod_event_socket  mod_sofia
mod_commands      mod_dptools       mod_dialplan_xml  mod_callcenter
mod_voicemail     mod_conference    mod_sndfile       mod_native_file
mod_tone_stream   mod_say_en         mod_xml_cdr

English voicemail XML (sounds.xml, voicemail_ivr.xml) and English Callie 8 kHz audio are required. The Windows pinned MSI supplies the managed runtime assets. macOS preparation inventories installed libraries and sounds; it can build the pinned mod_callcenter source if that one module is absent. Other missing modules fail explicitly. Do not replace modules with another release or edit manifests to make mismatched assets pass.

Start WonderCX without a managed PBX

FreeSWITCH is optional. Use this path for chat/email/messaging, general application work or an independently operated WSS/WebRTC PBX.

  1. Install and launch WCX Server on the workspace computer. For source development, use the commands below and select the Server role.
  2. Create the first Administrator locally. Use sample data only in a disposable evaluation workspace; sample accounts require password changes.
  3. Create operator/Agent users and the required contact-center queues/channels.
  4. For additional computers, use Application connection / Connection → Host and client, set a reachable bind address/port and configure TLS. Default application port is 8787. Restart to apply.
  5. Install/launch WCX Client on Agent computers. Enter the Server's reachable HTTPS origin and its independently verified SHA-256 fingerprint when using a self-signed certificate. Sign in with a Server-created account.
  6. Configure only the integrations you intend to use. Do not expose the private application RPC listener to the Internet.

Source commands, from the repository root:

npm ci
npm run dev

For a built source launch instead of hot reload:

npm run launch

These are alternative launch modes; do not run multiple Server processes against one workspace. No special environment variable or separate database command is needed. Full LAN certificate/firewall instructions are in Host and Client setup.

Prepare FreeSWITCH on macOS for development

This is the available local development path when no Windows host is present. It does not produce a Windows installer or qualify Windows behavior.

From a native macOS checkout:

npm ci
brew install cmake openssl@3 freeswitch
"$(brew --prefix freeswitch)/bin/freeswitch" -version

Confirm the engine reports 1.11.3. Homebrew's currently available version may change; if it is different, preparation intentionally refuses it. Obtain the approved matching runtime through your organization's build process rather than weakening the version/hash checks.

Prepare the managed engine and build the real-audio Agent phone:

npm run prepare:pbx:mac
npm run build:native-sip
npm run launch:pbx:mac

prepare:pbx:mac builds the app first and creates .native-build/darwin-<arch>/pbx-runtime. It does not start a service. launch:pbx:mac enables WCX_PBX_MAC_PREVIEW=1 only for this source launch. Choose Server, then configure/deploy/start using the next sections.

Do not use brew services start freeswitch, launch a stock freeswitch daemon, or create a parallel launchd job for the managed deployment. WonderCX must bind the exact service process, arguments, runtime and configuration before releasing its control credential. An unrelated engine on the expected port is rejected.

Preparation refuses to overwrite an existing runtime directory. Before changing Homebrew FreeSWITCH/libraries/sounds, stop the managed engine when idle, preserve the existing runtime and deliberately prepare a replacement. A dependency upgrade can invalidate the recorded library aliases/hashes. The current runtime still depends on this Mac's Homebrew libraries and sounds; it is not self-contained or redistributable.

Optional isolated integration checks, separate from normal startup:

npm run build:native-sip:test
npm run verify:pbx:mac
npm run verify:pbx:mac:secure

The synthetic test helper is separate from the production-audio phone. These checks exercise disposable loopback services/phones, not your configured PBX, microphones or carrier. Allow several minutes; real no-answer timers are exercised. See build evidence boundaries.

Set up the Mac downloadable PBX preview

For standard native PKG/DMG setup, use the optional Homebrew installer choices. The archive-download flow described here instead requires the explicit --mac-pbx Server preview with a publisher-reviewed HTTPS descriptor and native runtime archives. See publisher/build prerequisites. An ordinary Server/Client installer or environment variable does not enable this flow. Do not bypass macOS trust warnings; developer ad-hoc packages are not signed/notarized customer releases.

  1. Install the branded DMG or native PKG and open WCX Server from Applications. Create the workspace Administrator and sign in locally, completing organization SSO/MFA or a required password change if applicable.
  2. In Connect your phones, leave Download and set up FreeSWITCH on this Mac unchecked for an external PBX, then supply the domain, transport and explicit SIP proxy/port or WSS URL. No shared Agent password is collected and no engine is downloaded.
  3. For a local engine, select the checkbox, inspect the publisher host/size/architecture/minimum OS, choose an actual LAN IPv4 and enter the SIP domain and canonical allowed Agent networks. Review licensing, network and emergency-routing policy before authorizing.
  4. The reviewed choice is OS-encrypted in the Server's PostgreSQL database. Setup persists a configuring state before download, verifies the pinned archive and every extracted file, prepares TLS/SRTP, saves the draft, deploys and starts the private user service. Current Administrator authorization, licensing and audits remain mandatory throughout.
  5. Continue to the workspace while setup runs, or open Settings → PBX to inspect its status. Add actual Agent users/extensions and approved carrier settings only after internal acceptance. No firewall/NAT rules, carrier routes or recording settings are created by setup.

Choose Set up later to defer without starting a download. Open Settings → PBX → Set up this Mac's PBX connection to review a choice later. This only initializes an absent setup profile; later operational changes use the normal reviewed draft/service controls, not repeated onboarding.

The verified engine is in the private Server profile's pbx-macos-runtime directory. Configuration, logs and retained media remain in pbx-macos-preview; keeping the existing data path avoids moving source-preview histories. The service runs as the signed-in macOS user, not root, and is not a security boundary against that user or administrators. It survives desktop Server restarts, not OS logout; it does not automatically start at login or restart after a crash.

On download/verification failure, setup remains review-required and no draft/service change occurs before dependency preparation succeeds. On later failure, inspect both the persisted draft and actual service. After correcting the cause, Download / verify Mac runtime explicitly rechecks/downloads dependencies only; then review/save the draft and deploy/start manually. It never resets setup, overwrites an existing engine or blindly retries service operations. An interrupted initial setup is not automatically replayed after restart.

If a runtime exists but is incomplete/changed, preserve that exact directory and diagnostics. Stop and inspect the user service before deliberately moving the damaged engine aside and requesting preparation again; never edit hashes or remove a live runtime. Private .pbx-download-<uuid> staging directories can remain after process/power interruption; they are not active engines and are not automatically promoted. Inspect and retire only confirmed orphan staging paths. Removing/reinstalling the app preserves runtime, settings and media.

Reserve up to the policy's 512 MiB compressed download plus 512 MiB expanded runtime and temporary staging, in addition to call media/backups. Actual archives may be much smaller. A runtime built against a newer macOS SDK/dependency target may require a newer OS than the base application. Intel and clean-machine distribution, publisher trust, physical audio and carrier/soak qualification remain outstanding; synthetic ARM64 service checks do not certify them.

Prepare the Windows PBX preview

Server startup fails with EPERM: operation not permitted, fsync: this is a workspace-initialization failure, not a FreeSWITCH configuration error. Older builds opened a prepared SQLite database read-only before flushing it; Windows requires a writable handle for that operation. Use a build containing the writable-handle fix and rebuild with npm run build before npm start in a source checkout. Keep the existing workspace, OS-encrypted audit key and any prepared .tmp recovery copies; do not delete the profile or regenerate the audit key to work around this error. The corrected path still requires the flush to succeed before publishing the database.

Perform this on an actual Windows x64 build/test host, not on this Mac. Use a dedicated trusted Windows account/profile. The general app's ARM64 installer is not a managed-PBX deployment target.

For the standard Windows x64 Server, including its optional PBX setup, without a local native phone:

npm ci
npm run typecheck
npm test
npm run dist:win

Agent computers separately need the native-SIP preview Client. On the Windows build host, open a matching Visual Studio developer terminal with the compiler, CMake and dumpbin available. Set the actual static OpenSSL root:

$env:OPENSSL_ROOT_DIR = 'C:\build-tools\openssl-static'
npm ci
npm run dist:win:native

Provide the OpenSSL license at <root>\LICENSE.txt, <root>\share\openssl\copyright, or through OPENSSL_LICENSE_FILE. dist:win:native builds/verifies the helper and packages both native-phone roles. To produce a Server with both PBX service control and that already verified phone:

node scripts/package.mjs server --native-sip --win nsis --x64

Keep WCX-Server-Setup-<version>-win-x64.exe from release/server/ and the appropriate Client installer from release/client/. Standard dist:win, package:win, CI, build-all and Windows x64 native-SIP Server packages include the FreeSWITCH choice page. dist:win:pbx and explicit --pbx remain compatibility paths, not requirements. Rebuild older installers; renaming an old executable cannot add the page. Server builds still carry unqualified PBX metadata: automatic publishing/production verification remain blocked, and CI keeps these installers as artifacts rather than release attachments. Keep native-SIP and ordinary phone builds separately when distributing them; their role/version filenames remain the same.

Run the standard branded all-users Windows x64 Server installer with Windows administrator approval. The default Set up PBX later choice requires no domain, endpoint, Agent networks or PBX approval. It records an explicit deferred choice in protected Server settings, downloads no FreeSWITCH and makes no PBX service changes. The Server can open without an installer PBX profile being applied; configure telephony later in Settings. Missing or corrupt installer settings still fail verification rather than silently deferring.

To configure during installation, choose Install FreeSWITCH on this Server (preview) with your real SIP DNS domain, Server LAN IPv4 and comma-separated canonical Agent CIDRs; review and authorize automatic setup. Alternatively, choose Connect an existing PBX and enter its SIP domain and sip:host:port with TLS/TCP/UDP, or complete wss://host/path endpoint for WebRTC. Both configured choices still require valid parameters and explicit approval. No Agent password is requested in setup; add separate Agent credentials after users exist. Existing installer settings remain preserved on upgrades, including a deferred choice; existing workspace PBX configuration is not disabled or replaced. The external choice does not download FreeSWITCH. Client and Windows ARM64 packages do not gain the Windows helper. Mac Server has its separate native Homebrew setup; Linux remains unchanged.

Only the built-in choice downloads this exact engine dependency during setup; no engine MSI or macOS/Linux dependency installer is bundled:

Field Pinned value
Filename FreeSWITCH-1.11.3-Release-x64.msi
Upstream https://github.com/signalwire/freeswitch/releases/download/v1.11.3/FreeSWITCH-1.11.3-Release-x64.msi
Size 168300544 bytes
SHA-256 f5649e33ad46be2ebdb1d98019bd149c86519f0dca9f47fb881207045203a34d

Review upstream/component licensing before setup. Setup silently uses msiexec /a ... /qn ... /norestart to administratively extract the managed runtime; it does not install the MSI's stock service. The verified MSI, extracted image and runtime inventory are retained under administrator-owned %ProgramFiles%\WonderCX\PBX\prepared-1.11.3. Existing active engines, configurations, recordings and services are not changed by preparation.

First built-in installation requires Internet access to github.com and its HTTPS release-asset hosts, with at least 2 GiB free space. There is no offline skip for the built-in choice, local-MSI picker or certificate/hash bypass. A fully verified existing cache can be reused without downloading again. Download, size/hash, disk-space or extraction failure stops setup with a nonzero status; inspect %ProgramFiles%\WonderCX\PBX\setup-failure.json for the failed stage (administrator access may be required), correct the cause and rerun the matching installer. A cache with changed files is rejected rather than repaired over it: preserve the exact prepared-1.11.3 directory for investigation and have an administrator move it aside before retrying. An interrupted unpublished .download-<id> directory contains only setup artifacts, not customer data; an administrator can inspect and deliberately clean that exact path. An old failure receipt is historical and does not override a later successful installer exit.

Installer choices are stored in administrator-owned %ProgramFiles%\WonderCX\PBX\installation.json (installations from earlier builds may still have installation.sqlite, which is read until the next setup write), outside the replaceable application directory. This file holds only shared non-secret network choices or an explicit deferred choice; normal users have read-only access. Upgrades/repair preserve it even if new command-line choices are supplied. A stored local choice verifies/re-prepares its engine cache; stored external and deferred choices perform no download. Active customer configuration and services are not changed by repair.

For silent installation on a fresh Server, substitute actual reviewed values:

# Install without PBX setup (also the default when /PBX is omitted):
.\WCX-Server-Setup-<version>-win-x64.exe /S /PBX=deferred
# Local built-in PBX (download and verify, then apply after local Administrator sign-in):
.\WCX-Server-Setup-<version>-win-x64.exe /S /PBX=local /PBXDOMAIN=pbx.office.example /PBXENDPOINT=192.168.50.10 /PBXNETWORKS=192.168.50.0/24 /PBXAPPROVED=1
# Existing WebRTC PBX (no FreeSWITCH download):
.\WCX-Server-Setup-<version>-win-x64.exe /S /PBX=external /PBXDOMAIN=pbx.office.example /PBXENDPOINT=wss://pbx.office.example/ws /PBXTRANSPORT=wss /PBXAPPROVED=1
# Native SIP alternative: /PBXENDPOINT=sip:192.168.50.20:5061 /PBXTRANSPORT=tls

/PBXAPPROVED=1 represents review/authorization, not permission to bypass UAC. Fresh silent setup with /PBX=local or /PBX=external without required values/approval fails; deferred setup needs neither. Domain, endpoint and network-list limits are 128/256/192 ASCII characters; spaces, embedded credentials, quotes, queries and fragments are not accepted. Native TCP/UDP are for trusted LANs and are not encrypted; native phones need the explicit native-phone build.

Deferring setup does not prepare a managed engine. To add built-in FreeSWITCH later, an administrator must review licensing and run the matching installed pbx-service.ps1 helper with -Operation prepare to download and verify the pinned runtime, then use the normal reviewed draft/deploy/start controls in Settings. Do not install a stock MSI service or delete protected installer settings to force onboarding.

After workspace initialization, the first completed local Administrator sign-in (password/MFA or organization SSO/MFA, after any required temporary-password change) starts approved built-in setup: verify the actual LAN interface, generate TLS/SRTP identity, save the empty baseline, deploy and start WCXPBX using normal authorization/license/audit/elevation checks. It adds no Agent extensions, trunks, carrier routes, firewall rules or recording permissions. Existing PBX drafts/deployments/phone assignments are never replaced automatically. Settings shows durable pending, configuring, complete, external or review-required status. Failure/interruption is not automatically retried: inspect the status, service, journal and protected diagnostics, correct the cause, then use the normal reviewed draft/deploy/start controls. Do not assume rollback.

Subsequent configuration/deployment/start uses WonderCX as below. Deployment revalidates the protected cached MSI and complete engine inventory before publishing private configuration under WCXPBX; no MSI browsing is required. A manually installed stock service is not a supported substitute. macOS/Linux managed dependency installation is not added by this Windows-first setup.

Configure the PBX

Sign in as an Administrator with users.manage and channels.manage, then open Settings → PBX. A connected Administrator can edit the Server's draft, but deployment/start/stop and local media/conference operations belong on the Server.

Save, deploy and start remain distinct actions after the one-time approved built-in setup. A saved draft alone is not a running PBX. Editing an Agent assignment in the draft does not change the deployed credentials.

Start with internal calls

Use a controlled LAN and two test Agents before configuring any carrier. Replace these illustrative values with addresses actually assigned to your network:

Field Example / meaning
PBX DNS domain pbx.example.internal; resolve it to the Server from phone computers
Bind IPv4 192.168.50.10; an actual interface address on the PBX computer
Advertised IPv4 192.168.50.10; reachable SIP/media address on this controlled LAN
Agent phone encryption Mandatory TLS/SRTP (private PBX CA) for the encrypted Agent path
Agent SIP port 5061 for this TLS example; the selected port becomes TLS-only, not an additional listener
Carrier SIP port 5080; distinct from Agent/control/media ports, even with no trunk initially
RTP start/end 16384 / 16484; even start and a valid non-overlapping range
Agent CIDRs 192.168.50.0/24; add 127.0.0.1/32 only if same-host phones also need access
Extensions Enabled 1001 and 1002, assigned to different active WonderCX Agents
Outbound carrier permission Disabled during internal setup
Trunks and inbound/outbound routes Empty during internal setup

For a same-Mac-only test, use 127.0.0.1 for bind/advertised addresses and 127.0.0.1/32 for Agent scope; remote Agents cannot reach that configuration. The default loopback draft is intentionally not LAN-ready.

Create a WonderCX contact-center queue supporting Voice. In PBX → Network, select it as the Default Voice tracking queue to opt into Server-owned offered/answered/unanswered call accounting on the next reviewed deployment. Override it per extension or PBX queue when teams/skills require different destinations. A PBX queue number remains separate from the stable application queue ID. Existing unmapped deployments keep their Agent-selected tracking until explicitly changed. See call tracking and recovery for limitations and privacy handling. Once direct extension calls work, optional PBX features can be added:

Feature Configuration
Voice queue Unique number such as 2000, enabled member extensions, ring strategy, wait bound and an existing non-looping overflow destination
IVR Unique number, local prompt filename such as welcome.wav, distinct single-DTMF digits and existing internal targets
Voicemail Enable per extension; generated mailbox PIN, retrieval by dialing *98
Conference Unique number, privately supplied 6–12 digit participant PIN, participant limit
Recording Explicit opt-in on the relevant inbound route, with consent and retention approved first

WonderCX generates extension passwords and eight-digit voicemail PINs. Do not reuse FreeSWITCH's sample credentials or create stock directory users. Generated Agent provisioning needs no password export. Export private credentials is only for an explicitly reviewed standalone device/operator use; its output is plaintext and must go to a private destination.

New deployments enable a bounded 60:200 millisecond RTP jitter buffer before answering *98 mailbox retrieval. This keeps RFC4733 terminator retransmissions on the normal receive path across mailbox prompts instead of the pinned engine's raw-socket flush path, which reproduced duplicate # input with SRTP. It adds buffering only to retrieval, not ordinary calls or deposits, and does not change PIN validation or login-attempt limits. Redeploy the saved draft to apply the correction; existing deployed files are not silently changed. This macOS compatibility correction does not qualify Windows or physical devices.

Check the draft acknowledgment and choose Save PBX draft. Review the saved revision before deployment. Concurrent/stale edits reject; reload rather than overwriting another Administrator's changes.

Encryption and certificates

Mandatory TLS/SRTP generates a WonderCX-managed private CA and PBX server certificate for the configured identity. Assigned native phones receive only public CA trust and their own account; private keys stay on the Server/protected deployment. Verify the displayed fingerprint/expiry. This CA is separate from the HTTPS certificate used by WCX Clients to reach the application Server.

Saving reuses a valid server identity with more than seven days remaining, otherwise renews it. Certificate renewal or domain/address changes still require reviewed save, safe stop, deployment and start; there is no unattended renewal/deployment. Do not bypass hostname/trust failures. Carrier legs remain plaintext UDP/TCP/RTP, and PBX mixing/voicemail/recordings are not end-to-end encrypted.

For standard WebRTC Clients, use PBX → WebRTC to enable the direct WSS listener and import your separately issued, already Agent-trusted certificate chain/key. Select WebRTC per extension, then save, stop, deploy and start. WSS uses the PBX DNS domain (not an IP substituted by the Client), the selected TCP port and DTLS-SRTP audio. Imported keys remain encrypted in the Server database and private deployed PEMs; browser trust is never installed or bypassed. Allow only the reviewed Agent networks and media path. No default STUN/TURN service is contacted. Optional ICE & NAT settings require reviewed endpoints, a TURN REST shared secret when using TURN, and separate approved media-candidate CIDRs. See managed WSS configuration and reviewed ICE.

Add a carrier only after internal acceptance

Obtain the carrier's fixed IPv4 endpoint, UDP/TCP transport/port, registration or IP-authentication contract, exact inbound source CIDRs, assigned DIDs, authorized caller ID and provider-approved test destinations.

Configure Trunks, then exact-DID Inbound routes and bounded numeric Outbound routes. Registration requires the carrier username/password; IP-authenticated non-registering trunks leave those blank. Enable outbound permission only on extensions authorized to use the reviewed routes. Longest access-prefix match wins; confirm strip/prepend and digit bounds before test calls.

Inbound DID matches and the carrier network ACL must both be correct. Do not permit arbitrary SIP sources, assume public NAT traversal works, or point an unrestricted route at a carrier. Optional managed WSS and reviewed browser STUN/TURN are not carrier transport. Keep Server/TURN clocks synchronized, independently verify WSS/TURN TLS trust and qualify two-way browser audio, relay-only routing, long-call credential expiry and actual NAT/firewall mappings. Temporary TURN credentials last one hour and are refreshed before SDP negotiation, not by restarting established ICE automatically. IPv6, automatic router/firewall configuration and carrier TLS/SRTP remain unavailable. Emergency policy must use carrier-approved test procedures, never unscheduled emergency calls.

Deploy and start FreeSWITCH

On the local Server, in Settings → PBX:

If automatic installer setup already shows a deployed revision with phase running, do not start it again. Use Inspect PBX service to check readiness; an already-running message after a second Start request is not a startup failure. Service controls explain unavailable lifecycle actions: save a draft before deployment, start only a confirmed stopped deployment, and stop when idle before redeployment or removal. Recovering a previous deployment only creates a draft and does not change the running service.

  1. Select Deploy saved revision. Review the exact revision and acknowledge the operation.
  2. On Windows, deployment uses the engine prepared by PBX Server setup; select the IVR prompt directory only if needed, then approve the trusted Windows elevation prompt. On macOS, deployment uses the verified downloaded or prepared development runtime and prompts without elevation.
  3. Wait for confirmed deployment. Deployment leaves the engine stopped.
  4. Select Start deployed revision, review/acknowledge, and approve elevation on Windows.
  5. Wait for confirmed readiness. Listener recovery may require up to 100 seconds; do not dispatch another start because the UI is still waiting.
  6. Under Engine connection, choose Inspect PBX service. Check the pinned version, matching deployed revision, active-call count and both wcx-internal and wcx-trunks profiles.
  7. Confirm that the observer is healthy and managed provisioning is available before connecting Agents.

Control is private IPv4 loopback: Windows 8021, macOS 18021. WonderCX proves the exact managed peer/runtime/configuration identity before sending its control password. Never expose the Event Socket remotely, paste the password into a terminal, use stock/default credentials, edit generated XML, or start another engine to make inspection appear healthy.

Platform Service behavior
Windows WCXPBX, under NT SERVICE\WCXPBX. Successful explicit start enables automatic service startup. Explicit idle-stop stops it and sets manual startup. Service changes require UAC; ordinary Agents do not
macOS development Per-workspace user launchd job, com.wondercx.pbx.preview.<digest>. Survives closing the desktop Server while logged in, not logout; no login auto-start or automatic crash restart

Closing the desktop Server does not safely stop the PBX. Conversely, a service still running while the Server is absent does not establish healthy observation, provisioning or contact-center tracking.

Connect Agent phones and check calls

  1. Install the matching native-SIP preview Client on each Windows Agent PC, or use the explicitly enabled native helper in the macOS source-development launch.
  2. Connect to the WCX Server using its application HTTPS address; this is not the SIP proxy/domain.
  3. Sign in as the active Agent assigned to a deployed extension.
  4. Set the OS default microphone/speaker and allow microphone access.
  5. Open Softphone → Connect assigned native phone and select the WonderCX Voice queue for tracking. Do not manually create a competing external phone assignment for this managed extension.
  6. Wait for actual registration, not just command acceptance. Change presence to Ready when available to receive managed queue calls.
  7. Place a controlled internal call from 1001 to 1002, answer and check two-way audio, mute, hold/resume, DTMF and hangup. Finish the resulting interaction through normal wrap-up/disposition.
  8. Check configured queue/overflow, IVR, voicemail and conference paths separately before introducing a carrier.

Managed queue membership needs both a registered phone and an active/authorized Ready Agent. An unassigned standalone extension follows its independent availability rules. Three completed unanswered queue offers move the member to On Break; a ringing offer may finish its up-to-60-second timeout after the configured queue wait expires.

The native phone supports one G.711 customer call and one consultation with a matching helper. Blind transfer to managed internal destinations requires terminal REFER confirmation; ringing is not completion. With deployed Server tracking, incoming and outgoing blind transfers retain the customer interaction and update ownership only from answered Agent legs; outgoing recipients also require the retained engine transfer-source chain. For native attended transfer, stop when idle, deploy the consultation-aware revision and start it explicitly; a helper upgrade or restart alone does not enable consultation on an older deployment. Consult first holds the customer and calls an assigned Agent extension. Complete transfer waits for established consultation and uses REFER/Replaces; Cancel consultation and resume customer waits for confirmed closure/resume. Rejecting a consultation also requests customer resume. Check displayed hold state and restored audio on failures. Consultation answers cannot move ownership: the Server requires the actual recipient/customer bridge, or matching retained last-bridge evidence during recovery. Lost terminal confirmation stays uncertain and must not be retried automatically. The original Agent leg ending does not complete a still-active customer call. A rejected blind-transfer destination bridge returns a negative REFER result and reconnects the original parties; confirm restored audio before trying another transfer. Managed browser consultation uses the same new-deployment capability and customer-bridge ownership boundary. Its Server resolver accepts only the signed-in Agent's active Call-ID and current deployed revision; the browser attaches the returned source only to the consultation INVITE. Cancellation/rejection requests confirmed customer resume. A timeout or uncertain REFER transport failure blocks retry and cancellation until reconciled; do not treat ringing, a sent request or a closed local dialog as transfer completion. Local phone recording and automatic NAT traversal remain unsupported. Local Server Administrators have separate reviewed live conference controls.

Ports and firewall planning

Use source-restricted rules reviewed by your network administrator. Bind addresses, reachable destinations and advertised media addresses are different concepts; never give Clients 0.0.0.0 as a destination.

Traffic Default/example Who may connect
WCX application HTTPS/RPC TCP 8787 Approved Client subnets to Server; no public RPC exposure
Agent SIP, plaintext draft Configured port, default 5060, UDP/TCP Approved Agent CIDRs only; plaintext signaling/media require a controlled network
Agent SIP, mandatory TLS/SRTP Configured Agent port over TCP/TLS, e.g. 5061 Approved Agent CIDRs; plaintext registration is not an alternative
Carrier SIP Configured trunk port, default 5080, UDP/TCP as contracted Approved carrier networks only
PBX RTP/SRTP Configured UDP range, default 16384–16484 Approved phones and carrier media networks, including the necessary return path
PBX Event Socket 127.0.0.1:8021 Windows / 127.0.0.1:18021 macOS Local managed Server only; never forward/open remotely
IMAP/SMTP Provider-specific, commonly TCP 993, 465/587 outbound Server to configured mail provider
Twilio callbacks Configured local listener, default 8765 Approved HTTPS reverse proxy to Server listener
Website chat Configured local listener, default 8766 Approved HTTPS reverse proxy; exact allowed website origins
Direct-provider callbacks Fixed 127.0.0.1:8768 HTTPS reverse proxy to exact /channels/<account-UUID> paths
Optional ClamAV Loopback TCP, normally 3310 Server-local scanner access only
Provider APIs, reviewed flow/AI/webhook requests Normally outbound HTTPS 443 Explicit configured/approved destinations
Managed WebRTC, if explicitly enabled Selected WSS TCP port (default 7443) and reviewed RTP UDP range Allowed Agent networks only; DNS identity and existing OS certificate trust required
Reviewed browser STUN/TURN, if explicitly configured Outbound access to the exact approved STUN/TURN hosts, ports and transports; relay egress must reach reviewed PBX RTP ports Separate media-candidate ACL, no signaling ACL expansion; TURN TLS requires existing trust, and relay service/egress/firewall rules are administrator-owned
External WebRTC PBX instead of the managed PBX Provider WSS and media ports As required by the independently configured PBX

No wildcard Internet SIP rule, router port-forwarding recipe, SIP ALG change or arbitrary stock FreeSWITCH firewall policy is implied. The managed preview is designed for controlled IPv4 networks. Review carrier media ranges separately from its signaling endpoint. The application HTTPS certificate/fingerprint and managed PBX private-CA trust are independent.

Desktop organization sign-in

Optional generic OIDC works with customer-managed Okta, Keycloak or compatible HTTPS issuers. It is disabled by default and needs no WonderCX cloud. The portal has a separate confidential web registration; do not reuse its client secret or assume portal configuration enables desktop SSO.

  1. Register a public native application for authorization-code flow, mandatory S256 PKCE, openid scope, RS256-signed ID tokens and token endpoint authentication method none. Configure the provider's access/MFA policy. Its redirect policy must permit the RFC 8252 IPv4 loopback address 127.0.0.1 and exact /oidc/callback path with an ephemeral local port. Use the provider's supported native-loopback setting; do not wildcard hosts or unrelated paths. A provider that cannot accept this loopback policy is not supported by this configuration.

  2. Supply these process-environment values to the Electron Server, then restart it. For a source launch from a POSIX terminal:

    export WCX_OIDC_ENABLED=true
    export WCX_OIDC_ISSUER='https://your-identity-host/your-exact-issuer-path'
    export WCX_OIDC_CLIENT_ID='your-public-native-client-id'
    npm start
    

    Build first when running from source. Installed applications need these values in their launch environment; opening a macOS app in Finder does not inherit a terminal's exports. Preserve the issuer's exact path and trailing slash. No client secret is needed or supported. Leave Client machines unconfigured: they obtain public sign-in availability from their configured Server.

  3. Sign in using a local Administrator account. Under Administration > Users, choose Link organization for an existing active user. Independently obtain and review the exact issuer and case-sensitive immutable sub at the IdP. Confirm the account mapping explicitly. Email/name/role claims never create users, match accounts or grant permissions. One subject cannot map to two users, and replacing an existing link requires an explicit unlink first.

  4. On each Server or Client desktop, choose Sign in with your organization. The desktop opens its own system browser and temporary local callback. The Server retains the PKCE verifier and nonce, verifies the signed token and resolves the exact SQL mapping. Clients do not open operational databases, retain IdP tokens or receive a secret. Keep the existing verified/pinned HTTPS connection to the Server; do not expose private RPC without transport protection.

  5. If the WonderCX account has local TOTP enabled, finish with its authenticator or an unused recovery code. IdP MFA does not bypass this second factor. Existing lockouts, temporary-password change requirements, roles and queue/team scopes still apply. Browser sign-in expires after five minutes; a subsequent local MFA challenge expires after two minutes. Invalid/replayed requests fail rather than creating partial sessions.

Use Organization identity > Unlink identity to revoke a reviewed binding. The Server requires the exact mapping still to match the review, audits the change and rotates the user's security revision, invalidating existing local and network sessions and pending MFA challenges. Link changes revoke sessions as well. Local password/MFA sign-in remains available for recovery; this is not an SSO-only policy. Backups include identity links, not IdP credentials or tokens; review mappings after restoring historical backups.

Set WCX_OIDC_ENABLED=false and restart the Server to disable SSO. Existing RPC sessions are process-memory-only and restart ends them. Ordinary logout is local WonderCX logout, not provider logout. IdP account disablement alone does not continuously revoke an already issued WonderCX session: unlink/deactivate the local user or revoke the relevant session when immediate revocation is needed. Discovery, token and JWKS requests require verified HTTPS and reject redirects; never bypass certificate verification. Actual customer IdP registration/login, Windows browser/firewall behavior and site qualification remain deployment checks, not claims made by synthetic protocol tests.

Other optional integrations

Nothing in this section is required just to start WonderCX or make internal managed-PBX calls.

Feature Supply/configure separately
Shared email IMAP/SMTP mailbox access, provider-authorized sender/aliases, queue and encrypted credential. Distinct account/folder identities for additional mailboxes. Test connection and sync before relying on polling
Attachment scanning Customer-maintained ClamAV daemon/signature updates on loopback; only required when the scanning policy is enabled. Missing/unhealthy required scanner fails closed
Twilio SMS/WhatsApp Customer account/senders, Server-held credentials, signature-preserving public HTTPS callbacks, consent, approved WhatsApp templates and provider permissions
Direct messaging/social Provider account, access/approval, encrypted credentials, exact public HTTPS callback identity and signature verification. Provider-specific setup is in CONFIGURATION.md
Website chat Exact allowed HTTPS website origins, a queue, HTTPS reverse proxy and embed configuration. Server must stay awake/running
External WebRTC phone Customer WSS/WebRTC PBX, secure endpoint, assigned SIP account and audio permissions; no managed FreeSWITCH required
API flow calls/OAuth references Administrator-approved HTTPS hosts/paths/flow grants and Server-only encrypted credentials where needed
Reviewed AI drafts Explicit organizational approval, supported provider account/model/token, quota/cost/retention and selected-content review; disabled by default
Screen pops/outbound webhooks Reviewed HTTPS destination and explicit field disclosure; webhook receiver must implement signature/freshness/deduplication requirements
Signature-verified PBX reports Customer-owned authorized adapter and independently trusted Ed25519 public key; not required for the managed engine observer or a bundled vendor adapter
Production licensing/installer verification Publisher-provided trusted public keys and valid entitlements/release metadata; not fabricated by a local source build

Direct social capability is provider-specific: supported attachments, one reviewed Telegram/LINE group per account, public Facebook/Instagram comment replies and consent-governed private campaigns are described in Direct messaging and social accounts. Configure group and public-comment accounts separately from private DMs, inspect the audience warning before replying, and explicitly acknowledge public replies. A successful account verification is not proof of app permissions, callback delivery or customer receipt.

Facebook customer text posts also enter distinct public conversations; replying requires verified Page-feed membership. For original Facebook Page text posts, use Settings → Public post publishing, not the customer composer. Save a draft, review the exact Page/text and explicitly approve its public audience. Configure approved pages_manage_posts access separately. Inspect actual history/provider post IDs and Page activity: uncertain publishing and HTTP 429 never automatically retry, another reviewed attempt can duplicate an existing post, and cancellation cannot recall a transmitted post. Local text erasure does not delete a Facebook post. See reviewed publishing.

For campaigns, obtain exact-account inbound opt-in before review; never substitute membership or public comments for private consent. Keep the Server awake for scheduled sends and inspect NeedsReview, failed and uncertain jobs instead of blindly resending. Attachment-download failures create an interaction review event; check the original inbox. These features still require customer-owned staging qualification with approved accounts, callback routes and authorized recipients. Instagram original posts, restricted X/LinkedIn products, unsupported media hosting and Teams files/groups remain outside the implemented subset.

Use Settings for configuration, not edits to the database, generated PBX XML or secret files. X and LinkedIn connectors remain unavailable pending their approved contracts; do not treat their placeholders as working integrations.

Prepare missing access, hosting and test authorization using the social integration approval and staging guide. It includes provider-specific approval packets, media disclosure/lifetime requirements and a qualification evidence worksheet; it does not authorize live sends, uploads or account/subscription changes.

CPU priority and heavy load

The Server keeps calls and agent work ahead of everything else on its computer:

  • The built-in phone engine runs in its own process. SIP signalling and the audio relay don't wait behind the Server's database, reports or memory clean-up.

    • If the engine process exits unexpectedly: calls it carried end. The Server starts it again within seconds (waiting longer after repeated exits, up to 30 seconds) and gives it the last deployed plan.
    • To run the engine inside the Server process instead (diagnostics only), set WCX_PBX_IN_PROCESS=1 before starting the Server.
  • Operating-system priority:

    Process Priority
    Phone engine High
    Server Above normal
    PostgreSQL Normal
    Backup and archive tools Below normal

    Raising a priority above normal needs administrator rights on Windows and root (or CAP_SYS_NICE) on Linux and macOS. Without them, the processes keep normal priority. What the OS actually applied is recorded with the Server's live monitoring data. Lowering a priority always works.

  • Under heavy load: when the Server's event-loop delay stays above 40 ms, it defers work that can wait until the delay is back under 20 ms. Call routing, sign-in, agent actions and call control are never deferred or refused.

    • Background jobs: mail polling, delivery workers, scheduled reports, CRM sync, campaign scheduling and media refresh skip their turn. Each one still runs at least once every 15 seconds to 5 minutes, depending on the job.
    • Deferrable requests (reports, exports, imports and audit queries) are refused with "The Server is busy with calls and agent work. Try this again in a few seconds."

Watching it: Administration → Host → Performance against targets shows CPU and memory per process, request latency per class, saving to PostgreSQL, call audio quality, load shedding and dialer use, updated every five seconds. A target missed for five minutes in a row raises a workspace alert for Administrators.

How these were measured is described in PERFORMANCE.md.

Daily operation and safe shutdown

Normal startup: launch WCX Server and confirm storage/integration recovery, hosting and PBX observer health. On Windows the previously explicitly started PBX service may already be running after a reboot; inspect rather than blindly redeploy. On macOS after logout/crash, inspect state and use explicit managed recovery/start as appropriate. Connect Clients and then assigned phones.

Before saving a new deployment: review the draft revision, dialing/network/recording policy, credentials/certificate expiry and prompt files. Saving alone does not update running phones or certificates. Arrange an idle maintenance window, stop safely, deploy the reviewed revision, start and recheck registration/routing/audio.

To stop: choose Stop when idle in the local Server and approve the reviewed operation. WonderCX pauses new session admission and checks active sessions twice. It refuses active calls and does not send call-kill commands. A failed/uncertain outcome is not permission to kill the engine or retry automatically; inspect first.

After a crash/interrupted operation: inspect the deployment/journal and protected diagnostics. New provisioning can be quarantined. review-stopped cannot simply be started: verify a safe stopped state and redeploy a reviewed draft. Recover previous deployment as a draft creates a new draft only; it is not live rollback.

To remove the PBX: first stop it safely, then choose Remove stopped service. Removal unregisters the service/job but retains runtime, configuration, recordings, voicemail and CDRs. Uninstalling WCX Server does not remove an independently registered/running PBX. Do not delete a checkout/profile, overwrite recovery files or restore the workspace while the PBX is running.

Storage, credentials and backup

Data Location / handling
Operational workspace The Server's PostgreSQL database (a local cluster in the Server profile unless an existing server was connected); shown in Settings → Backup. No shared network database or Client-side operational copy
Application connection preferences wondercx-network.json in the role's separate profile
Installer PBX choice Protected %ProgramFiles%\WonderCX\PBX\installation.json (earlier builds: installation.sqlite); shared non-secret choice survives app repair/upgrade
PBX and phone settings The Server's PostgreSQL database; separate OS-encrypted draft, active/previous/pending deployment, installation-status and external-account records
Legacy PBX migration evidence Original pbx-engine.enc, pbx-deployment.enc, .previous/.pending and telephony-accounts.enc files retained unchanged after validated transactional adoption; no longer written
Other integration secrets/audit key Separate OS-protected Server credential files; excluded from portable workspace backups
Windows managed runtime %ProgramFiles%\WonderCX\PBX\engine and protected runtime manifest
Windows deployed configuration/data %ProgramData%\WonderCX\PBX, including active\conf; recordings/voicemail/CDRs are outside application backups
macOS development deployment/data Server profile's pbx-macos-preview; prepared build inventory separately under .native-build/darwin-<arch>/pbx-runtime
Engine diagnostics Private log/freeswitch.log, rotating at 10 MB with five rotations
Retained call records Engine log/xml_cdr; replay/deduplication does not delete these files
Qualification reports Private, new files under ignored qualification-reports/, not application resources or Git

Portable backups are schema-versioned JSON, optionally encrypted. They are not a PBX settings/media/credential/OS-keystore backup. Securely preserve the Server database (through the app's backup), retained legacy evidence and the original OS keystore; generated XML/service manifests are derived runtime files, not a second settings authority. Unrelated connection preferences and other integration credentials retain their existing stores. Protect the whole Server profile and the associated OS identity/keystore under an approved recovery procedure; separately protect PBX media/configuration and any authorized credential exports. Copying encrypted files alone to another computer/account does not prove they can be decrypted.

Use application-managed backup/restore, not copies of live database files. Before restore, switch application access to standalone/restart, stop the PBX safely and wait for workers. Restore invalidates sessions, disables integrations/phone provisioning and requires credential/configuration review and explicit PBX redeployment before reuse. This includes payment links, external sources (Mews, Cloudbeds, CSV, inbound webhooks and HL7 listeners), the customer portal and proactive chat invitations: they come back switched off, and their saved secrets are deleted, so re-enter them before switching each back on. A payment link that was still being created is marked failed (check the provider dashboard before sending another), and reminders or surveys that were already due in the backup are marked skipped rather than sent again, because they may have gone out after the backup was taken. Preserve pre-upgrade JSON/recovery evidence under the same privacy/retention rules as other sensitive backups.

Cloud backup (incremental)

Settings → Data, backup & restore → Cloud backup backs up the workspace, and optionally call recordings and voicemail, to OneDrive, Google Drive or a folder (external disk, NAS share or a folder synced by the OneDrive/Google Drive desktop app). It is configured on the Server computer by an Administrator.

  • Incremental. Data is split into content-defined pieces of about 1 MiB and named by a keyed hash, so each run uploads only pieces the location does not already hold. Unchanged media files are reused from the previous backup without being read again.
  • Encrypted before upload. Pieces are compressed and encrypted with AES-256-GCM using a key derived (scrypt) from the backup password. The provider sees only random-looking objects. The password is stored, OS-protected, on the Server so scheduled runs work; keep a copy elsewhere because restoring on a new Server needs it and it cannot be recovered. Provider credentials stay excluded, as in portable backups.
  • Schedule and retention. Manual, every 6/12/24 hours or weekly; the newest 1–365 backups are kept and data only older backups used is deleted after each successful run. Scheduled runs act as the Administrator who last saved the schedule. A failed run is retried after an hour.
  • Restore any kept backup. Only the chosen backup's pieces are downloaded. The workspace restore uses the same checks as a local restore (standalone mode, idle workers, privacy-erasure and hold protection) and signs everyone out. Media restore writes only files missing on this computer, never overwrites a different local file, and skips recordings of conversations whose content was erased.
  • Sign-in. The organization registers its own OAuth app. OneDrive: a Microsoft Entra public client (Mobile and desktop applications) with redirect URI http://127.0.0.1 and delegated Files.ReadWrite and offline_access. Google Drive: a Desktop app OAuth client with the Drive API enabled; WonderCX requests only drive.file, so a new Server must use the same Google OAuth client to see existing backups.
  • Erased content can remain in older cloud backups until retention removes them, as with exported backup files.

No automatic PBX media pruning, carrier-copy deletion or encrypted-at-rest recording guarantee is provided. Plan recording consent, storage growth, backup access, retention and disk alerts separately. The operational workspace remains bounded to 64 MB logical content and 256 MB physical database; these are limits, not production sizing.

Troubleshooting

Symptom Check / safe action
PBX deploy/start unavailable Check local Administrator permission, saved revision and supported architecture. Windows needs the standard x64 Server helper. On Mac, use the native Server PKG and approve local Homebrew setup; inspect preparation errors and changed dependency inventories. Client/Windows ARM64/Linux packages cannot deploy managed PBX
macOS preparation rejects version/assets Exact 1.11.3 engine, matching CPU, module/language/sound files, Apple tools and untouched dependency hashes. Do not patch the manifest or omit modules
Runtime directory already exists Stop its managed service before preserving/replacing that specific prepared build. Do not delete active runtime/profile directories
MSI rejected Exact filename/release, size and SHA-256 above; no different architecture, partial download or stock installation substitute
PBX starts but is not confirmed ready Allow bounded startup inspection, then inspect profile/port conflicts, bind address, certificates and protected logs. Do not keep issuing start
Peer/configuration verification fails Unexpected process, modified/missing files, ACL/owner/reparse issues or old preview without a configuration manifest. Preserve evidence and redeploy through the matching trusted build; never hand-edit hashes
Agent cannot connect to application Server awake/running, reachable HTTPS origin, certificate identity/expiry/fingerprint and source-scoped TCP hosting rule; not the SIP address
Native phone missing Matching native-SIP preview Client/helper, supported platform, own active deployed Agent assignment and correct managed generation; standard packages are WebRTC-only
Phone registration rejected Correct deployed assignment, Agent CIDR, reachable SIP port/domain, private CA/certificate identity, service/profile health and duplicate external assignments
Registered but queue does not ring Active authorized Ready Agent, queue member extension, registered contact, no-answer On Break state, and distinct application Voice queue selection
Call connects with no/one-way audio Default device/privacy permission, advertised IPv4 and UDP media return path/range. SIP connectivity alone is not RTP/SRTP success; do not solve by disabling encryption or opening all ports
Internal works, carrier fails Exact carrier signaling/media networks, registration/authentication, DID/source matching, route digits/caller ID and extension outbound permission. Use provider-approved tests
IVR/voicemail prompts fail All named WAVs in deployment, supported PCM/rate/size, English language/sound assets and correct destination. Very short voicemail recordings can be discarded by the engine
New provisioning quarantined Observer/peer/replay failure, changed generation, interrupted journal or uncertain deployment. Inspect and follow explicit stop/redeploy recovery, not direct service manipulation
Required scanner blocks mail/download ClamAV enabled and healthy at the configured loopback port with current signatures; do not silently bypass required scanning
Storage/key errors Preserve database, journals, recovery files and OS key material. Correct the specific permission/keystore/capacity issue; no empty-database fallback or manual row deletion

Read-only Windows service inspection, when needed by the local operator:

Get-Service -Name WCXPBX

This reports OS service state only. A missing service produces an error; a running service does not prove WonderCX identity, profile readiness or audio. Use Inspect PBX service for the authenticated application check. Avoid ad-hoc Start-Service, Stop-Service, fs_cli, elevated helper calls or launchctl mutations that bypass WonderCX's revision, idle-proof and interrupted-operation safeguards.

Checking connectors against real accounts

scripts/live-account-check.mjs runs WonderCX's own request builders and parsers against sandbox or test accounts, so a connector can be checked before customers rely on it. Build first (npm run build), set the variables listed at the top of the script, then run one check at a time:

node scripts/live-account-check.mjs stripe

Checks: stripe and razorpay (test-mode keys only; the link created is expired or cancelled straight away), mews and cloudbeds (read-only), hl7 (sends one sample appointment to a WonderCX HL7 listener and expects an accept acknowledgement), calendar (reads a .ics address with the Server's address checks and counts busy blocks) and facebook (read-only Page and comment permissions). The output gives counts and yes/no answers only, never names, phone numbers, emails or secrets. Passing a check means the provider answered and WonderCX understood the answer; it is not certification by the provider.

Qualification and release handoff

Basic build/type/regression checks:

npm run typecheck
npm test

These include PostgreSQL recovery/capacity drills against isolated synthetic data; they do not qualify SIP/RTP capacity, physical audio or Windows service behavior on macOS.

For a real Windows host, use the complete Windows qualification procedure. It binds source and installed artifacts, requires native signatures for installed-runtime checks and records explicit failed/not-run/manual gates. Reports remain unsigned blocked evidence even when automated checks pass; they cannot promote the preview or grant production approval.

Before any production decision, collect accountable evidence for final signed installers, clean install/upgrade/uninstall, UAC/ACL/service identity, interrupted lifecycle/recovery, separate-Agent revocation, actual headsets/audio, approved carrier/emergency tests, IVR/queues/voicemail/conferences/transfers, recording/CDR retention, agreed load/soak, licensing and operational ownership. Without a Windows host, those Windows gates remain blocked.