Email Trigger Queue Agent

Hi all.

We currently have a Queue with Extensions that have a Follow Me to External Phones.
Client wanted alerts should be emailed once a call hits the Queue, so we added a additional extension to the Queue with a Follow Me that dials ****101, and we added the below script in extensions_custom.conf

exten => ****101,2,TrySystem(echo “Queue 3 is ringing - from ${CALLERID(name)} ${CALLERID(number)} received at ${STRFTIME(${EPOCH},%l:%M:%S %p %Z on %A %B %e)}” | mail [email protected])

That works awesome, Client recently requested is if possible to send a alert Once a external agent accepted a call and include which agent obviously.

If you have any idea how we can accomplish this, please share.

Thanks
Itzik.