I’m using AMI to see the callers waiting in queue. I can extract the endpoint’s name from the channel and do a lookup to find the callerID when the endpoint is internal but what about external calls?
What asterisk or AMI command can I use to lookup the caller ID on a external’s channel?
The commands I use in AMI are:
I execute this command and do a regex to retrieve the internal callerID :
I could do coreshowchannels to see it but it will list all the active channels…
Maybe I can somehow pass the PSTN callerID from the dialplan to the AMI?
Any help will be greatly appreciated.