mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
chore: run formatter
This commit is contained in:
parent
d6996be920
commit
cf80b20be1
2 changed files with 3 additions and 9 deletions
|
|
@ -478,9 +478,7 @@ class ARIConnection:
|
|||
|
||||
# FreeSWITCH: X-PBX-Provider marks the call; X-PBX-UUID is the ESL handle.
|
||||
if (
|
||||
await self._get_channel_var(
|
||||
channel_id, "PJSIP_HEADER(read,X-PBX-Provider)"
|
||||
)
|
||||
await self._get_channel_var(channel_id, "PJSIP_HEADER(read,X-PBX-Provider)")
|
||||
) == "freeswitch":
|
||||
upstream = {
|
||||
"provider": "freeswitch",
|
||||
|
|
|
|||
|
|
@ -1111,9 +1111,7 @@ class CloudonixProvider(TelephonyProvider):
|
|||
from_number = random.choice(self.from_numbers)
|
||||
|
||||
backend_endpoint, _ = await get_backend_endpoints()
|
||||
callback_url = (
|
||||
f"{backend_endpoint}/api/v1/telephony/cloudonix/transfer-result/{transfer_id}"
|
||||
)
|
||||
callback_url = f"{backend_endpoint}/api/v1/telephony/cloudonix/transfer-result/{transfer_id}"
|
||||
|
||||
endpoint = f"{self.base_url}/calls/{self.domain_id}/application"
|
||||
data: Dict[str, Any] = {
|
||||
|
|
@ -1126,9 +1124,7 @@ class CloudonixProvider(TelephonyProvider):
|
|||
|
||||
data.update(kwargs)
|
||||
headers = self._get_auth_headers()
|
||||
masked_destination = (
|
||||
f"***{destination[-4:]}" if len(destination) > 4 else "***"
|
||||
)
|
||||
masked_destination = f"***{destination[-4:]}" if len(destination) > 4 else "***"
|
||||
logger.info(
|
||||
f"[Cloudonix Transfer] Dialing {masked_destination} into conference "
|
||||
f"{conference_name} (transfer_id={transfer_id})"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue