Switchvox Developer Blog

Archive for May, 2009

Uploading a voicemail greeting to the Extend API using cURL

This tutorial describes how to use the popular cURL commandline tool to upload a voicemail greeting using the Switchvox Extend API.

I wrote a very similar tutorial a while back called Interacting with the Extend API using Wget. cURL is very similar to Wget, but is a little better at uploading files, which is why I choose to use it for this tutorial. cURL can be found on most Linux systems, and can also be downloaded for all major operating systems. For more information on cURL, see Wikipedia.

Read more »

Step 1: Upgrade to Latest Version

There’s a new build of Switchvox available as of this morning, rev 17487. Before tinkering with the API, upgrade to this version, it fixes some API issues discovered while building test apps and libraries. And if you don’t upgrade, the documentation isn’t going to be correct.
Here are the complete release notes:
Issues Fixed
* Fixed date format in voicemails.
* Fixed issue with wrap up time, auto logoff, least recently called, and fewest calls ring strategy in call queues.
* Fixed issue where multiple diagnostic emails would be sent to root email address of PBX MX record.
* Loosen up checking of Snom dial plan input to accept return characters from IE
* Fixed issue in call reporting with incoming analog/pri call statistics.
* Fixed issue in Dial Extension IVR action when using a variable
* Multiple fixes and additions for the API.
Enjoy!

Don’t I know you?

One of the great things about Extend is that it just looks so *familiar* if you’ve ever worked with any of the zillions of web APIs out there. Take, for example, this note I got from our head of Marketing Operations after he saw Developer Central for the first time: “Looks great! I really want to play with the API stuff, it looks a lot like some of the salesforce.com commands.”

I expected an enthusiastic response from the Engineering team, this stuff is right in their wheelhouse, but a marketing guy feels like he’s got a handle on integrating with Switchvox? Cool! Wait till he sees the tutorial David wrote on how to add a “Let Us Call You” box on any website. I feel a new feature added to the Digium.com website coming on.
Read more »

Add a ‘Let Us Call You’ feature to your website using the Extend API and Ajax

This tutorial shows you how to add a ‘Let us call you’ feature on your website. When your customers enter their phone number, Switchvox calls their phone, and when they answer, Switchvox connects the call to you. The call can come to your customer-service call queue, an IVR, or even an external phone number.

You’ll need some experience in PHP and JavaScript to get this done, but I’ve included code samples to make it as easy as possible for you.

If you want to see the final product of this tutorial in action, then check out my Full Working Demo.

Read more »

Introducing the Switchvox Extend API Test Suite

The Switchvox Extend API Test Suite is a great way to see the XML API in action. Using Digium’s demo Switchvox, or your own, you can build your requests, and see the response from Switchvox. Read more »

PHP Interface for Switchvox Extend API

If you are working in PHP, check out Digium’s official Switchvox Extend API PHP library. Click on the link below to get the install instructions.

If you’re familiar with PHP but would like to work in another language, you still might like to check out the PHP API so that you can quickly duplicate it in that other language. If you write a client library in a language that we don’t already have available, please tell us about it.

Switchvox Extend API PHP Library