From 516f54054d94b70faf1003aed6df5531b125da5c Mon Sep 17 00:00:00 2001 From: Shariq Ansari <30859809+shariquerik@users.noreply.github.com> Date: Fri, 24 Jan 2025 06:28:42 +0530 Subject: [PATCH] fix: only set RecordingUrl if payload has it --- crm/integrations/exotel/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/integrations/exotel/handler.py b/crm/integrations/exotel/handler.py index 7563ba04..3d319fc4 100644 --- a/crm/integrations/exotel/handler.py +++ b/crm/integrations/exotel/handler.py @@ -272,7 +272,7 @@ def update_call_log(call_payload, status="Ringing", call_log=None): call_log.duration = ( call_payload.get("DialCallDuration") or call_payload.get("ConversationDuration") or 0 ) - call_log.recording_url = call_payload.get("RecordingUrl") + call_log.recording_url = call_payload.get("RecordingUrl") if call_payload.get("RecordingUrl") else "" call_log.start_time = call_payload.get("StartTime") call_log.end_time = call_payload.get("EndTime")