Putting Your Web Service to the Test

As you can guess from recent topics, web services have been a hot issue around here. Whether it’s in the dialplan or the agent scripting, we find that call centers are increasingly looking for live data delivered in real time, and web services are a great way to do this.

Where things do sometimes falter is on initial setup and testing. Hours and hours get spent diagnosing whether an issue is on the remote side or in the way the receiver is interpreting the data. Tests get set up and run, the results are checked, then some incremental change is made and the test run again.

It really doesn’t have to be that complicated.

There are a couple of tools that we use to help cut down the testing and verification time:

1) Just create a file and have it downloaded. 

If you’re sending a request and expecting an XML or JSON file with certain fields back, just create a simple valid case in the form of a file. Break out your favourite text editor and write it out.  It could be something as simple as:


Continue reading Putting Your Web Service to the Test

What To Do Before Someone Lets The Smoke Out of Your Server

The client was worried because one of the Asterisk servers had gone down without any notice at all. The overseer process on the other Asterisk server had noticed, and had taken over as the active server. The disruption was minimal. Agents were at work. But the client wanted to know what had happened, and what we could do to prevent the issue in the first place. After 30 minutes of poring over logs, digging around, and contacting the colo, we discovered that a tech had decided to swap out the power bar connected to that server. There was no notice, and not even a courtesy three-finger salute. Continue reading What To Do Before Someone Lets The Smoke Out of Your Server