CCXML, XMPP and PHP

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…

  1. Download yourself a copy of Voxeo Prophecy
  2. Grab a copy of the very cool XMPPHP library from Google Code
  3. 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:

`


 
 


`

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:

<br /> connect();<br /> $conn->processUntil("session_start");<br /> $conn->message("someguy@someserver.net", "You are receiving a call from: $ani");<br /> $conn->disconnect();<br /> ?><br />

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!