CTRLK

Shared components

Answer an inbound call with CML

|

View as Markdown

Before serving any inbound call, declare in a configuration object where Infobip retrieves the first set of markup language instructions when receiving a call on your voice number. You can create and manage Calls Markup Language configurations with the API or using the Infobip portal.

The configuration includes the following fields:

  • markupUrl: URL of the webhook that serves the first set of markup language instructions when a call is received.
  • errorUrl: URL invoked when the markupUrl is unreachable or the returned CML from the markupUrl is invalid. Failover actions are expected in response.
  • notifyUrl: URL of the webhook where Infobip sends a post-call notification with a summary of the call.
  • httpMethod: HTTP method used for all the callbacks in this list. Can be POST or GET.

After your CML configuration is declared, associate it with your voice number. To link an Infobip DID number to a CML configuration, set up a voice action on your DID number:

  • API: Create a voice setup on your Infobip number with the action type VOICE_FORWARD_TO_MARKUP_LANGUAGE and include your CML configurationId.
  • Web interface:
    1. Go to the Numbers application and select your number.
    2. Select the Voice tab.
    3. Create an inbound configuration where the Forward action is Forward to Markup Language and select the CML configuration to use.

Was this page helpful?