I am initiating calls from a windows program using the Asterisk Management API . First a socket connection is established and after that the program uses “Action: Originate” and a bunch of other instruction/parameters to trigger a call.
First the phone on the user’s desk rings, once picked up, it calls the destination. This works fine.
What i like to work out is how to map the actual call to the entry in the MySQL DB of asterisk?
I can see a number of fields/columns in the DB those relate to a call, but I would like to save an ID or somesort of identifier that is more unique to the caller’s extension and the dialled number.
Is there away to get the uniqueId of the call through the AMI? Or what else isavaileble?