dograh/api/services
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
..
auth fix: fix superadmin impersonation 2026-07-11 15:51:36 +05:30
campaign fix: scope workflow run to org rather than user 2026-07-10 16:52:43 +05:30
configuration feat(openai-realtime): allow pinning input transcription language (#557) 2026-07-18 16:08:35 +05:30
filesystem chore: refactor file upload mechanism to avoid NFS dependency (#496) 2026-07-03 20:01:52 +05:30
gen_ai chore: cleaup mps v1 billing (#507) 2026-07-07 18:38:29 +05:30
gender Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
integrations chore: add docs url for integration nodes 2026-07-15 18:54:07 +05:30
pipecat feat(openai-realtime): allow pinning input transcription language (#557) 2026-07-18 16:08:35 +05:30
reports feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
telephony feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
voice_prompting_guide chore: add current time in global prompt 2026-07-14 19:52:29 +05:30
worker_sync feat: add worker sync events 2026-04-04 14:26:47 +05:30
workflow feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
call_concurrency.py fix: increase concurrency limit an handle it across all call paths (#508) 2026-07-09 18:29:01 +05:30
managed_model_services.py feat: centralise workflow run authorization 2026-06-12 18:16:30 +05:30
mps_billing.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
mps_service_key_client.py feat: show model pricing in configuration UI (#528) 2026-07-13 14:20:24 +05:30
organization_context.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
organization_preferences.py feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
posthog_client.py fix: increase concurrency limit an handle it across all call paths (#508) 2026-07-09 18:29:01 +05:30
quota_service.py fix(quota): fail closed when quota verification errors (#331) (#523) 2026-07-15 13:03:42 +05:30
storage.py fix: pass s3 compose settings into storage 2026-06-24 18:37:20 +05:30
tool_management.py feat: add vici dial controls from UI (#563) 2026-07-20 21:57:34 +05:30
user_onboarding.py feat: UI refresh and user onboarding (#430) 2026-06-17 19:49:33 +05:30
workflow_run_artifacts.py chore: refactor file upload mechanism to avoid NFS dependency (#496) 2026-07-03 20:01:52 +05:30
workflow_run_billing.py chore: cleaup mps v1 billing (#507) 2026-07-07 18:38:29 +05:30