[asterisk-users] How to tie orders taken to specific CDR records

Mitch Claborn mitch_ml at claborn.net
Fri Oct 26 09:24:43 CDT 2012


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})



More information about the asterisk-users mailing list