I m currently writing a windows service that uses the Asterisk AMI to detect when a call is coming in and then perform a web request based on who the call is from and who it is going to. Does anyone know of an event in Asterisk that I could listen for the includes both of these details? I need the number of the person outside the system who is calling but anything that I could use to identify the internal phone number being called would be fine, as long as it can be used outside of asterisk.
I was looking at the events and they all have the number of the external caller on them however none of them link to the internal caller other than with the uniqueid which unless I build a Dictionary of these in the service I won t be able to use.