Skip to main content

Update Call Status

POST 

/api/webphone/calls/:call_id/status

Update call status from frontend based on room events.

This endpoint replaces provider webhook-based status updates for webphone calls. The frontend calls this when it receives ParticipantConnected/Disconnected events.

Flow:

  1. Frontend receives ParticipantConnected (SIP participant joined) → status=connected
  2. Frontend receives ParticipantDisconnected (SIP participant left) → status=ended

Args: call_id: Call ID to update request: CallStatusUpdateRequest with new status and optional reason/duration web_context: Authenticated user context phone_call_service: Phone call service

Returns: Dictionary with update confirmation

Raises: HTTPException: 404 if call not found, 400 if invalid status, 500 if update fails

Request

Responses

Successful Response