Add Participant To Call
POST/api/webphone/calls/:call_id/add-participant
Add a phone participant to an existing webphone call (conference call).
This enables multi-party calling by adding additional phone numbers to the same room. Multiple participants can be added to create a conference.
Flow:
- Verify call exists and is active
- Create SIP trunk for caller ID
- Create new SIP participant in same room as existing call
- Return participant info for frontend tracking
Args: call_id: ID of the existing call to add participant to request: AddParticipantRequest with phone number and optional caller ID web_context: Authenticated user context phone_call_service: Phone call service config: Application configuration
Returns: Dictionary with participant info:
- participant_id: Unique identifier for this participant
- sip_call_id: SIP call ID
- phone_number: Phone number that was dialed
- caller_id: Caller ID used
- participant_identity: Participant identity
- status: Participant status ("dialing")
Raises: HTTPException: 400 if invalid parameters, 404 if call not found, 500 if operation fails
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error