Need queue name in CDR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Dear All,

I am making asterisk report using CDR values given by asterisk. 

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. 

E.g.
Channel                                          DestinationChannel                                      Src                            Destination                                      
SIP/KOT-0000000c                           Local/102@from-queue-6a84;1                         0856511524                9999               (first line in CDR)
Local/102@from-queue-6a84;2           SIP/102-0000000e                                          0856511524                 102                (second line in CDR)


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. 

Please help me. I am still new to asterisk.

Regards,
Pratik
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Arts & Crafts]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]


Add to Google Powered by Linux