feat: add cloudonix amd callback with logs only (#177)

This commit is contained in:
Sabiha Khan 2026-03-05 09:29:04 +05:30 committed by GitHub
parent bd07b753cd
commit 628132f29b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 0 deletions

View file

@ -105,6 +105,11 @@ class CloudonixProvider(TelephonyProvider):
</Response>""",
"caller-id": from_number, # Required field
}
data["machineDetection"] = "DetectMessageEnd"
data["asyncAmd"] = True
data["asyncAmdStatusCallback"] = f"{backend_endpoint}/api/v1/telephony/cloudonix/amd-callback/{workflow_run_id}"
data["asyncAmdStatusCallbackMethod"]= "POST"
# TODO: Cloudonix status callbacks are spammy, so commenting it out. Can send it to
# some persistent logging system instead of transcational database.