feat: handle cloudonix incoming calls (#121)

This commit is contained in:
Sabiha Khan 2026-01-17 14:36:51 +05:30 committed by GitHub
parent cac25879bf
commit e2fa4bbb98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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