mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-28 08:49:42 +02:00
feat: add cloudonix amd callback with logs only (#177)
This commit is contained in:
parent
bd07b753cd
commit
628132f29b
2 changed files with 32 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue