[asterisk-users] Set CDR userfield for Queues

Deep D deep.d2010 at gmail.com
Fri Jan 22 08:55:21 CST 2010


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


On Fri, Jan 22, 2010 at 8:01 PM, Danny Nicholas <danny at debsinc.com> wrote:
> Since userfield is a variable, that would be a qualified yes.
> Here's how I use it in my dialplan
>
> - exten => NXXXXXX,1,noop(Answer())
> - exten => NXXXXXX,n,Verbose (Dial DAHDI g1 ${EXTEN})
> - exten => NXXXXXX,n,Dial(DAHDI/g1/${EXTEN},60,miKkTtg)
> - exten => NXXXXXX,n,Set(CDR(userfield)=${CDR(userfield)}
> -Hangupcause:${HANGUPCAUSE})
> - exten => NXXXXXX,n,Hangup(${HANGUP_CAUSE})
>
> How I envision what you're asking:
> - exten => s,n,Set(CDR(userfield)=${CDR(userfield)} -Agent:${AGENT})
>
> --
> Danny Nicholas
> --
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Deep D
> Sent: Friday, January 22, 2010 8:23 AM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] Set CDR userfield for Queues
>
> Hello,
>
> I am using Queue application with multiple agents in each queue. I
> want to set the CDR(userfield) for each cdr based on the agent
> answering the call. Is it possible to do this?
>
> Thanks
>
> --
> _____________________________________________________________________
> -- 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
>
>
> --
> _____________________________________________________________________
> -- 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