Handle Twilio call status updates
Status callback posted by Twilio as a call transitions through queued / ringing / in-progress / completed / busy / no-answer / failed. Updates the Call record with final status, duration, and end timestamp and emits a socket event so the agent UI reflects the change.
Body
Twilio-assigned call identifier (CA…) whose status is being reported.
Final or transitional state: queued, ringing, in-progress, completed, busy, no-answer, failed.
Total call duration in seconds (as a string), populated when the call ends.
Per-leg duration in seconds as Twilio reports it; usually mirrors CallDuration for single-leg dials.
Calling party phone number in E.164.
Called party phone number in E.164.
Response
Plain-text acknowledgement (Twilio only checks 2xx).
The response is of type string.
"OK"