Pulling Queue Agent information in order to send email

Good afternoon,

I am trying to pull the agent extension number which answered a call an place in a email. Is there a variable that I can use in order to pull the extension which answered a queue call.

Thank you


Use GoSub() and ${CALLERID(all)}

Check MEMBERINTERFACE variable. You’ll have to set setinterfacevar=yes in queues.conf to make it work.
asteriskdocs.org/en/3rd_Edit … 88901.html

–Satish Barot

I’m going to second what Satish said.

We accomplished this by using setinterfacevar=yes on the queues.conf config, and then using a GoSub:

exten => s,n,Queue(support,tx,${ANNOUNCE},${QUEUE_TIMEOUT},sub-queue-answered)

exten => s,1,NoOp(“Executing sub - queue call answered.”)
same => n,Set(CDR(agentname)=${MEMBERNAME})
same => n(Return),Return()[/code]