fix: limit cloudonix transport to 20 ms packets

This commit is contained in:
Abhishek Kumar 2026-02-16 18:34:03 +05:30
parent 133cd54fd4
commit 559c0ca767
2 changed files with 5 additions and 1 deletions

View file

@ -151,6 +151,7 @@ async def create_cloudonix_transport(
else SilenceAudioMixer()
),
serializer=serializer,
audio_out_10ms_chunks=2,
),
)

View file

@ -295,7 +295,10 @@ class CustomToolManager:
workflow_run = await db_client.get_workflow_run_by_id(
self._engine._workflow_run_id
)
if workflow_run.mode in [WorkflowRunMode.WEBRTC.value, WorkflowRunMode.SMALLWEBRTC.value]:
if workflow_run.mode in [
WorkflowRunMode.WEBRTC.value,
WorkflowRunMode.SMALLWEBRTC.value,
]:
webrtc_error_result = {
"status": "failed",
"message": "I'm sorry, but call transfers are not available for web calls. Please try a telephony call.",