How to know when someone in a queue answered?

Is there a way, via the dialplan, to know the moment when somebody that’s sitting in a queue has been answered? Is there a special context similar to the hangup (h) context, where I can put a shell or curl command, when somebody in a queue has been answered? We curl out when a call first begins, when it ends, but it would be nice to know the status of clients sitting in the queue.

Using Queue you can use the membermacro and if i recall right there is a Bridgedpeer variable.