mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: handle cloudonix incoming calls
This commit is contained in:
parent
a172db8022
commit
7fd3bb765d
5 changed files with 186 additions and 59 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue