Getting call status after running callme.php?

I’m a noob, please bear with me.

I have setup asterisk to place calls that are scheduled from a seperate server using the callme.php script. My http post is along the lines of:

192.168.0.254/callme.php?number= … o-congrats

The call is placed fine and the message played. However I need to track all of the calls made. I am guessing I can get the information directly from the CDR table (asteriskcdrdb?) but that table does not seem to include the outgoing call number but it does have a uniqueId field.

Ideally, I need to be able to issue the Http post and for it to return an ID once the call is queued. Then after 5 mins time I will look up that ID somewhere to get the status ie. ANSWERED, FAILED etc.

Unless there is an easier way to do this that I am overlooking?

Any help really appreciated. Thanks.