Voice API response

Our system expects a response from your application in didML format.

Cebod Telecom Collects Response

In the previous Step you saw how Cebod Telecom makes HTTP requests to your URL as soon as your phone number is called. Now as a result the server is trying to access the <didML> file which stores all the instructions that have been programmed by you. In other words system is figuring out what the next step is? Whether to greet the caller by name, or play music on hold or connect the call etc. Whatever is being stated in the file is the Response from your URL to the Request that was sent by Cebod Telecom.

‌<didML> collects the response from the URL and Cebod Telecom executes the instructions. Within the code any instruction that is passed within the <response> parameter is what <didML> looks for. With the use of various Verbs, you can create a complex dial plan to meet your unique needs.

Here is an example

If someone calls your number, Cebod Telecom will look up for the URL specified for that number and make a request. Web server will then send the instructions on what to do with that call. Say you want to play a Company Greeting, or Forward the call to a cell phone etc.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say>Please hold while we connect your call.</Say>
    <Dial>19499300366<dial/>
    <hangup/>
</Response>

As soon as Cebod Telecom gets access to the <didML> document, the phone system will convert the text to audio and play the messages to the caller. Once the message is played it will forward the call to another number as specified in the instructions. Please Note: Only one document can be served at one time, but you can link other documents based on input from the user. This way you can build a complex voice application. Like if Press 1 to do this, or Press 2 to do that else hang up.

Learn more about all the verbs you can use in the application.

Last updated