[asterisk-users] Set CDR userfield for Queues
Deep D
deep.d2010 at gmail.com
Fri Jan 22 12:15:28 CST 2010
The 'h' extension worked. Thanks.
The other option of 'memebermacro' did not work. On the asterisk
console I could see that the macro is executed and cdr userfield is
set when agent answers the call, but the userfield doesn't show up in
the generated cdr.
Also I had one more question. Doesn't "setinterfacevar=yes" work when
it is declared in the general section? I had to declare it for each
queues.
On Fri, Jan 22, 2010 at 10:37 PM, Carlos Chavez <cursor at telecomabmex.com> wrote:
> 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
>
> --
> _____________________________________________________________________
> -- 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
>
More information about the asterisk-users
mailing list