setRelayTopic
Route inbound calls on this phone number to a RELAY topic. RELAY clients subscribed to the topic will receive the inbound call event.
This is a typed wrapper over update that sets call_handler to
relay_topic and populates call_relay_topic for you.
Parameters
resourceId
ID of the phone number to bind.
params
Topic name and options.
params.topic
RELAY topic name. Serialized as call_relay_topic.
params.statusCallbackUrl
URL that receives status updates for calls routed via this topic. Serialized
as call_relay_topic_status_callback_url.
Returns
Promise<any> — The updated phone-number resource.