Ever want to build an IVR application that could do screen pops? Want to build it using open standards / open source software? Guess what; you can. Here’s how…
- Download yourself a copy of Voxeo Prophecy
- Grab a copy of the very cool XMPPHP library from Google Code
- Get yourself an XMPP server and a client, or simply use your Google account.
I won’t go over all of the gory details here on how to build a screen pop capable IVR, but if you can build a simple CCXML app to accept an inbound call, you’re more than ready to do this on your own. You can also check out the Voxeo tutorials for pointers.
On an inbound call, I usually grab the caller’s ANI in order to make it part of the screen pop:
<transition state="'init'" event="connection.alerting">
<assign name="ani" expr="event$.connection.remote"/>
<send target="'screen_pop.php'" targettype="'basichttp'" namelist="ani"/>
Sending this information to a simple PHP script built with the XMPPHP library allows you to generate a screen pop via an instant message to the XMPP account of your choice:
$conn->message("email@example.com", "You are receiving a call from: $ani");
How cool is that!
Obviously there are lots of options for looking up information on the caller, once you have their ANI, that you can use to augment the information in your screen pop.
Just goes to show you, there isn’t much you can’t do with open source / open standards.
Viva screen pop!