set_relay_topic
set_relay_topic
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
resource_id
ID of the phone number to bind.
topic
RELAY topic name.
status_callback_url
URL that receives status updates for calls routed via this topic.
**extra
Additional fields forwarded to update.
Returns
dict — The updated phone number resource.