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

@ -71,6 +71,7 @@ async def load_telephony_config(organization_id: int) -> Dict[str, Any]:
return {
"provider": "cloudonix",
"bearer_token": config.value.get("bearer_token"),
"api_key": config.value.get("api_key"), # For x-cx-apikey validation
"domain_id": config.value.get("domain_id"),
"from_numbers": config.value.get("from_numbers", []),
}
@ -122,7 +123,8 @@ async def get_all_telephony_providers() -> List[Type[TelephonyProvider]]:
"""
Get all available telephony provider classes for webhook detection.
Returns:
List of provider classes that can be used for webhook detection
"""
return [TwilioProvider, VobizProvider, VonageProvider]
return [CloudonixProvider, TwilioProvider, VobizProvider, VonageProvider]