dograh/api/schemas
Abhishek d8cd34e8d2
feat: add vici dial controls from UI (#563)
* ViciDial Working

* feat(telephony): add FreeSWITCH provider to upstream-PBX seam

Generalize the upstream-PBX capture and control paths to dispatch by
provider. FreeSWITCH bridges in with X-PBX-* headers and is driven over
the Event Socket Library (uuid_kill / uuid_transfer) by the channel UUID,
alongside the existing VICIdial ra_call_control path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* add vici specific configs

* feat(telephony): env-based VICIdial config + address3 post-call routing

Move VICIdial agent/non-agent API and FreeSWITCH ESL connection settings
out of hardcoded POC values into environment variables so the same image
works against a PBX on another server.

Add VICIdial update_lead forwarding: X-VICI-UPDATE-LEAD_* extracted
variables are mapped to lead columns and pushed via the non-agent API
before a transfer, with reserved API-control params dropped.

Add hardcoded address3 disposition routing (Y/N -> in-group transfer,
else hang up) and a synchronous final variable extraction so the
transfer path sees the freshest conversation state. Skip upstream_pbx
capture on non-PJSIP channels to avoid Asterisk 500s.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore: run formatter

* feat: make vici configurable from UI

* chore: clean up PR

* fix: incorporate review comments

* chore: incorporate review comments

* chore: generate client

* chore: incporporate review comments

* chore: incorporate review comments

---------

Co-authored-by: Dograh POC <payment@dograh.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 21:57:34 +05:30
..
__init__.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
ai_model_configuration.py fix: enable knowledge base with Dograh config v2 2026-06-25 22:21:11 +05:30
auth.py feat: add posthog events (#231) 2026-04-10 17:52:21 +05:30
knowledge_base.py feat: add full document mode in knowledge base 2026-04-09 13:49:20 +05:30
onboarding_state.py feat: UI refresh and user onboarding (#430) 2026-06-17 19:49:33 +05:30
organization_preferences.py feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
service_key.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
telephony_config.py feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
telephony_phone_number.py feat: agent stream for cloudonix OPBX (#261) 2026-05-02 15:53:58 +05:30
tool.py feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
workflow.py feat: persist split user and bot audio 2026-06-16 15:19:49 +05:30
workflow_configurations.py feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
workflow_recording.py feat: add recording audio option in tool and node transitions (#232) 2026-04-10 17:53:42 +05:30