setCxmlWebhook
Route inbound calls on this phone number to a cXML (Twilio-compat / LAML)
webhook. Despite the wire value laml_webhooks being plural, this creates a
single cxml_webhook Fabric resource on the server.
This is a typed wrapper over update that sets call_handler to
laml_webhooks and populates the URL fields for you.
For SWML webhooks, use
setSwmlWebhook
instead.
Parameters
resourceId
ID of the phone number to bind.
url
Primary cXML document URL. Serialized as call_request_url.
fallback_url
Fallback URL invoked when the primary URL fails. Serialized as call_fallback_url.
status_callback_url
URL that receives call-status updates. Serialized as call_status_callback_url.
extra
Additional fields merged into the request body.
Returns
Promise<PhoneNumberResponse> — The updated phone-number resource.