dograh/api/services
Sabiha Khan 5ee68f58bb fix: honor telnyxs per-call codec in bidirectional stream
Telnyx's bidirectional stream uses different codecs per direction:
  - Dograh → Telnyx: what we declare via `stream_bidirectional_codec`
  - Telnyx → Dograh: whatever the PSTN leg negotiated (PCMA for UK,
    Europe, India termination; PCMU for US), announced as
    `media_format.encoding` on the WebSocket start message.

We hardcoded both directions on the serializer to PCMU, so any call
whose PSTN leg used PCMA arrived as A-law bytes that we decoded
through a μ-law table → static for the entire call.

`handle_websocket` now extracts `media_format.encoding` from the
start message and threads it through `transport_kwargs`. The
serializer uses it for the Telnyx → Dograh direction; the
Dograh → Telnyx direction stays pinned to PCMU to match the
unchanged `stream_bidirectional_codec` in the dial/answer payloads.

Note: pipecat's `TelnyxFrameSerializer` names its params from the
call's POV, not Dograh's — `inbound_encoding` is what we send into
the call, `outbound_encoding` is what we receive. Easy to mix up.
2026-04-29 19:12:06 +05:30
..
auth feat: add test mode for API trigger 2026-04-25 16:30:26 +05:30
campaign feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
configuration feat: add test mode for API trigger 2026-04-25 16:30:26 +05:30
filesystem feat: add mcp server to Dograh OSS (#240) 2026-04-16 13:03:29 +05:30
gen_ai feat: refactor node spec and add mcp tools (#244) 2026-04-21 07:56:16 +05:30
gender Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
integrations Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
looptalk feat: agent versioning and model configurations override (#227) 2026-04-08 19:20:31 +05:30
pipecat feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
pricing feat: add qa node in workflow builder (#172) 2026-02-25 13:53:30 +05:30
reports Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
smart_turn feat: telephony call transfer (#155) 2026-02-16 14:33:33 +05:30
telephony fix: honor telnyxs per-call codec in bidirectional stream 2026-04-29 19:12:06 +05:30
worker_sync feat: add worker sync events 2026-04-04 14:26:47 +05:30
workflow feat: add test mode for API trigger 2026-04-25 16:30:26 +05:30
mps_service_key_client.py feat: refactor node spec and add mcp tools (#244) 2026-04-21 07:56:16 +05:30
posthog_client.py feat: add posthog signup and signin events, enable backend posthog events for oss version (#249) 2026-04-24 12:02:52 +05:30
quota_service.py feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
storage.py feat: add mcp server to Dograh OSS (#240) 2026-04-16 13:03:29 +05:30