Looking at the uniqueid, I get multiple records for some of them. Am I getting more than one CDR record per call in some cases?

SELECT uniqueid, COUNT(*) FROM asterisk_cdr
GROUP BY uniqueid
HAVING COUNT(*) > 2


Mitch

On 10/26/2012 08:34 AM, Bharat Lalcheta wrote:

Every CDR has uniqueid/callid generated and unique between all records.
This callid generated when call arrives on system. And logged in CDR
record as well. You can use it in your dialplan to bind with your order like
exten => s,1,Set(ORDERID=${UNIQUEID})

--
_____________________________________________________________________
-- 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

Reply via email to