DIDForSale Voice API, lets you create a Click on Call Application in your website. With the Sample code and DIDForSale API, you can create a simple Click to Call form, ask the user to enter a phone number and click on call me now button. Code will call DIDForSale Voice API and will dial the customers number. Once the customer pick up the call, he will be connected to the agent.

Why should I have Click to Call Button?

  • Your customer is visiting your website and they want to talk to someone right now, in placing of calling your business line, going through IVR and wait in queue, she chooses your agent to call her.
  • This is another way to connect the customer to the right person. Great way to increase the sales.
  • Customer can not to dial out long distance number.

How Click to Call Works:

  • In this example, user will see the form. Type in their phone number with country code and click on call me now button.
  • PHP code will take the number, call the DIDForSale API to complete the call.
  • Code will call the API and post the following information in JSON format.
  • ‘from’ => $CALLERID, ‘to’ => $to, ‘apikey’ => $APIKEY.
  • DIDForSale voice application will call the “TO” Number first.
  • Once the person pick up the call, then call will be connected to the caller ID number immediately. This caller id number can be main business number or direct line to an agent or even a call queue in the call center.

What Do you need to use Click to Call Feature to Work with DIDForSale Voice API:

  • You need an account with DIDForSale Signup for Free Account.
  • By default your account is allowed to call all over USA and Canada. If you need to call international locations, contact your account rep.
  • And API Key, so that our system can authenticate your application to complete the call on your behalf.

Can I get a new local phone to be used for Click to Call:

Yes, you purchase new number from anywhere in USA, UK and Canada. That number can be connected to your PBX with SIP Trunking service.

Once you have a working account, you can build your own application to connect with your customers. Here is sample PHP code to build your own Click to Call Application.

Want to build more complicated Voice Application? Check out Developer Kit. There you can find more documentation to build Voice or SMS applications.