Queue CDR with one uniqueid


I have a trouble witch my AGI script in queue.

I have 3 extension in queue (101,102,103) with force recording call, when call is hangup i get
few variable from AGI CDR → disposition,duration,billsec and start.

And when inbound call has been answered, or not my AGI CDR get always variable from last extensions 103, my CDR table as follows:


UNIQUEID is a a unique ID for the channel producing the CDR; it is not a unique ID for the CDR.

Ok, i know that, but how i can pass through this unique ID to only answered extension? I can do that ?

OK I have solution to my problem.

I change queue ring strategy from ringall to random, and only picked up extension is in uniqueid

My friend just filter by ANSWERED in you sql.