Skip to content

Commit

Permalink
Merge pull request #548 from frappe/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik authored Jan 23, 2025
2 parents af38799 + 2879f25 commit ea1a37b
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 ea1a37b

Please sign in to comment.