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.
Before you proceed with DIDforSale developer kit you will need following:
- 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.
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.
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:-
- 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"?>