[asterisk-users] Set CDR userfield for Queues

Carlos Chavez cursor at telecomabmex.com
Fri Jan 22 11:07:10 CST 2010


On Fri, 2010-01-22 at 20:25 +0530, Deep D wrote:
> I want to do something like this
> exten = 1234,n,Queue(6000,c)
> exten = 1234,n,Set(CDR(userfield)=${Agent})   ;; where Agent is the
> agent who answered the call
> exten = 1234,n,Hangup
> 
	Actually because the user will hangup within the Queue application you
cannot do that.  You will have to use the h extension to make the change
to the userfield.  Something like this:

h,1,Set(CDR(userfield)=${MEMBERINTERFACE})

	Make sure you have setinterfacevar=yes in your queue.conf so that
variable is created when the user is connected to the agent.  Another
possibility is to run a macro by using "membermacro=somemacro" and set
the userfield within that macro.  I think that option is only available
on Asterisk 1.6.X and not for older ones though.  You can also run an
AGI script (you can set it as an option in the Queue commando) that will
set the userfield as this AGI is run just before the call is bridged to
the agent but the ${MEMBERINTERFACE} is already set.


-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100122/e3df068b/attachment.pgp 


More information about the asterisk-users mailing list