mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
fix: store channel id in gathered context for ARI outbound
This commit is contained in:
parent
5ef3be92b5
commit
8f10bcade3
1 changed files with 9 additions and 1 deletions
|
|
@ -657,9 +657,17 @@ class ARIConnection:
|
||||||
await self._mark_ext_channel(ext_channel_id)
|
await self._mark_ext_channel(ext_channel_id)
|
||||||
await self._set_channel_run(ext_channel_id, workflow_run_id)
|
await self._set_channel_run(ext_channel_id, workflow_run_id)
|
||||||
await self._set_pending_bridge(ext_channel_id, channel_id, workflow_run_id)
|
await self._set_pending_bridge(ext_channel_id, channel_id, workflow_run_id)
|
||||||
|
# Persist the caller channel id as call_id. Inbound runs already
|
||||||
|
# set this in create_workflow_run, but outbound runs never do, so
|
||||||
|
# without this the serializer hangup (provider reads
|
||||||
|
# gathered_context["call_id"]) and the StasisEnd teardown both get
|
||||||
|
# an empty channel id and fail to hang up the live caller channel.
|
||||||
await db_client.update_workflow_run(
|
await db_client.update_workflow_run(
|
||||||
run_id=int(workflow_run_id),
|
run_id=int(workflow_run_id),
|
||||||
gathered_context={"ext_channel_id": ext_channel_id},
|
gathered_context={
|
||||||
|
"ext_channel_id": ext_channel_id,
|
||||||
|
"call_id": channel_id,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
# 3. Create the ext media channel with the id we just registered.
|
# 3. Create the ext media channel with the id we just registered.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue