Check which queue member was called before hangup

Hello!

I have a queue working fine. There are SIP clients as members in the queue and sometimes there are members with mobile phones (usually in evening and on weekends). If the member with mobile phone don’t answer the call, I need to send them an SMS about the caller and some other informations.
Sending SMS is OK, I can do it in the ‘h’ extension.

I can decide if the call was answered or not. But I don’t know who was called in the queue, for who I have to send the SMS. Is it possible to get the called mobile number in the queue, and how?

I tried the QUEUE_MEMBER_LIST() application but I couldn’t determine the mobile number if there where more member in the queue same time.
Please help me! Thanks!