Voice

This document is designed to help you understand how you can control a phone call using the application built in your system in your preferred programming language.

Requirements to build your Voice and SMS API

Before you proceed with DIDforSale developer kit you will need following:

  • An account with DIDforSale. https://portal.didforsale.com/register

  • A Phone number from DIDforSale. You can purchase the phone number by logging into your account.

  • A web url on your end. This is the url that will be used by DIDforSale to make connection.

How DFS voice platform communicates with your application?

As soon as the call hits DFS (DIDforSale) network, DFS will make either get or post request to the web url that is identified by you.

GET: DFS will pass the call related information in the URL. POST: DFS will submit the call related information in a form.

Introduction to didML?

didML is an acronym for DIDforSale Markup Language. didML defines a set of rules for encoding phone calls. You can use programming language of your choice and by following instructions as laid by didML you can initiate and control Calls in real time.

Here is how it works:-

  • Say you have configured 9998887777 to http://www.example.com/call.php

  • When someone calls 9998887777 DIDforSale(DFS) will then .

  • DFS looks for instructions from example.com/call.php

  • Your web server will respond with the set of instructions that phone system will execute. It will communicate with the user as the user responds to prompts by pressing keys on the phone.

  • Example didML Code

Example didML Code

<?xml version="1.0" encoding="UTF-8"?> 
<Response>
     <dial>19499300360</dial>
</Response>

Last updated