Skip to content

Commit

Permalink
fix: do not override receiver if AgentEmail is not in payload
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jan 23, 2025
1 parent ce3e1e7 commit 2879f25
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 @@ -276,7 +276,7 @@ def update_call_log(call_payload, status="Ringing", call_log=None):
call_log.start_time = call_payload.get("StartTime")
call_log.end_time = call_payload.get("EndTime")

if direction == "incoming":
if direction == "incoming" and call_payload.get("AgentEmail"):
call_log.receiver = call_payload.get("AgentEmail")
else:
call_log.caller = frappe.session.user
Expand Down

0 comments on commit 2879f25

Please sign in to comment.