Sending ACK to other server

I’ve got 2 servers, server A and server B. Where on server A, Java Server is running and on server B Asterisk is running. In manager.conf, I mentioned that server A can access server B for sending data for making outbound calls. This part is working great.

On server B I’m using other application to send paging messages. I’m receiving its data from server A as asterisk gets the data, sends data to a perl script using AGI and later perl script runs 3rd party application for sending paging messages.

The thing I would like to know how can I send back ACK back to server A using AGI?

Please advice.

Perhaps in the form of a call-back with some specific callerid or dialed number that you strip out and parse as an “ack?”