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.
params
Webhook URL and options.
params.url
Primary cXML document URL. Serialized as call_request_url.
params.fallbackUrl
Fallback URL invoked when the primary URL fails. Serialized as
call_fallback_url.
params.statusCallbackUrl
URL that receives call-status updates. Serialized as
call_status_callback_url.
Returns
Promise<any> — The updated phone-number resource.