feat(whatsapp): add in-app voice calling - #1187
Draft
viethung0o0 wants to merge 3 commits into
Draft
viethung0o0 wants to merge 3 commits into
viethung0o0 wants to merge 3 commits into
Conversation
Self-hosted WhatsApp Business Calling on FreeSWITCH + coturn, replacing the LiveKit transport end to end: - Database: WhatsappCall, AgentSipPresence, UserSoftphoneCredential, WorkspaceSipNode schema, repositories, relations and migrations. - Business: SIP provisioning, softphone credentials, agent presence and ring targeting, node allocation, call recording/transcription, and the FreeSWITCH ESL/xml_curl service layer. - Worker: FreeSWITCH ESL consumer with leader election, event batcher, reconciliation, recording sweep, and call finalize/transcribe handlers. - Builder: calling settings, softphone dock, SIP provisioning and start/ hangup actions, mod_xml_curl responder, and the call-on-whatsapp flow step; i18n across all locales. - Infra: docker/freeswitch + coturn stack, compose services, SIP preflight and Meta ACL scripts, and docs/whatsapp-calling.md.
…-safe - freeswitch: install freeswitch-conf-vanilla (vanilla config the meta package omits), self-sign wss.pem for local TLS/WSS profiles, drop the stock internal/external profiles, move the meta_sip_ranges ACL fragment out of autoload_configs, un-embed an X-PRE-PROCESS tag from a comment, and fix the healthcheck to pass the ESL password. - webhook: verify the X-Hub-Signature-256 HMAC with Web Crypto (@chatbotx.io/utils/crypto) instead of node:crypto so the WhatsApp integration stays edge-bundle-safe when the oRPC router graph is pulled into the Next.js edge runtime; drop the now-unused utils/node-crypto.
Replaces the self-hosted media-server transport with direct browser-to-Meta calling, adds outbound calls, Meta-native recording and transcription, and AI call summaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
pnpm lintpnpm turbo run check-typespnpm testdb:migrateon deploy