Create a CRM activity after a call
- Subscribe to the call-completed event.
- Verify the signature and deduplicate on the event id.
- Match the caller to a CRM contact by E.164 number; create one if absent.
- Re-fetch the call from the API rather than trusting the payload as canonical.
- Write the activity, storing the Talki call id so a redelivery updates rather than duplicates.
- On startup, sweep with
updated_afterto catch anything missed while down.
