Call details out to TCP/IP socket


I’m after a way to answer a call and the details of that call be sent as event or available as an event via a TCP/IP socket. For instance, I dial from no. 123456, to 987654, the call is answered and the number dialled is recorded, and the CLI is recorded, the call is hung up and then these datails are available to our application via a socket.

This is just one instance we may wish to record an alternate number entered by the user when the call is answered.

Does anyone know how to do this or whether this has been done ?