write queue agents id to cdr userfield

Discussion in 'General' started by tomcattyy, Mar 27, 2010.

  1. tomcattyy

    Mar 2, 2010
    Likes Received:
    Hello there,

    I have a queue with a couple users, I want to write whoever answer the call to cdr table userfiled.
    I googled and seems I should enable the
    setinterfacevar=yes to each queue
    and add
    exten => h,1,Set(CDR(userfield)=${MEMBERINTERFACE})

    My question is I can not find out where(what context) to add above line

    I have tried add the line
    at the bottom of [ext-queues] in extensions_additional.conf
    exten => h,1,Set(CDR(userfield)=Agent:${MEMBERINTERFACE})
    and also tried
    exten => h,1,Set(CDR(userfield)=Agent:${AGENT})
    The word "Agent" been written to cdr table but not ${MEMBERINTERFACE} or ${AGENT}

    How should I go from here? Appreciate your help

Share This Page