Skip to content

Commit

Permalink
fix: only set RecordingUrl if payload has it
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik authored Jan 24, 2025
1 parent 2879f25 commit 516f540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crm/integrations/exotel/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 516f540

Please sign in to comment.