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
signature.asc
Description: This is a digitally signed message part
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
