From 3f75d6a51f86a1a9e49439ffcc2f52b8a36867db Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 20 Jan 2025 16:28:47 +0530 Subject: [PATCH] fix: added webhook verify token in status updater url --- crm/integrations/exotel/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crm/integrations/exotel/handler.py b/crm/integrations/exotel/handler.py index 45f0e19da..add2267c3 100644 --- a/crm/integrations/exotel/handler.py +++ b/crm/integrations/exotel/handler.py @@ -153,7 +153,8 @@ def get_all_exophones(): def get_status_updater_url(): from frappe.utils.data import get_url - return get_url("api/method/crm.integrations.exotel.handler.handle_request") + webhook_verify_token = frappe.db.get_single_value("CRM Exotel Settings", "webhook_verify_token") + return get_url(f"api/method/crm.integrations.exotel.handler.handle_request?key={webhook_verify_token}") def get_exotel_settings():