Dear All,<div><br></div><div>I am making asterisk report using CDR values given by asterisk. </div><div><br></div><div>I have queues which consist of multiple members (extension). Also, an extension may be in multiple queues. So, I want CDR to record the name/number of queue from which the call was originated. </div>
<div><br></div><div>E.g.</div><div><b>Channel</b> <b> DestinationChannel</b> <b> Src</b> <b> Destination </b> </div>
<div>SIP/KOT-0000000c Local/102@from-queue-6a84;1 0856511524 9999 (first line in CDR)</div><div>Local/102@from-queue-6a84;2 SIP/102-0000000e 0856511524 102 (second line in CDR)</div>
<div><br></div><div><br></div><div>In above example, 9999 is a queue and 102 is an extension which is member to that queue. So call comes from 0856511524 and goes to queue 9999 first and queue routes call to 102 extension. So what I need is when the queue is routed to extension 102 (in the seconds line), I want to show the queue (9999) also. I know that I can track the queue by comparing Destination Channel of queue(first line) with Channel of extension (second line). But this will make my query very long and hard. </div>
<div><br></div><div>Please help me. I am still new to asterisk.</div><div><br></div><div>Regards,</div><div>Pratik</div>