dograh/api/services/telephony/providers/telnyx
shiminshen 37e7f4d2e6
fix(telephony): resolve transfer context via call-sid index instead of KEYS scan (#387)
Transfer-context lookup by original_call_sid ran
`redis.keys("transfer:context:*")` and iterated every match — an O(N)
blocking scan on call-control hot paths, duplicated across the ARI
manager and the Twilio/Telnyx conference strategies.

Maintain a `transfer:by_call_sid:{original_call_sid}` -> transfer_id
secondary index, written and cleared alongside the context in
store/remove, and resolve lookups with a direct GET. Route the
Twilio/Telnyx strategies through the manager so the lookup lives in one
place (also dropping per-call ad-hoc Redis connections).

Closes #328

Co-authored-by: shiminshen <16914659+shiminshen@users.noreply.github.com>
2026-06-02 12:56:05 +05:30
..
__init__.py feat: add telnyx webhook api key in telephony config (#270) 2026-05-09 18:03:42 +05:30
config.py feat: add telnyx webhook api key in telephony config (#270) 2026-05-09 18:03:42 +05:30
provider.py chore: mandate telnyx signature verification (#319) 2026-05-19 16:50:27 +05:30
routes.py Verify Telnyx webhook signatures (#271) 2026-05-12 18:37:31 +05:30
serializers.py feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
strategies.py fix(telephony): resolve transfer context via call-sid index instead of KEYS scan (#387) 2026-06-02 12:56:05 +05:30
transport.py feat: add openai realtime models (#298) 2026-05-16 18:05:23 +05:30