mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
fix: ignore completed call status
This commit is contained in:
parent
51adfdda66
commit
e485f649bd
7 changed files with 168 additions and 96 deletions
|
|
@ -10,7 +10,7 @@ import aiohttp
|
|||
from fastapi import HTTPException
|
||||
from loguru import logger
|
||||
from twilio.request_validator import RequestValidator
|
||||
from pipecat.utils.context import set_current_call_sid
|
||||
from pipecat.utils.run_context import set_current_call_sid
|
||||
|
||||
from api.enums import WorkflowRunMode
|
||||
from api.services.telephony.base import (
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import re
|
|||
from typing import TYPE_CHECKING, Any, Optional
|
||||
|
||||
import aiohttp
|
||||
import httpx
|
||||
from loguru import logger
|
||||
|
||||
from api.db import db_client
|
||||
|
|
@ -319,7 +320,7 @@ class CustomToolManager:
|
|||
await self._engine.task.queue_frame(TTSSpeakFrame(custom_message))
|
||||
|
||||
# Get original call information from Pipecat context
|
||||
from pipecat.utils.context import get_current_call_sid
|
||||
from pipecat.utils.run_context import get_current_call_sid
|
||||
|
||||
original_call_sid = get_current_call_sid()
|
||||
caller_number = None # Skip caller number for now as requested
|
||||
|
|
@ -352,7 +353,6 @@ class CustomToolManager:
|
|||
}
|
||||
|
||||
# Initialize Redis-based transfer coordination
|
||||
import httpx
|
||||
import time
|
||||
|
||||
# Get backend endpoint URL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue