Skip to main content

Reject Call To Voicemail

POST 

/api/webphone/reject-to-voicemail/:call_identifier

Reject an inbound call and route it to voicemail instead of busy signal.

If voicemail is enabled for the called phone number, sets a Redis flag that the agent picks up to immediately trigger the voicemail greeting flow. The SIP participant stays in the room so the caller can hear the greeting and leave a message.

If voicemail is NOT enabled, falls back to regular hangup behavior (removes SIP participant, caller hears disconnect).

Args: call_identifier: call_id (SCL_xxx) or room_name web_context: Authenticated user context phone_call_service: Phone call service

Returns: Dictionary with action taken (voicemail or hangup)

Request

Responses

Successful Response