feat: handle cloudonix incoming calls

This commit is contained in:
Sabiha Khan 2026-01-16 17:46:44 +05:30
parent a172db8022
commit 7fd3bb765d
5 changed files with 186 additions and 59 deletions

View file

@ -276,16 +276,18 @@ class TelephonyProvider(ABC):
"""
pass
@staticmethod
@abstractmethod
def generate_inbound_response(self, websocket_url: str) -> tuple:
async def generate_inbound_response(websocket_url: str, workflow_run_id: int = None) -> tuple:
"""
Generate the appropriate response for an inbound webhook.
Args:
websocket_url: WebSocket URL for audio streaming
workflow_run_id: Optional workflow run ID for tracking
Returns:
Tuple of (Response, media_type) - Response object and content type
FastAPI Response object
"""
pass