Answer Incoming Call
POST/api/webphone/answer/:call_id
Answer an incoming phone call by joining the room.
Flow:
- Incoming call webhook creates room and database record
- Frontend polls or receives WebSocket notification
- User clicks "Answer"
- This endpoint generates token for user to join existing room
- Frontend joins room with WebRTC
Args: call_id: Call ID from incoming call notification web_context: Authenticated user context phone_call_service: Phone call service for managing calls
Returns: PhoneCallResponse with connection details
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error