1
0
forked from test/crm

fix: added webhook verify token in status updater url

This commit is contained in:
Shariq Ansari 2025-01-20 16:28:47 +05:30
parent 71bb1bb8ff
commit 3f75d6a51f

View File

@ -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():