I’m trying to devise a way to allow users to determine who is calling before answering the call in pickup group (they cannot see who is calling, because the telephone ringing is not theirs).
I thought the easiest way would be AGI script on special extension (that users would use to pick up calls in pickup group, instead of *8). The problem is, I cannot seem to find a way to determine who is calling before actually using PickUp to fetch the call. And after executing PickUp command, my AGI script (understandably) loses the connection with user station and cannot send the message anymore (besides, I still don’t have caller id at that point), so it terminates.
It would seem that I need to determine the callerid before actually issuing PickUp command. I could not find any way to determine whether there is a call ringing on specific pickupgroup. Is there a way to get list of currently ringing extensions or at least all currently active channels in the AGI? Some AGI equivalent of “core show channels”, you might say. Of course, better ideas for implementing this are very much welcome.