Reject call
realtime.calls.reject(strcall_id , CallRejectParams**kwargs )
POST
/realtime/calls/{call_id}/rejectDecline an incoming SIP call by returning a SIP status code to the caller.
Reject call
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
)
client.realtime.calls.reject(
call_id="call_id",
)