Pulling Queue Agent information in order to send email

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Pulling Queue Agent information in order to send email

Postby pguima » Thu Jan 07, 2016 2:08 pm

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

pguima
pguima
Newsterisk
 
Posts: 1
Joined: Thu Jan 07, 2016 2:05 pm

Re: Pulling Queue Agent information in order to send email

Postby ambiorixg12 » Thu Jan 07, 2016 4:03 pm

Use GoSub() and ${CALLERID(all)}
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic

Re: Pulling Queue Agent information in order to send email

Postby satish4asterisk » Fri Jan 08, 2016 5:48 am

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

--Satish Barot
satish4asterisk
Oldsterisk
 
Posts: 210
Joined: Fri Dec 23, 2011 1:12 am

Re: Pulling Queue Agent information in order to send email

Postby csyria » Fri Jan 08, 2016 11:35 am

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:
Code: Select all
exten => s,n,Queue(support,tx,,${ANNOUNCE},${QUEUE_TIMEOUT},,,sub-queue-answered)

[sub-queue-answered]
exten => s,1,NoOp("Executing sub - queue call answered.")
same => n,Set(CDR(agentname)=${MEMBERNAME})
same => n(Return),Return()
csyria
Newsterisk
 
Posts: 8
Joined: Thu Oct 10, 2013 3:18 am


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest