Hello
I want to set the CDR userfield AFTER the call has been picked up by an agent of the queue.
I tried the following:
exten = s,1,Queue(callcenter,r)
exten = s,n,Set(CDR(userfield)=${VAR})
exten = s,n,Hangup()
but $VAR is not written in the userfield
In the other hand, if I set $VAR before ringing the queue, the following is working fine :
exten = s,n,Set(CDR(userfield)=${VAR})
exten = s,1,Queue(callcenter,r)
exten = s,n,Hangup()
the problem is that $VAR is set when an agent has picked up the call so I can’t set the userfield before the Queue command
any idea ?
thanks