[2025-01-05 00:00:05] Production.INFO: next invoice date [2025-01-05 00:00:05] Production.INFO: 2025-02-05 [2025-01-05 00:00:05] Production.INFO: getdaysdiff [2025-01-05 00:00:05] Production.INFO: +31 [2025-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2025-01-05 00:00:05,0,0,,,0) [2025-01-05 00:00:05] Production.INFO: next invoice date [2025-01-05 00:00:05] Production.INFO: 2025-02-05 [2025-01-05 00:00:05] Production.INFO: getdaysdiff [2025-01-05 00:00:05] Production.INFO: +31 [2025-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2025-01-05 00:00:05,0,0,,,0) [2025-01-05 00:00:05] Production.INFO: next invoice date [2025-01-05 00:00:05] Production.INFO: 2025-02-05 [2025-01-05 00:00:05] Production.INFO: getdaysdiff [2025-01-05 00:00:05] Production.INFO: +31 [2025-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2025-01-05 00:00:05,0,0,,,0) [2025-01-05 00:00:05] Production.INFO: next invoice date [2025-01-05 00:00:05] Production.INFO: 2025-02-05 [2025-01-05 00:00:05] Production.INFO: getdaysdiff [2025-01-05 00:00:05] Production.INFO: +31 [2025-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2025-01-05 00:00:05,0,0,,,0) [2025-01-05 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:00:06 [end_date_ymd] => 2025-01-05 00:00:06 [RateCDR] => 1 ) [2025-01-05 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:00:06' and `end` < '2025-01-05 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:00:20] Production.INFO: count ==845 [2025-01-05 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-04 21:00:06 - End Time 2025-01-05 00:00:06 [2025-01-05 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176407', 'tblTempUsageDetail_20' ) start [2025-01-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176407', 'tblTempUsageDetail_20' ) end [2025-01-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176407', 'tblTempVendorCDR_20' ) start [2025-01-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176407', 'tblTempVendorCDR_20' ) end [2025-01-05 00:00:21] Production.INFO: ProcessCDR(1,14176407,1,1,2) [2025-01-05 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176407', 'tblTempUsageDetail_20' ) start [2025-01-05 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176407', 'tblTempUsageDetail_20' ) end [2025-01-05 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:00:26] Production.INFO: ==10224== Releasing lock... [2025-01-05 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:00:26] Production.INFO: 35 MB #Memory Used# [2025-01-05 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:01:06 [end_date_ymd] => 2025-01-05 00:01:06 [RateCDR] => 1 ) [2025-01-05 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:01:06' and `end` < '2025-01-05 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:01:27] Production.INFO: count ==831 [2025-01-05 00:01:27] Production.ERROR: pbx CDR StartTime 2025-01-04 21:01:06 - End Time 2025-01-05 00:01:06 [2025-01-05 00:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176412', 'tblTempUsageDetail_20' ) start [2025-01-05 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176412', 'tblTempUsageDetail_20' ) end [2025-01-05 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176412', 'tblTempVendorCDR_20' ) start [2025-01-05 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176412', 'tblTempVendorCDR_20' ) end [2025-01-05 00:01:27] Production.INFO: ProcessCDR(1,14176412,1,1,2) [2025-01-05 00:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176412', 'tblTempUsageDetail_20' ) start [2025-01-05 00:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176412', 'tblTempUsageDetail_20' ) end [2025-01-05 00:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:01:30] Production.INFO: ==10341== Releasing lock... [2025-01-05 00:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:01:30] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:02:05 [end_date_ymd] => 2025-01-05 00:02:05 [RateCDR] => 1 ) [2025-01-05 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:02:05' and `end` < '2025-01-05 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:02:17] Production.INFO: count ==253 [2025-01-05 00:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:02:05 - End Time 2025-01-05 00:02:05 [2025-01-05 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176417', 'tblTempUsageDetail_20' ) start [2025-01-05 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176417', 'tblTempUsageDetail_20' ) end [2025-01-05 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176417', 'tblTempVendorCDR_20' ) start [2025-01-05 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176417', 'tblTempVendorCDR_20' ) end [2025-01-05 00:02:18] Production.INFO: ProcessCDR(1,14176417,1,1,2) [2025-01-05 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176417', 'tblTempUsageDetail_20' ) start [2025-01-05 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176417', 'tblTempUsageDetail_20' ) end [2025-01-05 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:02:22] Production.INFO: ==10446== Releasing lock... [2025-01-05 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:03:05 [end_date_ymd] => 2025-01-05 00:03:05 [RateCDR] => 1 ) [2025-01-05 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:03:05' and `end` < '2025-01-05 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:03:26] Production.INFO: count ==251 [2025-01-05 00:03:26] Production.ERROR: pbx CDR StartTime 2025-01-04 21:03:05 - End Time 2025-01-05 00:03:05 [2025-01-05 00:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176422', 'tblTempUsageDetail_20' ) start [2025-01-05 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176422', 'tblTempUsageDetail_20' ) end [2025-01-05 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176422', 'tblTempVendorCDR_20' ) start [2025-01-05 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176422', 'tblTempVendorCDR_20' ) end [2025-01-05 00:03:26] Production.INFO: ProcessCDR(1,14176422,1,1,2) [2025-01-05 00:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176422', 'tblTempUsageDetail_20' ) start [2025-01-05 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176422', 'tblTempUsageDetail_20' ) end [2025-01-05 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:03:31] Production.INFO: ==10551== Releasing lock... [2025-01-05 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:03:31] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:04:05 [end_date_ymd] => 2025-01-05 00:04:05 [RateCDR] => 1 ) [2025-01-05 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:04:05' and `end` < '2025-01-05 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:04:17] Production.INFO: count ==255 [2025-01-05 00:04:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:04:05 - End Time 2025-01-05 00:04:05 [2025-01-05 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176427', 'tblTempUsageDetail_20' ) start [2025-01-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176427', 'tblTempUsageDetail_20' ) end [2025-01-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176427', 'tblTempVendorCDR_20' ) start [2025-01-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176427', 'tblTempVendorCDR_20' ) end [2025-01-05 00:04:17] Production.INFO: ProcessCDR(1,14176427,1,1,2) [2025-01-05 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176427', 'tblTempUsageDetail_20' ) start [2025-01-05 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176427', 'tblTempUsageDetail_20' ) end [2025-01-05 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:04:22] Production.INFO: ==10650== Releasing lock... [2025-01-05 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:05:05 [end_date_ymd] => 2025-01-05 00:05:05 [RateCDR] => 1 ) [2025-01-05 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:05:05' and `end` < '2025-01-05 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:05:18] Production.INFO: count ==254 [2025-01-05 00:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:05:05 - End Time 2025-01-05 00:05:05 [2025-01-05 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176432', 'tblTempUsageDetail_20' ) start [2025-01-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176432', 'tblTempUsageDetail_20' ) end [2025-01-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176432', 'tblTempVendorCDR_20' ) start [2025-01-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176432', 'tblTempVendorCDR_20' ) end [2025-01-05 00:05:18] Production.INFO: ProcessCDR(1,14176432,1,1,2) [2025-01-05 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176432', 'tblTempUsageDetail_20' ) start [2025-01-05 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176432', 'tblTempUsageDetail_20' ) end [2025-01-05 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:05:21] Production.INFO: ==10752== Releasing lock... [2025-01-05 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:06:05 [end_date_ymd] => 2025-01-05 00:06:05 [RateCDR] => 1 ) [2025-01-05 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:06:05' and `end` < '2025-01-05 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:06:18] Production.INFO: count ==254 [2025-01-05 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:06:05 - End Time 2025-01-05 00:06:05 [2025-01-05 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176437', 'tblTempUsageDetail_20' ) start [2025-01-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176437', 'tblTempUsageDetail_20' ) end [2025-01-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176437', 'tblTempVendorCDR_20' ) start [2025-01-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176437', 'tblTempVendorCDR_20' ) end [2025-01-05 00:06:18] Production.INFO: ProcessCDR(1,14176437,1,1,2) [2025-01-05 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176437', 'tblTempUsageDetail_20' ) start [2025-01-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176437', 'tblTempUsageDetail_20' ) end [2025-01-05 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:06:21] Production.INFO: ==10902== Releasing lock... [2025-01-05 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:07:05 [end_date_ymd] => 2025-01-05 00:07:05 [RateCDR] => 1 ) [2025-01-05 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:07:05' and `end` < '2025-01-05 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:07:18] Production.INFO: count ==254 [2025-01-05 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:07:05 - End Time 2025-01-05 00:07:05 [2025-01-05 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176442', 'tblTempUsageDetail_20' ) start [2025-01-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176442', 'tblTempUsageDetail_20' ) end [2025-01-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176442', 'tblTempVendorCDR_20' ) start [2025-01-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176442', 'tblTempVendorCDR_20' ) end [2025-01-05 00:07:18] Production.INFO: ProcessCDR(1,14176442,1,1,2) [2025-01-05 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176442', 'tblTempUsageDetail_20' ) start [2025-01-05 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176442', 'tblTempUsageDetail_20' ) end [2025-01-05 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:07:21] Production.INFO: ==11006== Releasing lock... [2025-01-05 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:08:04 [end_date_ymd] => 2025-01-05 00:08:04 [RateCDR] => 1 ) [2025-01-05 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:08:04' and `end` < '2025-01-05 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:08:20] Production.INFO: count ==254 [2025-01-05 00:08:20] Production.ERROR: pbx CDR StartTime 2025-01-04 21:08:04 - End Time 2025-01-05 00:08:04 [2025-01-05 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176447', 'tblTempUsageDetail_20' ) start [2025-01-05 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176447', 'tblTempUsageDetail_20' ) end [2025-01-05 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176447', 'tblTempVendorCDR_20' ) start [2025-01-05 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176447', 'tblTempVendorCDR_20' ) end [2025-01-05 00:08:20] Production.INFO: ProcessCDR(1,14176447,1,1,2) [2025-01-05 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176447', 'tblTempUsageDetail_20' ) start [2025-01-05 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176447', 'tblTempUsageDetail_20' ) end [2025-01-05 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:08:23] Production.INFO: ==11108== Releasing lock... [2025-01-05 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:09:06 [end_date_ymd] => 2025-01-05 00:09:06 [RateCDR] => 1 ) [2025-01-05 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:09:06' and `end` < '2025-01-05 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:09:19] Production.INFO: count ==250 [2025-01-05 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:09:06 - End Time 2025-01-05 00:09:06 [2025-01-05 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176452', 'tblTempUsageDetail_20' ) start [2025-01-05 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176452', 'tblTempUsageDetail_20' ) end [2025-01-05 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176452', 'tblTempVendorCDR_20' ) start [2025-01-05 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176452', 'tblTempVendorCDR_20' ) end [2025-01-05 00:09:19] Production.INFO: ProcessCDR(1,14176452,1,1,2) [2025-01-05 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176452', 'tblTempUsageDetail_20' ) start [2025-01-05 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176452', 'tblTempUsageDetail_20' ) end [2025-01-05 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:09:22] Production.INFO: ==11210== Releasing lock... [2025-01-05 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:10:06 [end_date_ymd] => 2025-01-05 00:10:06 [RateCDR] => 1 ) [2025-01-05 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:10:06' and `end` < '2025-01-05 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:10:19] Production.INFO: count ==258 [2025-01-05 00:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:10:06 - End Time 2025-01-05 00:10:06 [2025-01-05 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176458', 'tblTempUsageDetail_20' ) start [2025-01-05 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176458', 'tblTempUsageDetail_20' ) end [2025-01-05 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176458', 'tblTempVendorCDR_20' ) start [2025-01-05 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176458', 'tblTempVendorCDR_20' ) end [2025-01-05 00:10:19] Production.INFO: ProcessCDR(1,14176458,1,1,2) [2025-01-05 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176458', 'tblTempUsageDetail_20' ) start [2025-01-05 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176458', 'tblTempUsageDetail_20' ) end [2025-01-05 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:10:22] Production.INFO: ==11315== Releasing lock... [2025-01-05 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:11:05 [end_date_ymd] => 2025-01-05 00:11:05 [RateCDR] => 1 ) [2025-01-05 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:11:05' and `end` < '2025-01-05 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:11:18] Production.INFO: count ==265 [2025-01-05 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:11:05 - End Time 2025-01-05 00:11:05 [2025-01-05 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176463', 'tblTempUsageDetail_20' ) start [2025-01-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176463', 'tblTempUsageDetail_20' ) end [2025-01-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176463', 'tblTempVendorCDR_20' ) start [2025-01-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176463', 'tblTempVendorCDR_20' ) end [2025-01-05 00:11:18] Production.INFO: ProcessCDR(1,14176463,1,1,2) [2025-01-05 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176463', 'tblTempUsageDetail_20' ) start [2025-01-05 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176463', 'tblTempUsageDetail_20' ) end [2025-01-05 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:11:21] Production.INFO: ==11424== Releasing lock... [2025-01-05 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:12:05 [end_date_ymd] => 2025-01-05 00:12:05 [RateCDR] => 1 ) [2025-01-05 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:12:05' and `end` < '2025-01-05 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:12:18] Production.INFO: count ==263 [2025-01-05 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:12:05 - End Time 2025-01-05 00:12:05 [2025-01-05 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176468', 'tblTempUsageDetail_20' ) start [2025-01-05 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176468', 'tblTempUsageDetail_20' ) end [2025-01-05 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176468', 'tblTempVendorCDR_20' ) start [2025-01-05 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176468', 'tblTempVendorCDR_20' ) end [2025-01-05 00:12:18] Production.INFO: ProcessCDR(1,14176468,1,1,2) [2025-01-05 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176468', 'tblTempUsageDetail_20' ) start [2025-01-05 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176468', 'tblTempUsageDetail_20' ) end [2025-01-05 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:12:21] Production.INFO: ==11528== Releasing lock... [2025-01-05 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:13:04 [end_date_ymd] => 2025-01-05 00:13:04 [RateCDR] => 1 ) [2025-01-05 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:13:04' and `end` < '2025-01-05 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:13:17] Production.INFO: count ==264 [2025-01-05 00:13:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:13:04 - End Time 2025-01-05 00:13:04 [2025-01-05 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176473', 'tblTempUsageDetail_20' ) start [2025-01-05 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176473', 'tblTempUsageDetail_20' ) end [2025-01-05 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176473', 'tblTempVendorCDR_20' ) start [2025-01-05 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176473', 'tblTempVendorCDR_20' ) end [2025-01-05 00:13:17] Production.INFO: ProcessCDR(1,14176473,1,1,2) [2025-01-05 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176473', 'tblTempUsageDetail_20' ) start [2025-01-05 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176473', 'tblTempUsageDetail_20' ) end [2025-01-05 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:13:22] Production.INFO: ==11629== Releasing lock... [2025-01-05 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:14:06 [end_date_ymd] => 2025-01-05 00:14:06 [RateCDR] => 1 ) [2025-01-05 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:14:06' and `end` < '2025-01-05 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:14:18] Production.INFO: count ==262 [2025-01-05 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:14:06 - End Time 2025-01-05 00:14:06 [2025-01-05 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176478', 'tblTempUsageDetail_20' ) start [2025-01-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176478', 'tblTempUsageDetail_20' ) end [2025-01-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176478', 'tblTempVendorCDR_20' ) start [2025-01-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176478', 'tblTempVendorCDR_20' ) end [2025-01-05 00:14:18] Production.INFO: ProcessCDR(1,14176478,1,1,2) [2025-01-05 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176478', 'tblTempUsageDetail_20' ) start [2025-01-05 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176478', 'tblTempUsageDetail_20' ) end [2025-01-05 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:14:22] Production.INFO: ==11732== Releasing lock... [2025-01-05 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:15:05 [end_date_ymd] => 2025-01-05 00:15:05 [RateCDR] => 1 ) [2025-01-05 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:15:05' and `end` < '2025-01-05 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:15:18] Production.INFO: count ==262 [2025-01-05 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:15:05 - End Time 2025-01-05 00:15:05 [2025-01-05 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176483', 'tblTempUsageDetail_20' ) start [2025-01-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176483', 'tblTempUsageDetail_20' ) end [2025-01-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176483', 'tblTempVendorCDR_20' ) start [2025-01-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176483', 'tblTempVendorCDR_20' ) end [2025-01-05 00:15:18] Production.INFO: ProcessCDR(1,14176483,1,1,2) [2025-01-05 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176483', 'tblTempUsageDetail_20' ) start [2025-01-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176483', 'tblTempUsageDetail_20' ) end [2025-01-05 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:15:21] Production.INFO: ==11834== Releasing lock... [2025-01-05 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:16:05 [end_date_ymd] => 2025-01-05 00:16:05 [RateCDR] => 1 ) [2025-01-05 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:16:05' and `end` < '2025-01-05 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:16:18] Production.INFO: count ==266 [2025-01-05 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:16:05 - End Time 2025-01-05 00:16:05 [2025-01-05 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176488', 'tblTempUsageDetail_20' ) start [2025-01-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176488', 'tblTempUsageDetail_20' ) end [2025-01-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176488', 'tblTempVendorCDR_20' ) start [2025-01-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176488', 'tblTempVendorCDR_20' ) end [2025-01-05 00:16:18] Production.INFO: ProcessCDR(1,14176488,1,1,2) [2025-01-05 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176488', 'tblTempUsageDetail_20' ) start [2025-01-05 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176488', 'tblTempUsageDetail_20' ) end [2025-01-05 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:16:21] Production.INFO: ==11938== Releasing lock... [2025-01-05 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:17:05 [end_date_ymd] => 2025-01-05 00:17:05 [RateCDR] => 1 ) [2025-01-05 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:17:05' and `end` < '2025-01-05 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:17:18] Production.INFO: count ==266 [2025-01-05 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:17:05 - End Time 2025-01-05 00:17:05 [2025-01-05 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176493', 'tblTempUsageDetail_20' ) start [2025-01-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176493', 'tblTempUsageDetail_20' ) end [2025-01-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176493', 'tblTempVendorCDR_20' ) start [2025-01-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176493', 'tblTempVendorCDR_20' ) end [2025-01-05 00:17:18] Production.INFO: ProcessCDR(1,14176493,1,1,2) [2025-01-05 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176493', 'tblTempUsageDetail_20' ) start [2025-01-05 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176493', 'tblTempUsageDetail_20' ) end [2025-01-05 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:17:21] Production.INFO: ==12050== Releasing lock... [2025-01-05 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:18:05 [end_date_ymd] => 2025-01-05 00:18:05 [RateCDR] => 1 ) [2025-01-05 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:18:05' and `end` < '2025-01-05 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:18:18] Production.INFO: count ==266 [2025-01-05 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:18:05 - End Time 2025-01-05 00:18:05 [2025-01-05 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176498', 'tblTempUsageDetail_20' ) start [2025-01-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176498', 'tblTempUsageDetail_20' ) end [2025-01-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176498', 'tblTempVendorCDR_20' ) start [2025-01-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176498', 'tblTempVendorCDR_20' ) end [2025-01-05 00:18:18] Production.INFO: ProcessCDR(1,14176498,1,1,2) [2025-01-05 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176498', 'tblTempUsageDetail_20' ) start [2025-01-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176498', 'tblTempUsageDetail_20' ) end [2025-01-05 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:18:21] Production.INFO: ==12168== Releasing lock... [2025-01-05 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:19:05 [end_date_ymd] => 2025-01-05 00:19:05 [RateCDR] => 1 ) [2025-01-05 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:19:05' and `end` < '2025-01-05 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:19:18] Production.INFO: count ==266 [2025-01-05 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:19:05 - End Time 2025-01-05 00:19:05 [2025-01-05 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176503', 'tblTempUsageDetail_20' ) start [2025-01-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176503', 'tblTempUsageDetail_20' ) end [2025-01-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176503', 'tblTempVendorCDR_20' ) start [2025-01-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176503', 'tblTempVendorCDR_20' ) end [2025-01-05 00:19:18] Production.INFO: ProcessCDR(1,14176503,1,1,2) [2025-01-05 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176503', 'tblTempUsageDetail_20' ) start [2025-01-05 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176503', 'tblTempUsageDetail_20' ) end [2025-01-05 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:19:21] Production.INFO: ==12283== Releasing lock... [2025-01-05 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:20:05 [end_date_ymd] => 2025-01-05 00:20:05 [RateCDR] => 1 ) [2025-01-05 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:20:05' and `end` < '2025-01-05 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:20:18] Production.INFO: count ==270 [2025-01-05 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:20:05 - End Time 2025-01-05 00:20:05 [2025-01-05 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176509', 'tblTempUsageDetail_20' ) start [2025-01-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176509', 'tblTempUsageDetail_20' ) end [2025-01-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176509', 'tblTempVendorCDR_20' ) start [2025-01-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176509', 'tblTempVendorCDR_20' ) end [2025-01-05 00:20:18] Production.INFO: ProcessCDR(1,14176509,1,1,2) [2025-01-05 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176509', 'tblTempUsageDetail_20' ) start [2025-01-05 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176509', 'tblTempUsageDetail_20' ) end [2025-01-05 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:20:21] Production.INFO: ==12397== Releasing lock... [2025-01-05 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:21:05 [end_date_ymd] => 2025-01-05 00:21:05 [RateCDR] => 1 ) [2025-01-05 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:21:05' and `end` < '2025-01-05 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:21:18] Production.INFO: count ==284 [2025-01-05 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:21:05 - End Time 2025-01-05 00:21:05 [2025-01-05 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176514', 'tblTempUsageDetail_20' ) start [2025-01-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176514', 'tblTempUsageDetail_20' ) end [2025-01-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176514', 'tblTempVendorCDR_20' ) start [2025-01-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176514', 'tblTempVendorCDR_20' ) end [2025-01-05 00:21:18] Production.INFO: ProcessCDR(1,14176514,1,1,2) [2025-01-05 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176514', 'tblTempUsageDetail_20' ) start [2025-01-05 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176514', 'tblTempUsageDetail_20' ) end [2025-01-05 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:21:21] Production.INFO: ==12514== Releasing lock... [2025-01-05 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:22:05 [end_date_ymd] => 2025-01-05 00:22:05 [RateCDR] => 1 ) [2025-01-05 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:22:05' and `end` < '2025-01-05 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:22:18] Production.INFO: count ==278 [2025-01-05 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:22:05 - End Time 2025-01-05 00:22:05 [2025-01-05 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176519', 'tblTempUsageDetail_20' ) start [2025-01-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176519', 'tblTempUsageDetail_20' ) end [2025-01-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176519', 'tblTempVendorCDR_20' ) start [2025-01-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176519', 'tblTempVendorCDR_20' ) end [2025-01-05 00:22:18] Production.INFO: ProcessCDR(1,14176519,1,1,2) [2025-01-05 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176519', 'tblTempUsageDetail_20' ) start [2025-01-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176519', 'tblTempUsageDetail_20' ) end [2025-01-05 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:22:21] Production.INFO: ==12669== Releasing lock... [2025-01-05 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:23:05 [end_date_ymd] => 2025-01-05 00:23:05 [RateCDR] => 1 ) [2025-01-05 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:23:05' and `end` < '2025-01-05 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:23:18] Production.INFO: count ==276 [2025-01-05 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:23:05 - End Time 2025-01-05 00:23:05 [2025-01-05 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176524', 'tblTempUsageDetail_20' ) start [2025-01-05 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176524', 'tblTempUsageDetail_20' ) end [2025-01-05 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176524', 'tblTempVendorCDR_20' ) start [2025-01-05 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176524', 'tblTempVendorCDR_20' ) end [2025-01-05 00:23:18] Production.INFO: ProcessCDR(1,14176524,1,1,2) [2025-01-05 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176524', 'tblTempUsageDetail_20' ) start [2025-01-05 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176524', 'tblTempUsageDetail_20' ) end [2025-01-05 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:23:21] Production.INFO: ==12789== Releasing lock... [2025-01-05 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:24:05 [end_date_ymd] => 2025-01-05 00:24:05 [RateCDR] => 1 ) [2025-01-05 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:24:05' and `end` < '2025-01-05 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:24:19] Production.INFO: count ==271 [2025-01-05 00:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:24:05 - End Time 2025-01-05 00:24:05 [2025-01-05 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176529', 'tblTempUsageDetail_20' ) start [2025-01-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176529', 'tblTempUsageDetail_20' ) end [2025-01-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176529', 'tblTempVendorCDR_20' ) start [2025-01-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176529', 'tblTempVendorCDR_20' ) end [2025-01-05 00:24:19] Production.INFO: ProcessCDR(1,14176529,1,1,2) [2025-01-05 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176529', 'tblTempUsageDetail_20' ) start [2025-01-05 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176529', 'tblTempUsageDetail_20' ) end [2025-01-05 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:24:22] Production.INFO: ==12900== Releasing lock... [2025-01-05 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:25:05 [end_date_ymd] => 2025-01-05 00:25:05 [RateCDR] => 1 ) [2025-01-05 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:25:05' and `end` < '2025-01-05 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:25:18] Production.INFO: count ==267 [2025-01-05 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:25:05 - End Time 2025-01-05 00:25:05 [2025-01-05 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176534', 'tblTempUsageDetail_20' ) start [2025-01-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176534', 'tblTempUsageDetail_20' ) end [2025-01-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176534', 'tblTempVendorCDR_20' ) start [2025-01-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176534', 'tblTempVendorCDR_20' ) end [2025-01-05 00:25:18] Production.INFO: ProcessCDR(1,14176534,1,1,2) [2025-01-05 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176534', 'tblTempUsageDetail_20' ) start [2025-01-05 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176534', 'tblTempUsageDetail_20' ) end [2025-01-05 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:25:21] Production.INFO: ==13014== Releasing lock... [2025-01-05 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:26:05 [end_date_ymd] => 2025-01-05 00:26:05 [RateCDR] => 1 ) [2025-01-05 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:26:05' and `end` < '2025-01-05 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:26:18] Production.INFO: count ==267 [2025-01-05 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:26:05 - End Time 2025-01-05 00:26:05 [2025-01-05 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176539', 'tblTempUsageDetail_20' ) start [2025-01-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176539', 'tblTempUsageDetail_20' ) end [2025-01-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176539', 'tblTempVendorCDR_20' ) start [2025-01-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176539', 'tblTempVendorCDR_20' ) end [2025-01-05 00:26:18] Production.INFO: ProcessCDR(1,14176539,1,1,2) [2025-01-05 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176539', 'tblTempUsageDetail_20' ) start [2025-01-05 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176539', 'tblTempUsageDetail_20' ) end [2025-01-05 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:26:21] Production.INFO: ==13131== Releasing lock... [2025-01-05 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:27:04 [end_date_ymd] => 2025-01-05 00:27:04 [RateCDR] => 1 ) [2025-01-05 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:27:04' and `end` < '2025-01-05 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:27:17] Production.INFO: count ==269 [2025-01-05 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:27:04 - End Time 2025-01-05 00:27:04 [2025-01-05 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176544', 'tblTempUsageDetail_20' ) start [2025-01-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176544', 'tblTempUsageDetail_20' ) end [2025-01-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176544', 'tblTempVendorCDR_20' ) start [2025-01-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176544', 'tblTempVendorCDR_20' ) end [2025-01-05 00:27:17] Production.INFO: ProcessCDR(1,14176544,1,1,2) [2025-01-05 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176544', 'tblTempUsageDetail_20' ) start [2025-01-05 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176544', 'tblTempUsageDetail_20' ) end [2025-01-05 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:27:20] Production.INFO: ==13252== Releasing lock... [2025-01-05 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:28:05 [end_date_ymd] => 2025-01-05 00:28:05 [RateCDR] => 1 ) [2025-01-05 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:28:05' and `end` < '2025-01-05 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:28:18] Production.INFO: count ==269 [2025-01-05 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:28:05 - End Time 2025-01-05 00:28:05 [2025-01-05 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176549', 'tblTempUsageDetail_20' ) start [2025-01-05 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176549', 'tblTempUsageDetail_20' ) end [2025-01-05 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176549', 'tblTempVendorCDR_20' ) start [2025-01-05 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176549', 'tblTempVendorCDR_20' ) end [2025-01-05 00:28:18] Production.INFO: ProcessCDR(1,14176549,1,1,2) [2025-01-05 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176549', 'tblTempUsageDetail_20' ) start [2025-01-05 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176549', 'tblTempUsageDetail_20' ) end [2025-01-05 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:28:21] Production.INFO: ==13370== Releasing lock... [2025-01-05 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:29:05 [end_date_ymd] => 2025-01-05 00:29:05 [RateCDR] => 1 ) [2025-01-05 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:29:05' and `end` < '2025-01-05 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:29:18] Production.INFO: count ==268 [2025-01-05 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:29:05 - End Time 2025-01-05 00:29:05 [2025-01-05 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176554', 'tblTempUsageDetail_20' ) start [2025-01-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176554', 'tblTempUsageDetail_20' ) end [2025-01-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176554', 'tblTempVendorCDR_20' ) start [2025-01-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176554', 'tblTempVendorCDR_20' ) end [2025-01-05 00:29:18] Production.INFO: ProcessCDR(1,14176554,1,1,2) [2025-01-05 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176554', 'tblTempUsageDetail_20' ) start [2025-01-05 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176554', 'tblTempUsageDetail_20' ) end [2025-01-05 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:29:21] Production.INFO: ==13488== Releasing lock... [2025-01-05 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:30:05 [end_date_ymd] => 2025-01-05 00:30:05 [RateCDR] => 1 ) [2025-01-05 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:30:05' and `end` < '2025-01-05 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:30:18] Production.INFO: count ==274 [2025-01-05 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:30:05 - End Time 2025-01-05 00:30:05 [2025-01-05 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176559', 'tblTempUsageDetail_20' ) start [2025-01-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176559', 'tblTempUsageDetail_20' ) end [2025-01-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176559', 'tblTempVendorCDR_20' ) start [2025-01-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176559', 'tblTempVendorCDR_20' ) end [2025-01-05 00:30:18] Production.INFO: ProcessCDR(1,14176559,1,1,2) [2025-01-05 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176559', 'tblTempUsageDetail_20' ) start [2025-01-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176559', 'tblTempUsageDetail_20' ) end [2025-01-05 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:30:21] Production.INFO: ==13604== Releasing lock... [2025-01-05 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:31:05 [end_date_ymd] => 2025-01-05 00:31:05 [RateCDR] => 1 ) [2025-01-05 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:31:05' and `end` < '2025-01-05 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:31:18] Production.INFO: count ==292 [2025-01-05 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:31:05 - End Time 2025-01-05 00:31:05 [2025-01-05 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176565', 'tblTempUsageDetail_20' ) start [2025-01-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176565', 'tblTempUsageDetail_20' ) end [2025-01-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176565', 'tblTempVendorCDR_20' ) start [2025-01-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176565', 'tblTempVendorCDR_20' ) end [2025-01-05 00:31:18] Production.INFO: ProcessCDR(1,14176565,1,1,2) [2025-01-05 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176565', 'tblTempUsageDetail_20' ) start [2025-01-05 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176565', 'tblTempUsageDetail_20' ) end [2025-01-05 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:31:21] Production.INFO: ==13722== Releasing lock... [2025-01-05 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-05 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:32:04 [end_date_ymd] => 2025-01-05 00:32:04 [RateCDR] => 1 ) [2025-01-05 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:32:04' and `end` < '2025-01-05 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:32:17] Production.INFO: count ==294 [2025-01-05 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:32:04 - End Time 2025-01-05 00:32:04 [2025-01-05 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176570', 'tblTempUsageDetail_20' ) start [2025-01-05 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176570', 'tblTempUsageDetail_20' ) end [2025-01-05 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176570', 'tblTempVendorCDR_20' ) start [2025-01-05 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176570', 'tblTempVendorCDR_20' ) end [2025-01-05 00:32:17] Production.INFO: ProcessCDR(1,14176570,1,1,2) [2025-01-05 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176570', 'tblTempUsageDetail_20' ) start [2025-01-05 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176570', 'tblTempUsageDetail_20' ) end [2025-01-05 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:32:20] Production.INFO: ==13841== Releasing lock... [2025-01-05 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:32:20] Production.INFO: 31 MB #Memory Used# [2025-01-05 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:33:04 [end_date_ymd] => 2025-01-05 00:33:04 [RateCDR] => 1 ) [2025-01-05 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:33:04' and `end` < '2025-01-05 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:33:18] Production.INFO: count ==288 [2025-01-05 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:33:04 - End Time 2025-01-05 00:33:04 [2025-01-05 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176575', 'tblTempUsageDetail_20' ) start [2025-01-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176575', 'tblTempUsageDetail_20' ) end [2025-01-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176575', 'tblTempVendorCDR_20' ) start [2025-01-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176575', 'tblTempVendorCDR_20' ) end [2025-01-05 00:33:18] Production.INFO: ProcessCDR(1,14176575,1,1,2) [2025-01-05 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176575', 'tblTempUsageDetail_20' ) start [2025-01-05 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176575', 'tblTempUsageDetail_20' ) end [2025-01-05 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:33:21] Production.INFO: ==13959== Releasing lock... [2025-01-05 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:34:06 [end_date_ymd] => 2025-01-05 00:34:06 [RateCDR] => 1 ) [2025-01-05 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:34:06' and `end` < '2025-01-05 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:34:19] Production.INFO: count ==280 [2025-01-05 00:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:34:06 - End Time 2025-01-05 00:34:06 [2025-01-05 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176580', 'tblTempUsageDetail_20' ) start [2025-01-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176580', 'tblTempUsageDetail_20' ) end [2025-01-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176580', 'tblTempVendorCDR_20' ) start [2025-01-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176580', 'tblTempVendorCDR_20' ) end [2025-01-05 00:34:19] Production.INFO: ProcessCDR(1,14176580,1,1,2) [2025-01-05 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176580', 'tblTempUsageDetail_20' ) start [2025-01-05 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176580', 'tblTempUsageDetail_20' ) end [2025-01-05 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:34:22] Production.INFO: ==14073== Releasing lock... [2025-01-05 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:34:22] Production.INFO: 31 MB #Memory Used# [2025-01-05 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:35:04 [end_date_ymd] => 2025-01-05 00:35:04 [RateCDR] => 1 ) [2025-01-05 00:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:35:04' and `end` < '2025-01-05 00:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:35:17] Production.INFO: count ==274 [2025-01-05 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:35:04 - End Time 2025-01-05 00:35:04 [2025-01-05 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176585', 'tblTempUsageDetail_20' ) start [2025-01-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176585', 'tblTempUsageDetail_20' ) end [2025-01-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176585', 'tblTempVendorCDR_20' ) start [2025-01-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176585', 'tblTempVendorCDR_20' ) end [2025-01-05 00:35:17] Production.INFO: ProcessCDR(1,14176585,1,1,2) [2025-01-05 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176585', 'tblTempUsageDetail_20' ) start [2025-01-05 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176585', 'tblTempUsageDetail_20' ) end [2025-01-05 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:35:20] Production.INFO: ==14191== Releasing lock... [2025-01-05 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:36:05 [end_date_ymd] => 2025-01-05 00:36:05 [RateCDR] => 1 ) [2025-01-05 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:36:05' and `end` < '2025-01-05 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:36:20] Production.INFO: count ==274 [2025-01-05 00:36:20] Production.ERROR: pbx CDR StartTime 2025-01-04 21:36:05 - End Time 2025-01-05 00:36:05 [2025-01-05 00:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176590', 'tblTempUsageDetail_20' ) start [2025-01-05 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176590', 'tblTempUsageDetail_20' ) end [2025-01-05 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176590', 'tblTempVendorCDR_20' ) start [2025-01-05 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176590', 'tblTempVendorCDR_20' ) end [2025-01-05 00:36:20] Production.INFO: ProcessCDR(1,14176590,1,1,2) [2025-01-05 00:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176590', 'tblTempUsageDetail_20' ) start [2025-01-05 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176590', 'tblTempUsageDetail_20' ) end [2025-01-05 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:36:23] Production.INFO: ==14307== Releasing lock... [2025-01-05 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:36:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:37:04 [end_date_ymd] => 2025-01-05 00:37:04 [RateCDR] => 1 ) [2025-01-05 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:37:04' and `end` < '2025-01-05 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:37:18] Production.INFO: count ==271 [2025-01-05 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:37:04 - End Time 2025-01-05 00:37:04 [2025-01-05 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176595', 'tblTempUsageDetail_20' ) start [2025-01-05 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176595', 'tblTempUsageDetail_20' ) end [2025-01-05 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176595', 'tblTempVendorCDR_20' ) start [2025-01-05 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176595', 'tblTempVendorCDR_20' ) end [2025-01-05 00:37:18] Production.INFO: ProcessCDR(1,14176595,1,1,2) [2025-01-05 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176595', 'tblTempUsageDetail_20' ) start [2025-01-05 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176595', 'tblTempUsageDetail_20' ) end [2025-01-05 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:37:21] Production.INFO: ==14448== Releasing lock... [2025-01-05 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:37:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:38:05 [end_date_ymd] => 2025-01-05 00:38:05 [RateCDR] => 1 ) [2025-01-05 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:38:05' and `end` < '2025-01-05 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:38:19] Production.INFO: count ==260 [2025-01-05 00:38:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:38:05 - End Time 2025-01-05 00:38:05 [2025-01-05 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176600', 'tblTempUsageDetail_20' ) start [2025-01-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176600', 'tblTempUsageDetail_20' ) end [2025-01-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176600', 'tblTempVendorCDR_20' ) start [2025-01-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176600', 'tblTempVendorCDR_20' ) end [2025-01-05 00:38:19] Production.INFO: ProcessCDR(1,14176600,1,1,2) [2025-01-05 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176600', 'tblTempUsageDetail_20' ) start [2025-01-05 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176600', 'tblTempUsageDetail_20' ) end [2025-01-05 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:38:22] Production.INFO: ==14533== Releasing lock... [2025-01-05 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:39:05 [end_date_ymd] => 2025-01-05 00:39:05 [RateCDR] => 1 ) [2025-01-05 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:39:05' and `end` < '2025-01-05 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:39:19] Production.INFO: count ==247 [2025-01-05 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:39:05 - End Time 2025-01-05 00:39:05 [2025-01-05 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176605', 'tblTempUsageDetail_20' ) start [2025-01-05 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176605', 'tblTempUsageDetail_20' ) end [2025-01-05 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176605', 'tblTempVendorCDR_20' ) start [2025-01-05 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176605', 'tblTempVendorCDR_20' ) end [2025-01-05 00:39:19] Production.INFO: ProcessCDR(1,14176605,1,1,2) [2025-01-05 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176605', 'tblTempUsageDetail_20' ) start [2025-01-05 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176605', 'tblTempUsageDetail_20' ) end [2025-01-05 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:39:22] Production.INFO: ==14622== Releasing lock... [2025-01-05 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:40:05 [end_date_ymd] => 2025-01-05 00:40:05 [RateCDR] => 1 ) [2025-01-05 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:40:05' and `end` < '2025-01-05 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:40:18] Production.INFO: count ==239 [2025-01-05 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:40:05 - End Time 2025-01-05 00:40:05 [2025-01-05 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176611', 'tblTempUsageDetail_20' ) start [2025-01-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176611', 'tblTempUsageDetail_20' ) end [2025-01-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176611', 'tblTempVendorCDR_20' ) start [2025-01-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176611', 'tblTempVendorCDR_20' ) end [2025-01-05 00:40:18] Production.INFO: ProcessCDR(1,14176611,1,1,2) [2025-01-05 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176611', 'tblTempUsageDetail_20' ) start [2025-01-05 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176611', 'tblTempUsageDetail_20' ) end [2025-01-05 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:40:21] Production.INFO: ==14713== Releasing lock... [2025-01-05 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:41:05 [end_date_ymd] => 2025-01-05 00:41:05 [RateCDR] => 1 ) [2025-01-05 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:41:05' and `end` < '2025-01-05 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:41:19] Production.INFO: count ==248 [2025-01-05 00:41:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:41:05 - End Time 2025-01-05 00:41:05 [2025-01-05 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176616', 'tblTempUsageDetail_20' ) start [2025-01-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176616', 'tblTempUsageDetail_20' ) end [2025-01-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176616', 'tblTempVendorCDR_20' ) start [2025-01-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176616', 'tblTempVendorCDR_20' ) end [2025-01-05 00:41:19] Production.INFO: ProcessCDR(1,14176616,1,1,2) [2025-01-05 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176616', 'tblTempUsageDetail_20' ) start [2025-01-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176616', 'tblTempUsageDetail_20' ) end [2025-01-05 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:41:22] Production.INFO: ==14800== Releasing lock... [2025-01-05 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:42:04 [end_date_ymd] => 2025-01-05 00:42:04 [RateCDR] => 1 ) [2025-01-05 00:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:42:04' and `end` < '2025-01-05 00:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:42:19] Production.INFO: count ==241 [2025-01-05 00:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:42:04 - End Time 2025-01-05 00:42:04 [2025-01-05 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176621', 'tblTempUsageDetail_20' ) start [2025-01-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176621', 'tblTempUsageDetail_20' ) end [2025-01-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176621', 'tblTempVendorCDR_20' ) start [2025-01-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176621', 'tblTempVendorCDR_20' ) end [2025-01-05 00:42:19] Production.INFO: ProcessCDR(1,14176621,1,1,2) [2025-01-05 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176621', 'tblTempUsageDetail_20' ) start [2025-01-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176621', 'tblTempUsageDetail_20' ) end [2025-01-05 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:42:22] Production.INFO: ==14889== Releasing lock... [2025-01-05 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:43:05 [end_date_ymd] => 2025-01-05 00:43:05 [RateCDR] => 1 ) [2025-01-05 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:43:05' and `end` < '2025-01-05 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:43:21] Production.INFO: count ==236 [2025-01-05 00:43:22] Production.ERROR: pbx CDR StartTime 2025-01-04 21:43:05 - End Time 2025-01-05 00:43:05 [2025-01-05 00:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176626', 'tblTempUsageDetail_20' ) start [2025-01-05 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176626', 'tblTempUsageDetail_20' ) end [2025-01-05 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176626', 'tblTempVendorCDR_20' ) start [2025-01-05 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176626', 'tblTempVendorCDR_20' ) end [2025-01-05 00:43:22] Production.INFO: ProcessCDR(1,14176626,1,1,2) [2025-01-05 00:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176626', 'tblTempUsageDetail_20' ) start [2025-01-05 00:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176626', 'tblTempUsageDetail_20' ) end [2025-01-05 00:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:43:25] Production.INFO: ==14971== Releasing lock... [2025-01-05 00:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:43:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:44:06 [end_date_ymd] => 2025-01-05 00:44:06 [RateCDR] => 1 ) [2025-01-05 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:44:06' and `end` < '2025-01-05 00:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:44:18] Production.INFO: count ==228 [2025-01-05 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:44:06 - End Time 2025-01-05 00:44:06 [2025-01-05 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176631', 'tblTempUsageDetail_20' ) start [2025-01-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176631', 'tblTempUsageDetail_20' ) end [2025-01-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176631', 'tblTempVendorCDR_20' ) start [2025-01-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176631', 'tblTempVendorCDR_20' ) end [2025-01-05 00:44:18] Production.INFO: ProcessCDR(1,14176631,1,1,2) [2025-01-05 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176631', 'tblTempUsageDetail_20' ) start [2025-01-05 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176631', 'tblTempUsageDetail_20' ) end [2025-01-05 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:44:22] Production.INFO: ==15059== Releasing lock... [2025-01-05 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:45:05 [end_date_ymd] => 2025-01-05 00:45:05 [RateCDR] => 1 ) [2025-01-05 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:45:05' and `end` < '2025-01-05 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:45:17] Production.INFO: count ==224 [2025-01-05 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:45:05 - End Time 2025-01-05 00:45:05 [2025-01-05 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176636', 'tblTempUsageDetail_20' ) start [2025-01-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176636', 'tblTempUsageDetail_20' ) end [2025-01-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176636', 'tblTempVendorCDR_20' ) start [2025-01-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176636', 'tblTempVendorCDR_20' ) end [2025-01-05 00:45:18] Production.INFO: ProcessCDR(1,14176636,1,1,2) [2025-01-05 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176636', 'tblTempUsageDetail_20' ) start [2025-01-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176636', 'tblTempUsageDetail_20' ) end [2025-01-05 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:45:21] Production.INFO: ==15143== Releasing lock... [2025-01-05 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:46:05 [end_date_ymd] => 2025-01-05 00:46:05 [RateCDR] => 1 ) [2025-01-05 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:46:05' and `end` < '2025-01-05 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:46:18] Production.INFO: count ==227 [2025-01-05 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:46:05 - End Time 2025-01-05 00:46:05 [2025-01-05 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176638', 'tblTempUsageDetail_20' ) start [2025-01-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176638', 'tblTempUsageDetail_20' ) end [2025-01-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176638', 'tblTempVendorCDR_20' ) start [2025-01-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176638', 'tblTempVendorCDR_20' ) end [2025-01-05 00:46:18] Production.INFO: ProcessCDR(1,14176638,1,1,2) [2025-01-05 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176638', 'tblTempUsageDetail_20' ) start [2025-01-05 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176638', 'tblTempUsageDetail_20' ) end [2025-01-05 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:46:22] Production.INFO: ==15234== Releasing lock... [2025-01-05 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:47:05 [end_date_ymd] => 2025-01-05 00:47:05 [RateCDR] => 1 ) [2025-01-05 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:47:05' and `end` < '2025-01-05 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:47:19] Production.INFO: count ==218 [2025-01-05 00:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:47:05 - End Time 2025-01-05 00:47:05 [2025-01-05 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176646', 'tblTempUsageDetail_20' ) start [2025-01-05 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176646', 'tblTempUsageDetail_20' ) end [2025-01-05 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176646', 'tblTempVendorCDR_20' ) start [2025-01-05 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176646', 'tblTempVendorCDR_20' ) end [2025-01-05 00:47:19] Production.INFO: ProcessCDR(1,14176646,1,1,2) [2025-01-05 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176646', 'tblTempUsageDetail_20' ) start [2025-01-05 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176646', 'tblTempUsageDetail_20' ) end [2025-01-05 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:47:22] Production.INFO: ==15315== Releasing lock... [2025-01-05 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:47:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:48:05 [end_date_ymd] => 2025-01-05 00:48:05 [RateCDR] => 1 ) [2025-01-05 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:48:05' and `end` < '2025-01-05 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:48:18] Production.INFO: count ==218 [2025-01-05 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:48:05 - End Time 2025-01-05 00:48:05 [2025-01-05 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176651', 'tblTempUsageDetail_20' ) start [2025-01-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176651', 'tblTempUsageDetail_20' ) end [2025-01-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176651', 'tblTempVendorCDR_20' ) start [2025-01-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176651', 'tblTempVendorCDR_20' ) end [2025-01-05 00:48:18] Production.INFO: ProcessCDR(1,14176651,1,1,2) [2025-01-05 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176651', 'tblTempUsageDetail_20' ) start [2025-01-05 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176651', 'tblTempUsageDetail_20' ) end [2025-01-05 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:48:22] Production.INFO: ==15408== Releasing lock... [2025-01-05 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:49:04 [end_date_ymd] => 2025-01-05 00:49:04 [RateCDR] => 1 ) [2025-01-05 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:49:04' and `end` < '2025-01-05 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:49:18] Production.INFO: count ==216 [2025-01-05 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:49:04 - End Time 2025-01-05 00:49:04 [2025-01-05 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176656', 'tblTempUsageDetail_20' ) start [2025-01-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176656', 'tblTempUsageDetail_20' ) end [2025-01-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176656', 'tblTempVendorCDR_20' ) start [2025-01-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176656', 'tblTempVendorCDR_20' ) end [2025-01-05 00:49:18] Production.INFO: ProcessCDR(1,14176656,1,1,2) [2025-01-05 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176656', 'tblTempUsageDetail_20' ) start [2025-01-05 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176656', 'tblTempUsageDetail_20' ) end [2025-01-05 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:49:21] Production.INFO: ==15495== Releasing lock... [2025-01-05 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:50:05 [end_date_ymd] => 2025-01-05 00:50:05 [RateCDR] => 1 ) [2025-01-05 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:50:05' and `end` < '2025-01-05 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:50:18] Production.INFO: count ==222 [2025-01-05 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:50:05 - End Time 2025-01-05 00:50:05 [2025-01-05 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176662', 'tblTempUsageDetail_20' ) start [2025-01-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176662', 'tblTempUsageDetail_20' ) end [2025-01-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176662', 'tblTempVendorCDR_20' ) start [2025-01-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176662', 'tblTempVendorCDR_20' ) end [2025-01-05 00:50:18] Production.INFO: ProcessCDR(1,14176662,1,1,2) [2025-01-05 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176662', 'tblTempUsageDetail_20' ) start [2025-01-05 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176662', 'tblTempUsageDetail_20' ) end [2025-01-05 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:50:21] Production.INFO: ==15581== Releasing lock... [2025-01-05 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:51:05 [end_date_ymd] => 2025-01-05 00:51:05 [RateCDR] => 1 ) [2025-01-05 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:51:05' and `end` < '2025-01-05 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:51:18] Production.INFO: count ==229 [2025-01-05 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:51:05 - End Time 2025-01-05 00:51:05 [2025-01-05 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176667', 'tblTempUsageDetail_20' ) start [2025-01-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176667', 'tblTempUsageDetail_20' ) end [2025-01-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176667', 'tblTempVendorCDR_20' ) start [2025-01-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176667', 'tblTempVendorCDR_20' ) end [2025-01-05 00:51:18] Production.INFO: ProcessCDR(1,14176667,1,1,2) [2025-01-05 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176667', 'tblTempUsageDetail_20' ) start [2025-01-05 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176667', 'tblTempUsageDetail_20' ) end [2025-01-05 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:51:21] Production.INFO: ==15669== Releasing lock... [2025-01-05 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:52:04 [end_date_ymd] => 2025-01-05 00:52:04 [RateCDR] => 1 ) [2025-01-05 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:52:04' and `end` < '2025-01-05 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:52:17] Production.INFO: count ==230 [2025-01-05 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:52:04 - End Time 2025-01-05 00:52:04 [2025-01-05 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176672', 'tblTempUsageDetail_20' ) start [2025-01-05 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176672', 'tblTempUsageDetail_20' ) end [2025-01-05 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176672', 'tblTempVendorCDR_20' ) start [2025-01-05 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176672', 'tblTempVendorCDR_20' ) end [2025-01-05 00:52:17] Production.INFO: ProcessCDR(1,14176672,1,1,2) [2025-01-05 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176672', 'tblTempUsageDetail_20' ) start [2025-01-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176672', 'tblTempUsageDetail_20' ) end [2025-01-05 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:52:22] Production.INFO: ==15751== Releasing lock... [2025-01-05 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:53:05 [end_date_ymd] => 2025-01-05 00:53:05 [RateCDR] => 1 ) [2025-01-05 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:53:05' and `end` < '2025-01-05 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:53:19] Production.INFO: count ==230 [2025-01-05 00:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:53:05 - End Time 2025-01-05 00:53:05 [2025-01-05 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176677', 'tblTempUsageDetail_20' ) start [2025-01-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176677', 'tblTempUsageDetail_20' ) end [2025-01-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176677', 'tblTempVendorCDR_20' ) start [2025-01-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176677', 'tblTempVendorCDR_20' ) end [2025-01-05 00:53:19] Production.INFO: ProcessCDR(1,14176677,1,1,2) [2025-01-05 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176677', 'tblTempUsageDetail_20' ) start [2025-01-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176677', 'tblTempUsageDetail_20' ) end [2025-01-05 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:53:22] Production.INFO: ==15875== Releasing lock... [2025-01-05 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:53:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:54:04 [end_date_ymd] => 2025-01-05 00:54:04 [RateCDR] => 1 ) [2025-01-05 00:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:54:04' and `end` < '2025-01-05 00:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:54:19] Production.INFO: count ==230 [2025-01-05 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:54:04 - End Time 2025-01-05 00:54:04 [2025-01-05 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176682', 'tblTempUsageDetail_20' ) start [2025-01-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176682', 'tblTempUsageDetail_20' ) end [2025-01-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176682', 'tblTempVendorCDR_20' ) start [2025-01-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176682', 'tblTempVendorCDR_20' ) end [2025-01-05 00:54:19] Production.INFO: ProcessCDR(1,14176682,1,1,2) [2025-01-05 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176682', 'tblTempUsageDetail_20' ) start [2025-01-05 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176682', 'tblTempUsageDetail_20' ) end [2025-01-05 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:54:22] Production.INFO: ==15965== Releasing lock... [2025-01-05 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:54:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:55:05 [end_date_ymd] => 2025-01-05 00:55:05 [RateCDR] => 1 ) [2025-01-05 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:55:05' and `end` < '2025-01-05 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:55:18] Production.INFO: count ==234 [2025-01-05 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 21:55:05 - End Time 2025-01-05 00:55:05 [2025-01-05 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176687', 'tblTempUsageDetail_20' ) start [2025-01-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176687', 'tblTempUsageDetail_20' ) end [2025-01-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176687', 'tblTempVendorCDR_20' ) start [2025-01-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176687', 'tblTempVendorCDR_20' ) end [2025-01-05 00:55:18] Production.INFO: ProcessCDR(1,14176687,1,1,2) [2025-01-05 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176687', 'tblTempUsageDetail_20' ) start [2025-01-05 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176687', 'tblTempUsageDetail_20' ) end [2025-01-05 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:55:23] Production.INFO: ==16048== Releasing lock... [2025-01-05 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:55:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:56:06 [end_date_ymd] => 2025-01-05 00:56:06 [RateCDR] => 1 ) [2025-01-05 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:56:06' and `end` < '2025-01-05 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:56:19] Production.INFO: count ==231 [2025-01-05 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:56:06 - End Time 2025-01-05 00:56:06 [2025-01-05 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176692', 'tblTempUsageDetail_20' ) start [2025-01-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176692', 'tblTempUsageDetail_20' ) end [2025-01-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176692', 'tblTempVendorCDR_20' ) start [2025-01-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176692', 'tblTempVendorCDR_20' ) end [2025-01-05 00:56:19] Production.INFO: ProcessCDR(1,14176692,1,1,2) [2025-01-05 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176692', 'tblTempUsageDetail_20' ) start [2025-01-05 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176692', 'tblTempUsageDetail_20' ) end [2025-01-05 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:56:22] Production.INFO: ==16131== Releasing lock... [2025-01-05 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:57:05 [end_date_ymd] => 2025-01-05 00:57:05 [RateCDR] => 1 ) [2025-01-05 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:57:05' and `end` < '2025-01-05 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:57:20] Production.INFO: count ==231 [2025-01-05 00:57:20] Production.ERROR: pbx CDR StartTime 2025-01-04 21:57:05 - End Time 2025-01-05 00:57:05 [2025-01-05 00:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176697', 'tblTempUsageDetail_20' ) start [2025-01-05 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176697', 'tblTempUsageDetail_20' ) end [2025-01-05 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176697', 'tblTempVendorCDR_20' ) start [2025-01-05 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176697', 'tblTempVendorCDR_20' ) end [2025-01-05 00:57:20] Production.INFO: ProcessCDR(1,14176697,1,1,2) [2025-01-05 00:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176697', 'tblTempUsageDetail_20' ) start [2025-01-05 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176697', 'tblTempUsageDetail_20' ) end [2025-01-05 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:57:23] Production.INFO: ==16211== Releasing lock... [2025-01-05 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:58:05 [end_date_ymd] => 2025-01-05 00:58:05 [RateCDR] => 1 ) [2025-01-05 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:58:05' and `end` < '2025-01-05 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:58:19] Production.INFO: count ==230 [2025-01-05 00:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 21:58:05 - End Time 2025-01-05 00:58:05 [2025-01-05 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176702', 'tblTempUsageDetail_20' ) start [2025-01-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176702', 'tblTempUsageDetail_20' ) end [2025-01-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176702', 'tblTempVendorCDR_20' ) start [2025-01-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176702', 'tblTempVendorCDR_20' ) end [2025-01-05 00:58:19] Production.INFO: ProcessCDR(1,14176702,1,1,2) [2025-01-05 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176702', 'tblTempUsageDetail_20' ) start [2025-01-05 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176702', 'tblTempUsageDetail_20' ) end [2025-01-05 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:58:23] Production.INFO: ==16297== Releasing lock... [2025-01-05 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:58:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 21:59:04 [end_date_ymd] => 2025-01-05 00:59:04 [RateCDR] => 1 ) [2025-01-05 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 21:59:04' and `end` < '2025-01-05 00:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 00:59:17] Production.INFO: count ==229 [2025-01-05 00:59:17] Production.ERROR: pbx CDR StartTime 2025-01-04 21:59:04 - End Time 2025-01-05 00:59:04 [2025-01-05 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176707', 'tblTempUsageDetail_20' ) start [2025-01-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176707', 'tblTempUsageDetail_20' ) end [2025-01-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176707', 'tblTempVendorCDR_20' ) start [2025-01-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176707', 'tblTempVendorCDR_20' ) end [2025-01-05 00:59:17] Production.INFO: ProcessCDR(1,14176707,1,1,2) [2025-01-05 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176707', 'tblTempUsageDetail_20' ) start [2025-01-05 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176707', 'tblTempUsageDetail_20' ) end [2025-01-05 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 00:59:20] Production.INFO: ==16381== Releasing lock... [2025-01-05 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 00:59:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:00:05 [end_date_ymd] => 2025-01-05 01:00:05 [RateCDR] => 1 ) [2025-01-05 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:00:05' and `end` < '2025-01-05 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:00:19] Production.INFO: count ==235 [2025-01-05 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:00:05 - End Time 2025-01-05 01:00:05 [2025-01-05 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176712', 'tblTempUsageDetail_20' ) start [2025-01-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176712', 'tblTempUsageDetail_20' ) end [2025-01-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176712', 'tblTempVendorCDR_20' ) start [2025-01-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176712', 'tblTempVendorCDR_20' ) end [2025-01-05 01:00:19] Production.INFO: ProcessCDR(1,14176712,1,1,2) [2025-01-05 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176712', 'tblTempUsageDetail_20' ) start [2025-01-05 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176712', 'tblTempUsageDetail_20' ) end [2025-01-05 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:00:22] Production.INFO: ==16468== Releasing lock... [2025-01-05 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:01:04 [end_date_ymd] => 2025-01-05 01:01:04 [RateCDR] => 1 ) [2025-01-05 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:01:04' and `end` < '2025-01-05 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:01:18] Production.INFO: count ==239 [2025-01-05 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:01:04 - End Time 2025-01-05 01:01:04 [2025-01-05 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176718', 'tblTempUsageDetail_20' ) start [2025-01-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176718', 'tblTempUsageDetail_20' ) end [2025-01-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176718', 'tblTempVendorCDR_20' ) start [2025-01-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176718', 'tblTempVendorCDR_20' ) end [2025-01-05 01:01:18] Production.INFO: ProcessCDR(1,14176718,1,1,2) [2025-01-05 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176718', 'tblTempUsageDetail_20' ) start [2025-01-05 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176718', 'tblTempUsageDetail_20' ) end [2025-01-05 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:01:21] Production.INFO: ==16567== Releasing lock... [2025-01-05 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:02:05 [end_date_ymd] => 2025-01-05 01:02:05 [RateCDR] => 1 ) [2025-01-05 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:02:05' and `end` < '2025-01-05 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:02:18] Production.INFO: count ==243 [2025-01-05 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:02:05 - End Time 2025-01-05 01:02:05 [2025-01-05 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176723', 'tblTempUsageDetail_20' ) start [2025-01-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176723', 'tblTempUsageDetail_20' ) end [2025-01-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176723', 'tblTempVendorCDR_20' ) start [2025-01-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176723', 'tblTempVendorCDR_20' ) end [2025-01-05 01:02:18] Production.INFO: ProcessCDR(1,14176723,1,1,2) [2025-01-05 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176723', 'tblTempUsageDetail_20' ) start [2025-01-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176723', 'tblTempUsageDetail_20' ) end [2025-01-05 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:02:21] Production.INFO: ==16647== Releasing lock... [2025-01-05 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:03:05 [end_date_ymd] => 2025-01-05 01:03:05 [RateCDR] => 1 ) [2025-01-05 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:03:05' and `end` < '2025-01-05 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:03:17] Production.INFO: count ==242 [2025-01-05 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:03:05 - End Time 2025-01-05 01:03:05 [2025-01-05 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176728', 'tblTempUsageDetail_20' ) start [2025-01-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176728', 'tblTempUsageDetail_20' ) end [2025-01-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176728', 'tblTempVendorCDR_20' ) start [2025-01-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176728', 'tblTempVendorCDR_20' ) end [2025-01-05 01:03:17] Production.INFO: ProcessCDR(1,14176728,1,1,2) [2025-01-05 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176728', 'tblTempUsageDetail_20' ) start [2025-01-05 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176728', 'tblTempUsageDetail_20' ) end [2025-01-05 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:03:20] Production.INFO: ==16727== Releasing lock... [2025-01-05 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:04:05 [end_date_ymd] => 2025-01-05 01:04:05 [RateCDR] => 1 ) [2025-01-05 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:04:05' and `end` < '2025-01-05 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:04:19] Production.INFO: count ==234 [2025-01-05 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:04:05 - End Time 2025-01-05 01:04:05 [2025-01-05 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176733', 'tblTempUsageDetail_20' ) start [2025-01-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176733', 'tblTempUsageDetail_20' ) end [2025-01-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176733', 'tblTempVendorCDR_20' ) start [2025-01-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176733', 'tblTempVendorCDR_20' ) end [2025-01-05 01:04:19] Production.INFO: ProcessCDR(1,14176733,1,1,2) [2025-01-05 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176733', 'tblTempUsageDetail_20' ) start [2025-01-05 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176733', 'tblTempUsageDetail_20' ) end [2025-01-05 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:04:22] Production.INFO: ==16804== Releasing lock... [2025-01-05 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:05:06 [end_date_ymd] => 2025-01-05 01:05:06 [RateCDR] => 1 ) [2025-01-05 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:05:06' and `end` < '2025-01-05 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:05:18] Production.INFO: count ==234 [2025-01-05 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:05:06 - End Time 2025-01-05 01:05:06 [2025-01-05 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176738', 'tblTempUsageDetail_20' ) start [2025-01-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176738', 'tblTempUsageDetail_20' ) end [2025-01-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176738', 'tblTempVendorCDR_20' ) start [2025-01-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176738', 'tblTempVendorCDR_20' ) end [2025-01-05 01:05:18] Production.INFO: ProcessCDR(1,14176738,1,1,2) [2025-01-05 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176738', 'tblTempUsageDetail_20' ) start [2025-01-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176738', 'tblTempUsageDetail_20' ) end [2025-01-05 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:05:22] Production.INFO: ==16884== Releasing lock... [2025-01-05 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:06:04 [end_date_ymd] => 2025-01-05 01:06:04 [RateCDR] => 1 ) [2025-01-05 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:06:04' and `end` < '2025-01-05 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:06:18] Production.INFO: count ==234 [2025-01-05 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:06:04 - End Time 2025-01-05 01:06:04 [2025-01-05 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176743', 'tblTempUsageDetail_20' ) start [2025-01-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176743', 'tblTempUsageDetail_20' ) end [2025-01-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176743', 'tblTempVendorCDR_20' ) start [2025-01-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176743', 'tblTempVendorCDR_20' ) end [2025-01-05 01:06:18] Production.INFO: ProcessCDR(1,14176743,1,1,2) [2025-01-05 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176743', 'tblTempUsageDetail_20' ) start [2025-01-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176743', 'tblTempUsageDetail_20' ) end [2025-01-05 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:06:22] Production.INFO: ==16966== Releasing lock... [2025-01-05 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:07:05 [end_date_ymd] => 2025-01-05 01:07:05 [RateCDR] => 1 ) [2025-01-05 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:07:05' and `end` < '2025-01-05 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:07:18] Production.INFO: count ==234 [2025-01-05 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:07:05 - End Time 2025-01-05 01:07:05 [2025-01-05 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176748', 'tblTempUsageDetail_20' ) start [2025-01-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176748', 'tblTempUsageDetail_20' ) end [2025-01-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176748', 'tblTempVendorCDR_20' ) start [2025-01-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176748', 'tblTempVendorCDR_20' ) end [2025-01-05 01:07:18] Production.INFO: ProcessCDR(1,14176748,1,1,2) [2025-01-05 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176748', 'tblTempUsageDetail_20' ) start [2025-01-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176748', 'tblTempUsageDetail_20' ) end [2025-01-05 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:07:21] Production.INFO: ==17047== Releasing lock... [2025-01-05 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:08:05 [end_date_ymd] => 2025-01-05 01:08:05 [RateCDR] => 1 ) [2025-01-05 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:08:05' and `end` < '2025-01-05 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:08:18] Production.INFO: count ==234 [2025-01-05 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:08:05 - End Time 2025-01-05 01:08:05 [2025-01-05 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176753', 'tblTempUsageDetail_20' ) start [2025-01-05 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176753', 'tblTempUsageDetail_20' ) end [2025-01-05 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176753', 'tblTempVendorCDR_20' ) start [2025-01-05 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176753', 'tblTempVendorCDR_20' ) end [2025-01-05 01:08:18] Production.INFO: ProcessCDR(1,14176753,1,1,2) [2025-01-05 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176753', 'tblTempUsageDetail_20' ) start [2025-01-05 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176753', 'tblTempUsageDetail_20' ) end [2025-01-05 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:08:21] Production.INFO: ==17164== Releasing lock... [2025-01-05 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:09:05 [end_date_ymd] => 2025-01-05 01:09:05 [RateCDR] => 1 ) [2025-01-05 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:09:05' and `end` < '2025-01-05 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:09:21] Production.INFO: count ==233 [2025-01-05 01:09:21] Production.ERROR: pbx CDR StartTime 2025-01-04 22:09:05 - End Time 2025-01-05 01:09:05 [2025-01-05 01:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176758', 'tblTempUsageDetail_20' ) start [2025-01-05 01:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176758', 'tblTempUsageDetail_20' ) end [2025-01-05 01:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176758', 'tblTempVendorCDR_20' ) start [2025-01-05 01:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176758', 'tblTempVendorCDR_20' ) end [2025-01-05 01:09:21] Production.INFO: ProcessCDR(1,14176758,1,1,2) [2025-01-05 01:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176758', 'tblTempUsageDetail_20' ) start [2025-01-05 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176758', 'tblTempUsageDetail_20' ) end [2025-01-05 01:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:09:24] Production.INFO: ==17247== Releasing lock... [2025-01-05 01:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:09:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:10:05 [end_date_ymd] => 2025-01-05 01:10:05 [RateCDR] => 1 ) [2025-01-05 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:10:05' and `end` < '2025-01-05 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:10:18] Production.INFO: count ==240 [2025-01-05 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:10:05 - End Time 2025-01-05 01:10:05 [2025-01-05 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176764', 'tblTempUsageDetail_20' ) start [2025-01-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176764', 'tblTempUsageDetail_20' ) end [2025-01-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176764', 'tblTempVendorCDR_20' ) start [2025-01-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176764', 'tblTempVendorCDR_20' ) end [2025-01-05 01:10:18] Production.INFO: ProcessCDR(1,14176764,1,1,2) [2025-01-05 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176764', 'tblTempUsageDetail_20' ) start [2025-01-05 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176764', 'tblTempUsageDetail_20' ) end [2025-01-05 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:10:23] Production.INFO: ==17327== Releasing lock... [2025-01-05 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:10:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:11:05 [end_date_ymd] => 2025-01-05 01:11:05 [RateCDR] => 1 ) [2025-01-05 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:11:05' and `end` < '2025-01-05 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:11:17] Production.INFO: count ==243 [2025-01-05 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:11:05 - End Time 2025-01-05 01:11:05 [2025-01-05 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176769', 'tblTempUsageDetail_20' ) start [2025-01-05 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176769', 'tblTempUsageDetail_20' ) end [2025-01-05 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176769', 'tblTempVendorCDR_20' ) start [2025-01-05 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176769', 'tblTempVendorCDR_20' ) end [2025-01-05 01:11:17] Production.INFO: ProcessCDR(1,14176769,1,1,2) [2025-01-05 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176769', 'tblTempUsageDetail_20' ) start [2025-01-05 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176769', 'tblTempUsageDetail_20' ) end [2025-01-05 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:11:21] Production.INFO: ==17405== Releasing lock... [2025-01-05 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:11:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:12:05 [end_date_ymd] => 2025-01-05 01:12:05 [RateCDR] => 1 ) [2025-01-05 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:12:05' and `end` < '2025-01-05 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:12:19] Production.INFO: count ==243 [2025-01-05 01:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:12:05 - End Time 2025-01-05 01:12:05 [2025-01-05 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176774', 'tblTempUsageDetail_20' ) start [2025-01-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176774', 'tblTempUsageDetail_20' ) end [2025-01-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176774', 'tblTempVendorCDR_20' ) start [2025-01-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176774', 'tblTempVendorCDR_20' ) end [2025-01-05 01:12:19] Production.INFO: ProcessCDR(1,14176774,1,1,2) [2025-01-05 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176774', 'tblTempUsageDetail_20' ) start [2025-01-05 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176774', 'tblTempUsageDetail_20' ) end [2025-01-05 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:12:22] Production.INFO: ==17491== Releasing lock... [2025-01-05 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:12:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:13:05 [end_date_ymd] => 2025-01-05 01:13:05 [RateCDR] => 1 ) [2025-01-05 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:13:05' and `end` < '2025-01-05 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:13:19] Production.INFO: count ==243 [2025-01-05 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:13:05 - End Time 2025-01-05 01:13:05 [2025-01-05 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176779', 'tblTempUsageDetail_20' ) start [2025-01-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176779', 'tblTempUsageDetail_20' ) end [2025-01-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176779', 'tblTempVendorCDR_20' ) start [2025-01-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176779', 'tblTempVendorCDR_20' ) end [2025-01-05 01:13:19] Production.INFO: ProcessCDR(1,14176779,1,1,2) [2025-01-05 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176779', 'tblTempUsageDetail_20' ) start [2025-01-05 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176779', 'tblTempUsageDetail_20' ) end [2025-01-05 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:13:22] Production.INFO: ==17566== Releasing lock... [2025-01-05 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:14:05 [end_date_ymd] => 2025-01-05 01:14:05 [RateCDR] => 1 ) [2025-01-05 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:14:05' and `end` < '2025-01-05 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:14:18] Production.INFO: count ==243 [2025-01-05 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:14:05 - End Time 2025-01-05 01:14:05 [2025-01-05 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176784', 'tblTempUsageDetail_20' ) start [2025-01-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176784', 'tblTempUsageDetail_20' ) end [2025-01-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176784', 'tblTempVendorCDR_20' ) start [2025-01-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176784', 'tblTempVendorCDR_20' ) end [2025-01-05 01:14:18] Production.INFO: ProcessCDR(1,14176784,1,1,2) [2025-01-05 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176784', 'tblTempUsageDetail_20' ) start [2025-01-05 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176784', 'tblTempUsageDetail_20' ) end [2025-01-05 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:14:21] Production.INFO: ==17650== Releasing lock... [2025-01-05 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:14:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:15:04 [end_date_ymd] => 2025-01-05 01:15:04 [RateCDR] => 1 ) [2025-01-05 01:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:15:04' and `end` < '2025-01-05 01:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:15:17] Production.INFO: count ==243 [2025-01-05 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:15:04 - End Time 2025-01-05 01:15:04 [2025-01-05 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176789', 'tblTempUsageDetail_20' ) start [2025-01-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176789', 'tblTempUsageDetail_20' ) end [2025-01-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176789', 'tblTempVendorCDR_20' ) start [2025-01-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176789', 'tblTempVendorCDR_20' ) end [2025-01-05 01:15:17] Production.INFO: ProcessCDR(1,14176789,1,1,2) [2025-01-05 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176789', 'tblTempUsageDetail_20' ) start [2025-01-05 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176789', 'tblTempUsageDetail_20' ) end [2025-01-05 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:15:20] Production.INFO: ==17725== Releasing lock... [2025-01-05 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:15:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:16:05 [end_date_ymd] => 2025-01-05 01:16:05 [RateCDR] => 1 ) [2025-01-05 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:16:05' and `end` < '2025-01-05 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:16:20] Production.INFO: count ==242 [2025-01-05 01:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 22:16:05 - End Time 2025-01-05 01:16:05 [2025-01-05 01:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176794', 'tblTempUsageDetail_20' ) start [2025-01-05 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176794', 'tblTempUsageDetail_20' ) end [2025-01-05 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176794', 'tblTempVendorCDR_20' ) start [2025-01-05 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176794', 'tblTempVendorCDR_20' ) end [2025-01-05 01:16:20] Production.INFO: ProcessCDR(1,14176794,1,1,2) [2025-01-05 01:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176794', 'tblTempUsageDetail_20' ) start [2025-01-05 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176794', 'tblTempUsageDetail_20' ) end [2025-01-05 01:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:16:23] Production.INFO: ==17807== Releasing lock... [2025-01-05 01:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:16:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:17:04 [end_date_ymd] => 2025-01-05 01:17:04 [RateCDR] => 1 ) [2025-01-05 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:17:04' and `end` < '2025-01-05 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:17:17] Production.INFO: count ==241 [2025-01-05 01:17:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:17:04 - End Time 2025-01-05 01:17:04 [2025-01-05 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176799', 'tblTempUsageDetail_20' ) start [2025-01-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176799', 'tblTempUsageDetail_20' ) end [2025-01-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176799', 'tblTempVendorCDR_20' ) start [2025-01-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176799', 'tblTempVendorCDR_20' ) end [2025-01-05 01:17:17] Production.INFO: ProcessCDR(1,14176799,1,1,2) [2025-01-05 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176799', 'tblTempUsageDetail_20' ) start [2025-01-05 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176799', 'tblTempUsageDetail_20' ) end [2025-01-05 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:17:20] Production.INFO: ==17884== Releasing lock... [2025-01-05 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:18:05 [end_date_ymd] => 2025-01-05 01:18:05 [RateCDR] => 1 ) [2025-01-05 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:18:05' and `end` < '2025-01-05 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:18:20] Production.INFO: count ==240 [2025-01-05 01:18:20] Production.ERROR: pbx CDR StartTime 2025-01-04 22:18:05 - End Time 2025-01-05 01:18:05 [2025-01-05 01:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176804', 'tblTempUsageDetail_20' ) start [2025-01-05 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176804', 'tblTempUsageDetail_20' ) end [2025-01-05 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176804', 'tblTempVendorCDR_20' ) start [2025-01-05 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176804', 'tblTempVendorCDR_20' ) end [2025-01-05 01:18:20] Production.INFO: ProcessCDR(1,14176804,1,1,2) [2025-01-05 01:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176804', 'tblTempUsageDetail_20' ) start [2025-01-05 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176804', 'tblTempUsageDetail_20' ) end [2025-01-05 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:18:24] Production.INFO: ==17965== Releasing lock... [2025-01-05 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:18:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:19:05 [end_date_ymd] => 2025-01-05 01:19:05 [RateCDR] => 1 ) [2025-01-05 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:19:05' and `end` < '2025-01-05 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:19:19] Production.INFO: count ==240 [2025-01-05 01:19:20] Production.ERROR: pbx CDR StartTime 2025-01-04 22:19:05 - End Time 2025-01-05 01:19:05 [2025-01-05 01:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176809', 'tblTempUsageDetail_20' ) start [2025-01-05 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176809', 'tblTempUsageDetail_20' ) end [2025-01-05 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176809', 'tblTempVendorCDR_20' ) start [2025-01-05 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176809', 'tblTempVendorCDR_20' ) end [2025-01-05 01:19:20] Production.INFO: ProcessCDR(1,14176809,1,1,2) [2025-01-05 01:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176809', 'tblTempUsageDetail_20' ) start [2025-01-05 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176809', 'tblTempUsageDetail_20' ) end [2025-01-05 01:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:19:23] Production.INFO: ==18050== Releasing lock... [2025-01-05 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:19:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:20:05 [end_date_ymd] => 2025-01-05 01:20:05 [RateCDR] => 1 ) [2025-01-05 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:20:05' and `end` < '2025-01-05 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:20:18] Production.INFO: count ==249 [2025-01-05 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:20:05 - End Time 2025-01-05 01:20:05 [2025-01-05 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176814', 'tblTempUsageDetail_20' ) start [2025-01-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176814', 'tblTempUsageDetail_20' ) end [2025-01-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176814', 'tblTempVendorCDR_20' ) start [2025-01-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176814', 'tblTempVendorCDR_20' ) end [2025-01-05 01:20:18] Production.INFO: ProcessCDR(1,14176814,1,1,2) [2025-01-05 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176814', 'tblTempUsageDetail_20' ) start [2025-01-05 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176814', 'tblTempUsageDetail_20' ) end [2025-01-05 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:20:21] Production.INFO: ==18133== Releasing lock... [2025-01-05 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:21:06 [end_date_ymd] => 2025-01-05 01:21:06 [RateCDR] => 1 ) [2025-01-05 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:21:06' and `end` < '2025-01-05 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:21:19] Production.INFO: count ==262 [2025-01-05 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:21:06 - End Time 2025-01-05 01:21:06 [2025-01-05 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176820', 'tblTempUsageDetail_20' ) start [2025-01-05 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176820', 'tblTempUsageDetail_20' ) end [2025-01-05 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176820', 'tblTempVendorCDR_20' ) start [2025-01-05 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176820', 'tblTempVendorCDR_20' ) end [2025-01-05 01:21:19] Production.INFO: ProcessCDR(1,14176820,1,1,2) [2025-01-05 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176820', 'tblTempUsageDetail_20' ) start [2025-01-05 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176820', 'tblTempUsageDetail_20' ) end [2025-01-05 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:21:22] Production.INFO: ==18221== Releasing lock... [2025-01-05 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:22:05 [end_date_ymd] => 2025-01-05 01:22:05 [RateCDR] => 1 ) [2025-01-05 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:22:05' and `end` < '2025-01-05 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:22:22] Production.INFO: count ==262 [2025-01-05 01:22:22] Production.ERROR: pbx CDR StartTime 2025-01-04 22:22:05 - End Time 2025-01-05 01:22:05 [2025-01-05 01:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176825', 'tblTempUsageDetail_20' ) start [2025-01-05 01:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176825', 'tblTempUsageDetail_20' ) end [2025-01-05 01:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176825', 'tblTempVendorCDR_20' ) start [2025-01-05 01:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176825', 'tblTempVendorCDR_20' ) end [2025-01-05 01:22:22] Production.INFO: ProcessCDR(1,14176825,1,1,2) [2025-01-05 01:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176825', 'tblTempUsageDetail_20' ) start [2025-01-05 01:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176825', 'tblTempUsageDetail_20' ) end [2025-01-05 01:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:22:25] Production.INFO: ==18302== Releasing lock... [2025-01-05 01:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:22:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:23:05 [end_date_ymd] => 2025-01-05 01:23:05 [RateCDR] => 1 ) [2025-01-05 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:23:05' and `end` < '2025-01-05 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:23:18] Production.INFO: count ==263 [2025-01-05 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:23:05 - End Time 2025-01-05 01:23:05 [2025-01-05 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176830', 'tblTempUsageDetail_20' ) start [2025-01-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176830', 'tblTempUsageDetail_20' ) end [2025-01-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176830', 'tblTempVendorCDR_20' ) start [2025-01-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176830', 'tblTempVendorCDR_20' ) end [2025-01-05 01:23:18] Production.INFO: ProcessCDR(1,14176830,1,1,2) [2025-01-05 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176830', 'tblTempUsageDetail_20' ) start [2025-01-05 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176830', 'tblTempUsageDetail_20' ) end [2025-01-05 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:23:22] Production.INFO: ==18380== Releasing lock... [2025-01-05 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:24:05 [end_date_ymd] => 2025-01-05 01:24:05 [RateCDR] => 1 ) [2025-01-05 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:24:05' and `end` < '2025-01-05 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:24:18] Production.INFO: count ==263 [2025-01-05 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:24:05 - End Time 2025-01-05 01:24:05 [2025-01-05 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176835', 'tblTempUsageDetail_20' ) start [2025-01-05 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176835', 'tblTempUsageDetail_20' ) end [2025-01-05 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176835', 'tblTempVendorCDR_20' ) start [2025-01-05 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176835', 'tblTempVendorCDR_20' ) end [2025-01-05 01:24:18] Production.INFO: ProcessCDR(1,14176835,1,1,2) [2025-01-05 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176835', 'tblTempUsageDetail_20' ) start [2025-01-05 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176835', 'tblTempUsageDetail_20' ) end [2025-01-05 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:24:22] Production.INFO: ==18502== Releasing lock... [2025-01-05 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:25:06 [end_date_ymd] => 2025-01-05 01:25:06 [RateCDR] => 1 ) [2025-01-05 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:25:06' and `end` < '2025-01-05 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:25:19] Production.INFO: count ==263 [2025-01-05 01:25:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:25:06 - End Time 2025-01-05 01:25:06 [2025-01-05 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176840', 'tblTempUsageDetail_20' ) start [2025-01-05 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176840', 'tblTempUsageDetail_20' ) end [2025-01-05 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176840', 'tblTempVendorCDR_20' ) start [2025-01-05 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176840', 'tblTempVendorCDR_20' ) end [2025-01-05 01:25:19] Production.INFO: ProcessCDR(1,14176840,1,1,2) [2025-01-05 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176840', 'tblTempUsageDetail_20' ) start [2025-01-05 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176840', 'tblTempUsageDetail_20' ) end [2025-01-05 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:25:22] Production.INFO: ==18587== Releasing lock... [2025-01-05 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:26:05 [end_date_ymd] => 2025-01-05 01:26:05 [RateCDR] => 1 ) [2025-01-05 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:26:05' and `end` < '2025-01-05 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:26:19] Production.INFO: count ==263 [2025-01-05 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:26:05 - End Time 2025-01-05 01:26:05 [2025-01-05 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176845', 'tblTempUsageDetail_20' ) start [2025-01-05 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176845', 'tblTempUsageDetail_20' ) end [2025-01-05 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176845', 'tblTempVendorCDR_20' ) start [2025-01-05 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176845', 'tblTempVendorCDR_20' ) end [2025-01-05 01:26:19] Production.INFO: ProcessCDR(1,14176845,1,1,2) [2025-01-05 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176845', 'tblTempUsageDetail_20' ) start [2025-01-05 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176845', 'tblTempUsageDetail_20' ) end [2025-01-05 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:26:22] Production.INFO: ==18667== Releasing lock... [2025-01-05 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:27:05 [end_date_ymd] => 2025-01-05 01:27:05 [RateCDR] => 1 ) [2025-01-05 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:27:05' and `end` < '2025-01-05 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:27:18] Production.INFO: count ==260 [2025-01-05 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:27:05 - End Time 2025-01-05 01:27:05 [2025-01-05 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176850', 'tblTempUsageDetail_20' ) start [2025-01-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176850', 'tblTempUsageDetail_20' ) end [2025-01-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176850', 'tblTempVendorCDR_20' ) start [2025-01-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176850', 'tblTempVendorCDR_20' ) end [2025-01-05 01:27:18] Production.INFO: ProcessCDR(1,14176850,1,1,2) [2025-01-05 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176850', 'tblTempUsageDetail_20' ) start [2025-01-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176850', 'tblTempUsageDetail_20' ) end [2025-01-05 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:27:21] Production.INFO: ==18752== Releasing lock... [2025-01-05 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:28:05 [end_date_ymd] => 2025-01-05 01:28:05 [RateCDR] => 1 ) [2025-01-05 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:28:05' and `end` < '2025-01-05 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:28:18] Production.INFO: count ==260 [2025-01-05 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:28:05 - End Time 2025-01-05 01:28:05 [2025-01-05 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176855', 'tblTempUsageDetail_20' ) start [2025-01-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176855', 'tblTempUsageDetail_20' ) end [2025-01-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176855', 'tblTempVendorCDR_20' ) start [2025-01-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176855', 'tblTempVendorCDR_20' ) end [2025-01-05 01:28:19] Production.INFO: ProcessCDR(1,14176855,1,1,2) [2025-01-05 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176855', 'tblTempUsageDetail_20' ) start [2025-01-05 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176855', 'tblTempUsageDetail_20' ) end [2025-01-05 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:28:22] Production.INFO: ==18835== Releasing lock... [2025-01-05 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:29:05 [end_date_ymd] => 2025-01-05 01:29:05 [RateCDR] => 1 ) [2025-01-05 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:29:05' and `end` < '2025-01-05 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:29:18] Production.INFO: count ==260 [2025-01-05 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:29:05 - End Time 2025-01-05 01:29:05 [2025-01-05 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176860', 'tblTempUsageDetail_20' ) start [2025-01-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176860', 'tblTempUsageDetail_20' ) end [2025-01-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176860', 'tblTempVendorCDR_20' ) start [2025-01-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176860', 'tblTempVendorCDR_20' ) end [2025-01-05 01:29:18] Production.INFO: ProcessCDR(1,14176860,1,1,2) [2025-01-05 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176860', 'tblTempUsageDetail_20' ) start [2025-01-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176860', 'tblTempUsageDetail_20' ) end [2025-01-05 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:29:21] Production.INFO: ==18916== Releasing lock... [2025-01-05 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:30:06 [end_date_ymd] => 2025-01-05 01:30:06 [RateCDR] => 1 ) [2025-01-05 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:30:06' and `end` < '2025-01-05 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:30:18] Production.INFO: count ==266 [2025-01-05 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:30:06 - End Time 2025-01-05 01:30:06 [2025-01-05 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176866', 'tblTempUsageDetail_20' ) start [2025-01-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176866', 'tblTempUsageDetail_20' ) end [2025-01-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176866', 'tblTempVendorCDR_20' ) start [2025-01-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176866', 'tblTempVendorCDR_20' ) end [2025-01-05 01:30:19] Production.INFO: ProcessCDR(1,14176866,1,1,2) [2025-01-05 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176866', 'tblTempUsageDetail_20' ) start [2025-01-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176866', 'tblTempUsageDetail_20' ) end [2025-01-05 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:30:22] Production.INFO: ==19000== Releasing lock... [2025-01-05 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:31:05 [end_date_ymd] => 2025-01-05 01:31:05 [RateCDR] => 1 ) [2025-01-05 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:31:05' and `end` < '2025-01-05 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:31:19] Production.INFO: count ==266 [2025-01-05 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:31:05 - End Time 2025-01-05 01:31:05 [2025-01-05 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176871', 'tblTempUsageDetail_20' ) start [2025-01-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176871', 'tblTempUsageDetail_20' ) end [2025-01-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176871', 'tblTempVendorCDR_20' ) start [2025-01-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176871', 'tblTempVendorCDR_20' ) end [2025-01-05 01:31:19] Production.INFO: ProcessCDR(1,14176871,1,1,2) [2025-01-05 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176871', 'tblTempUsageDetail_20' ) start [2025-01-05 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176871', 'tblTempUsageDetail_20' ) end [2025-01-05 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:31:22] Production.INFO: ==19082== Releasing lock... [2025-01-05 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:32:06 [end_date_ymd] => 2025-01-05 01:32:06 [RateCDR] => 1 ) [2025-01-05 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:32:06' and `end` < '2025-01-05 01:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:32:19] Production.INFO: count ==266 [2025-01-05 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:32:06 - End Time 2025-01-05 01:32:06 [2025-01-05 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176876', 'tblTempUsageDetail_20' ) start [2025-01-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176876', 'tblTempUsageDetail_20' ) end [2025-01-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176876', 'tblTempVendorCDR_20' ) start [2025-01-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176876', 'tblTempVendorCDR_20' ) end [2025-01-05 01:32:19] Production.INFO: ProcessCDR(1,14176876,1,1,2) [2025-01-05 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176876', 'tblTempUsageDetail_20' ) start [2025-01-05 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176876', 'tblTempUsageDetail_20' ) end [2025-01-05 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:32:22] Production.INFO: ==19166== Releasing lock... [2025-01-05 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:33:04 [end_date_ymd] => 2025-01-05 01:33:04 [RateCDR] => 1 ) [2025-01-05 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:33:04' and `end` < '2025-01-05 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:33:18] Production.INFO: count ==266 [2025-01-05 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:33:04 - End Time 2025-01-05 01:33:04 [2025-01-05 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176881', 'tblTempUsageDetail_20' ) start [2025-01-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176881', 'tblTempUsageDetail_20' ) end [2025-01-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176881', 'tblTempVendorCDR_20' ) start [2025-01-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176881', 'tblTempVendorCDR_20' ) end [2025-01-05 01:33:18] Production.INFO: ProcessCDR(1,14176881,1,1,2) [2025-01-05 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176881', 'tblTempUsageDetail_20' ) start [2025-01-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176881', 'tblTempUsageDetail_20' ) end [2025-01-05 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:33:21] Production.INFO: ==19252== Releasing lock... [2025-01-05 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:34:05 [end_date_ymd] => 2025-01-05 01:34:05 [RateCDR] => 1 ) [2025-01-05 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:34:05' and `end` < '2025-01-05 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:34:18] Production.INFO: count ==266 [2025-01-05 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:34:05 - End Time 2025-01-05 01:34:05 [2025-01-05 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176886', 'tblTempUsageDetail_20' ) start [2025-01-05 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176886', 'tblTempUsageDetail_20' ) end [2025-01-05 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176886', 'tblTempVendorCDR_20' ) start [2025-01-05 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176886', 'tblTempVendorCDR_20' ) end [2025-01-05 01:34:18] Production.INFO: ProcessCDR(1,14176886,1,1,2) [2025-01-05 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176886', 'tblTempUsageDetail_20' ) start [2025-01-05 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176886', 'tblTempUsageDetail_20' ) end [2025-01-05 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:34:21] Production.INFO: ==19335== Releasing lock... [2025-01-05 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:35:04 [end_date_ymd] => 2025-01-05 01:35:04 [RateCDR] => 1 ) [2025-01-05 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:35:04' and `end` < '2025-01-05 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:35:17] Production.INFO: count ==263 [2025-01-05 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:35:04 - End Time 2025-01-05 01:35:04 [2025-01-05 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176891', 'tblTempUsageDetail_20' ) start [2025-01-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176891', 'tblTempUsageDetail_20' ) end [2025-01-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176891', 'tblTempVendorCDR_20' ) start [2025-01-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176891', 'tblTempVendorCDR_20' ) end [2025-01-05 01:35:17] Production.INFO: ProcessCDR(1,14176891,1,1,2) [2025-01-05 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176891', 'tblTempUsageDetail_20' ) start [2025-01-05 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176891', 'tblTempUsageDetail_20' ) end [2025-01-05 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:35:20] Production.INFO: ==19433== Releasing lock... [2025-01-05 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:36:05 [end_date_ymd] => 2025-01-05 01:36:05 [RateCDR] => 1 ) [2025-01-05 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:36:05' and `end` < '2025-01-05 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:36:19] Production.INFO: count ==262 [2025-01-05 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:36:05 - End Time 2025-01-05 01:36:05 [2025-01-05 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176896', 'tblTempUsageDetail_20' ) start [2025-01-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176896', 'tblTempUsageDetail_20' ) end [2025-01-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176896', 'tblTempVendorCDR_20' ) start [2025-01-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176896', 'tblTempVendorCDR_20' ) end [2025-01-05 01:36:19] Production.INFO: ProcessCDR(1,14176896,1,1,2) [2025-01-05 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176896', 'tblTempUsageDetail_20' ) start [2025-01-05 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176896', 'tblTempUsageDetail_20' ) end [2025-01-05 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:36:22] Production.INFO: ==19527== Releasing lock... [2025-01-05 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:36:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:37:05 [end_date_ymd] => 2025-01-05 01:37:05 [RateCDR] => 1 ) [2025-01-05 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:37:05' and `end` < '2025-01-05 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:37:18] Production.INFO: count ==262 [2025-01-05 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:37:05 - End Time 2025-01-05 01:37:05 [2025-01-05 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176901', 'tblTempUsageDetail_20' ) start [2025-01-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176901', 'tblTempUsageDetail_20' ) end [2025-01-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176901', 'tblTempVendorCDR_20' ) start [2025-01-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176901', 'tblTempVendorCDR_20' ) end [2025-01-05 01:37:18] Production.INFO: ProcessCDR(1,14176901,1,1,2) [2025-01-05 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176901', 'tblTempUsageDetail_20' ) start [2025-01-05 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176901', 'tblTempUsageDetail_20' ) end [2025-01-05 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:37:21] Production.INFO: ==19619== Releasing lock... [2025-01-05 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:37:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:38:05 [end_date_ymd] => 2025-01-05 01:38:05 [RateCDR] => 1 ) [2025-01-05 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:38:05' and `end` < '2025-01-05 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:38:18] Production.INFO: count ==262 [2025-01-05 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:38:05 - End Time 2025-01-05 01:38:05 [2025-01-05 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176906', 'tblTempUsageDetail_20' ) start [2025-01-05 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176906', 'tblTempUsageDetail_20' ) end [2025-01-05 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176906', 'tblTempVendorCDR_20' ) start [2025-01-05 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176906', 'tblTempVendorCDR_20' ) end [2025-01-05 01:38:18] Production.INFO: ProcessCDR(1,14176906,1,1,2) [2025-01-05 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176906', 'tblTempUsageDetail_20' ) start [2025-01-05 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176906', 'tblTempUsageDetail_20' ) end [2025-01-05 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:38:21] Production.INFO: ==19716== Releasing lock... [2025-01-05 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:38:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:39:05 [end_date_ymd] => 2025-01-05 01:39:05 [RateCDR] => 1 ) [2025-01-05 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:39:05' and `end` < '2025-01-05 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:39:19] Production.INFO: count ==255 [2025-01-05 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:39:05 - End Time 2025-01-05 01:39:05 [2025-01-05 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176911', 'tblTempUsageDetail_20' ) start [2025-01-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176911', 'tblTempUsageDetail_20' ) end [2025-01-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176911', 'tblTempVendorCDR_20' ) start [2025-01-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176911', 'tblTempVendorCDR_20' ) end [2025-01-05 01:39:19] Production.INFO: ProcessCDR(1,14176911,1,1,2) [2025-01-05 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176911', 'tblTempUsageDetail_20' ) start [2025-01-05 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176911', 'tblTempUsageDetail_20' ) end [2025-01-05 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:39:22] Production.INFO: ==19810== Releasing lock... [2025-01-05 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:39:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:40:05 [end_date_ymd] => 2025-01-05 01:40:05 [RateCDR] => 1 ) [2025-01-05 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:40:05' and `end` < '2025-01-05 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:40:18] Production.INFO: count ==260 [2025-01-05 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:40:05 - End Time 2025-01-05 01:40:05 [2025-01-05 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176917', 'tblTempUsageDetail_20' ) start [2025-01-05 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176917', 'tblTempUsageDetail_20' ) end [2025-01-05 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176917', 'tblTempVendorCDR_20' ) start [2025-01-05 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176917', 'tblTempVendorCDR_20' ) end [2025-01-05 01:40:18] Production.INFO: ProcessCDR(1,14176917,1,1,2) [2025-01-05 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176917', 'tblTempUsageDetail_20' ) start [2025-01-05 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176917', 'tblTempUsageDetail_20' ) end [2025-01-05 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:40:22] Production.INFO: ==19944== Releasing lock... [2025-01-05 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:41:05 [end_date_ymd] => 2025-01-05 01:41:05 [RateCDR] => 1 ) [2025-01-05 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:41:05' and `end` < '2025-01-05 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:41:17] Production.INFO: count ==283 [2025-01-05 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:41:05 - End Time 2025-01-05 01:41:05 [2025-01-05 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176922', 'tblTempUsageDetail_20' ) start [2025-01-05 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176922', 'tblTempUsageDetail_20' ) end [2025-01-05 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176922', 'tblTempVendorCDR_20' ) start [2025-01-05 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176922', 'tblTempVendorCDR_20' ) end [2025-01-05 01:41:18] Production.INFO: ProcessCDR(1,14176922,1,1,2) [2025-01-05 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176922', 'tblTempUsageDetail_20' ) start [2025-01-05 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176922', 'tblTempUsageDetail_20' ) end [2025-01-05 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:41:21] Production.INFO: ==20041== Releasing lock... [2025-01-05 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:42:05 [end_date_ymd] => 2025-01-05 01:42:05 [RateCDR] => 1 ) [2025-01-05 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:42:05' and `end` < '2025-01-05 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:42:18] Production.INFO: count ==282 [2025-01-05 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:42:05 - End Time 2025-01-05 01:42:05 [2025-01-05 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176927', 'tblTempUsageDetail_20' ) start [2025-01-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176927', 'tblTempUsageDetail_20' ) end [2025-01-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176927', 'tblTempVendorCDR_20' ) start [2025-01-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176927', 'tblTempVendorCDR_20' ) end [2025-01-05 01:42:18] Production.INFO: ProcessCDR(1,14176927,1,1,2) [2025-01-05 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176927', 'tblTempUsageDetail_20' ) start [2025-01-05 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176927', 'tblTempUsageDetail_20' ) end [2025-01-05 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:42:21] Production.INFO: ==20134== Releasing lock... [2025-01-05 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:43:04 [end_date_ymd] => 2025-01-05 01:43:04 [RateCDR] => 1 ) [2025-01-05 01:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:43:04' and `end` < '2025-01-05 01:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:43:17] Production.INFO: count ==282 [2025-01-05 01:43:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:43:04 - End Time 2025-01-05 01:43:04 [2025-01-05 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176932', 'tblTempUsageDetail_20' ) start [2025-01-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176932', 'tblTempUsageDetail_20' ) end [2025-01-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176932', 'tblTempVendorCDR_20' ) start [2025-01-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176932', 'tblTempVendorCDR_20' ) end [2025-01-05 01:43:17] Production.INFO: ProcessCDR(1,14176932,1,1,2) [2025-01-05 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176932', 'tblTempUsageDetail_20' ) start [2025-01-05 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176932', 'tblTempUsageDetail_20' ) end [2025-01-05 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:43:21] Production.INFO: ==20219== Releasing lock... [2025-01-05 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:44:05 [end_date_ymd] => 2025-01-05 01:44:05 [RateCDR] => 1 ) [2025-01-05 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:44:05' and `end` < '2025-01-05 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:44:19] Production.INFO: count ==283 [2025-01-05 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:44:05 - End Time 2025-01-05 01:44:05 [2025-01-05 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176937', 'tblTempUsageDetail_20' ) start [2025-01-05 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176937', 'tblTempUsageDetail_20' ) end [2025-01-05 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176937', 'tblTempVendorCDR_20' ) start [2025-01-05 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176937', 'tblTempVendorCDR_20' ) end [2025-01-05 01:44:19] Production.INFO: ProcessCDR(1,14176937,1,1,2) [2025-01-05 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176937', 'tblTempUsageDetail_20' ) start [2025-01-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176937', 'tblTempUsageDetail_20' ) end [2025-01-05 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:44:22] Production.INFO: ==20309== Releasing lock... [2025-01-05 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:44:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:45:05 [end_date_ymd] => 2025-01-05 01:45:05 [RateCDR] => 1 ) [2025-01-05 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:45:05' and `end` < '2025-01-05 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:45:18] Production.INFO: count ==283 [2025-01-05 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:45:05 - End Time 2025-01-05 01:45:05 [2025-01-05 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176942', 'tblTempUsageDetail_20' ) start [2025-01-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176942', 'tblTempUsageDetail_20' ) end [2025-01-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176942', 'tblTempVendorCDR_20' ) start [2025-01-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176942', 'tblTempVendorCDR_20' ) end [2025-01-05 01:45:18] Production.INFO: ProcessCDR(1,14176942,1,1,2) [2025-01-05 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176942', 'tblTempUsageDetail_20' ) start [2025-01-05 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176942', 'tblTempUsageDetail_20' ) end [2025-01-05 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:45:21] Production.INFO: ==20404== Releasing lock... [2025-01-05 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:46:05 [end_date_ymd] => 2025-01-05 01:46:05 [RateCDR] => 1 ) [2025-01-05 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:46:05' and `end` < '2025-01-05 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:46:19] Production.INFO: count ==283 [2025-01-05 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:46:05 - End Time 2025-01-05 01:46:05 [2025-01-05 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176947', 'tblTempUsageDetail_20' ) start [2025-01-05 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176947', 'tblTempUsageDetail_20' ) end [2025-01-05 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176947', 'tblTempVendorCDR_20' ) start [2025-01-05 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176947', 'tblTempVendorCDR_20' ) end [2025-01-05 01:46:19] Production.INFO: ProcessCDR(1,14176947,1,1,2) [2025-01-05 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176947', 'tblTempUsageDetail_20' ) start [2025-01-05 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176947', 'tblTempUsageDetail_20' ) end [2025-01-05 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:46:22] Production.INFO: ==20498== Releasing lock... [2025-01-05 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:47:04 [end_date_ymd] => 2025-01-05 01:47:04 [RateCDR] => 1 ) [2025-01-05 01:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:47:04' and `end` < '2025-01-05 01:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:47:18] Production.INFO: count ==282 [2025-01-05 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:47:04 - End Time 2025-01-05 01:47:04 [2025-01-05 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176952', 'tblTempUsageDetail_20' ) start [2025-01-05 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176952', 'tblTempUsageDetail_20' ) end [2025-01-05 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176952', 'tblTempVendorCDR_20' ) start [2025-01-05 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176952', 'tblTempVendorCDR_20' ) end [2025-01-05 01:47:18] Production.INFO: ProcessCDR(1,14176952,1,1,2) [2025-01-05 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176952', 'tblTempUsageDetail_20' ) start [2025-01-05 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176952', 'tblTempUsageDetail_20' ) end [2025-01-05 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:47:21] Production.INFO: ==20585== Releasing lock... [2025-01-05 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:48:05 [end_date_ymd] => 2025-01-05 01:48:05 [RateCDR] => 1 ) [2025-01-05 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:48:05' and `end` < '2025-01-05 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:48:18] Production.INFO: count ==283 [2025-01-05 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:48:05 - End Time 2025-01-05 01:48:05 [2025-01-05 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176957', 'tblTempUsageDetail_20' ) start [2025-01-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176957', 'tblTempUsageDetail_20' ) end [2025-01-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176957', 'tblTempVendorCDR_20' ) start [2025-01-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176957', 'tblTempVendorCDR_20' ) end [2025-01-05 01:48:18] Production.INFO: ProcessCDR(1,14176957,1,1,2) [2025-01-05 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176957', 'tblTempUsageDetail_20' ) start [2025-01-05 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176957', 'tblTempUsageDetail_20' ) end [2025-01-05 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:48:23] Production.INFO: ==20679== Releasing lock... [2025-01-05 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:48:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:49:06 [end_date_ymd] => 2025-01-05 01:49:06 [RateCDR] => 1 ) [2025-01-05 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:49:06' and `end` < '2025-01-05 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:49:19] Production.INFO: count ==283 [2025-01-05 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:49:06 - End Time 2025-01-05 01:49:06 [2025-01-05 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176962', 'tblTempUsageDetail_20' ) start [2025-01-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176962', 'tblTempUsageDetail_20' ) end [2025-01-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176962', 'tblTempVendorCDR_20' ) start [2025-01-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176962', 'tblTempVendorCDR_20' ) end [2025-01-05 01:49:19] Production.INFO: ProcessCDR(1,14176962,1,1,2) [2025-01-05 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176962', 'tblTempUsageDetail_20' ) start [2025-01-05 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176962', 'tblTempUsageDetail_20' ) end [2025-01-05 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:49:22] Production.INFO: ==20771== Releasing lock... [2025-01-05 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:50:05 [end_date_ymd] => 2025-01-05 01:50:05 [RateCDR] => 1 ) [2025-01-05 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:50:05' and `end` < '2025-01-05 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:50:18] Production.INFO: count ==289 [2025-01-05 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:50:05 - End Time 2025-01-05 01:50:05 [2025-01-05 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176968', 'tblTempUsageDetail_20' ) start [2025-01-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176968', 'tblTempUsageDetail_20' ) end [2025-01-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176968', 'tblTempVendorCDR_20' ) start [2025-01-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176968', 'tblTempVendorCDR_20' ) end [2025-01-05 01:50:18] Production.INFO: ProcessCDR(1,14176968,1,1,2) [2025-01-05 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176968', 'tblTempUsageDetail_20' ) start [2025-01-05 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176968', 'tblTempUsageDetail_20' ) end [2025-01-05 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:50:21] Production.INFO: ==20863== Releasing lock... [2025-01-05 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:51:06 [end_date_ymd] => 2025-01-05 01:51:06 [RateCDR] => 1 ) [2025-01-05 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:51:06' and `end` < '2025-01-05 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:51:20] Production.INFO: count ==297 [2025-01-05 01:51:20] Production.ERROR: pbx CDR StartTime 2025-01-04 22:51:06 - End Time 2025-01-05 01:51:06 [2025-01-05 01:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176973', 'tblTempUsageDetail_20' ) start [2025-01-05 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176973', 'tblTempUsageDetail_20' ) end [2025-01-05 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176973', 'tblTempVendorCDR_20' ) start [2025-01-05 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176973', 'tblTempVendorCDR_20' ) end [2025-01-05 01:51:20] Production.INFO: ProcessCDR(1,14176973,1,1,2) [2025-01-05 01:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176973', 'tblTempUsageDetail_20' ) start [2025-01-05 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176973', 'tblTempUsageDetail_20' ) end [2025-01-05 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:51:23] Production.INFO: ==20965== Releasing lock... [2025-01-05 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:51:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:52:05 [end_date_ymd] => 2025-01-05 01:52:05 [RateCDR] => 1 ) [2025-01-05 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:52:05' and `end` < '2025-01-05 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:52:19] Production.INFO: count ==297 [2025-01-05 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:52:05 - End Time 2025-01-05 01:52:05 [2025-01-05 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176978', 'tblTempUsageDetail_20' ) start [2025-01-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176978', 'tblTempUsageDetail_20' ) end [2025-01-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176978', 'tblTempVendorCDR_20' ) start [2025-01-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176978', 'tblTempVendorCDR_20' ) end [2025-01-05 01:52:19] Production.INFO: ProcessCDR(1,14176978,1,1,2) [2025-01-05 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176978', 'tblTempUsageDetail_20' ) start [2025-01-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176978', 'tblTempUsageDetail_20' ) end [2025-01-05 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:52:22] Production.INFO: ==21064== Releasing lock... [2025-01-05 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:53:06 [end_date_ymd] => 2025-01-05 01:53:06 [RateCDR] => 1 ) [2025-01-05 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:53:06' and `end` < '2025-01-05 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:53:19] Production.INFO: count ==298 [2025-01-05 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:53:06 - End Time 2025-01-05 01:53:06 [2025-01-05 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176983', 'tblTempUsageDetail_20' ) start [2025-01-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176983', 'tblTempUsageDetail_20' ) end [2025-01-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176983', 'tblTempVendorCDR_20' ) start [2025-01-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176983', 'tblTempVendorCDR_20' ) end [2025-01-05 01:53:19] Production.INFO: ProcessCDR(1,14176983,1,1,2) [2025-01-05 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176983', 'tblTempUsageDetail_20' ) start [2025-01-05 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176983', 'tblTempUsageDetail_20' ) end [2025-01-05 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:53:23] Production.INFO: ==21156== Releasing lock... [2025-01-05 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:53:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:54:04 [end_date_ymd] => 2025-01-05 01:54:04 [RateCDR] => 1 ) [2025-01-05 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:54:04' and `end` < '2025-01-05 01:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:54:17] Production.INFO: count ==298 [2025-01-05 01:54:17] Production.ERROR: pbx CDR StartTime 2025-01-04 22:54:04 - End Time 2025-01-05 01:54:04 [2025-01-05 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176988', 'tblTempUsageDetail_20' ) start [2025-01-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176988', 'tblTempUsageDetail_20' ) end [2025-01-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176988', 'tblTempVendorCDR_20' ) start [2025-01-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176988', 'tblTempVendorCDR_20' ) end [2025-01-05 01:54:17] Production.INFO: ProcessCDR(1,14176988,1,1,2) [2025-01-05 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176988', 'tblTempUsageDetail_20' ) start [2025-01-05 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176988', 'tblTempUsageDetail_20' ) end [2025-01-05 01:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:54:20] Production.INFO: ==21250== Releasing lock... [2025-01-05 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:54:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:55:06 [end_date_ymd] => 2025-01-05 01:55:06 [RateCDR] => 1 ) [2025-01-05 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:55:06' and `end` < '2025-01-05 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:55:18] Production.INFO: count ==296 [2025-01-05 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:55:06 - End Time 2025-01-05 01:55:06 [2025-01-05 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176993', 'tblTempUsageDetail_20' ) start [2025-01-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176993', 'tblTempUsageDetail_20' ) end [2025-01-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176993', 'tblTempVendorCDR_20' ) start [2025-01-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176993', 'tblTempVendorCDR_20' ) end [2025-01-05 01:55:18] Production.INFO: ProcessCDR(1,14176993,1,1,2) [2025-01-05 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176993', 'tblTempUsageDetail_20' ) start [2025-01-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176993', 'tblTempUsageDetail_20' ) end [2025-01-05 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:55:21] Production.INFO: ==21390== Releasing lock... [2025-01-05 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:56:05 [end_date_ymd] => 2025-01-05 01:56:05 [RateCDR] => 1 ) [2025-01-05 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:56:05' and `end` < '2025-01-05 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:56:18] Production.INFO: count ==295 [2025-01-05 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 22:56:05 - End Time 2025-01-05 01:56:05 [2025-01-05 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176998', 'tblTempUsageDetail_20' ) start [2025-01-05 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176998', 'tblTempUsageDetail_20' ) end [2025-01-05 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176998', 'tblTempVendorCDR_20' ) start [2025-01-05 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176998', 'tblTempVendorCDR_20' ) end [2025-01-05 01:56:18] Production.INFO: ProcessCDR(1,14176998,1,1,2) [2025-01-05 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176998', 'tblTempUsageDetail_20' ) start [2025-01-05 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176998', 'tblTempUsageDetail_20' ) end [2025-01-05 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:56:21] Production.INFO: ==21497== Releasing lock... [2025-01-05 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:56:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:57:05 [end_date_ymd] => 2025-01-05 01:57:05 [RateCDR] => 1 ) [2025-01-05 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:57:05' and `end` < '2025-01-05 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:57:19] Production.INFO: count ==295 [2025-01-05 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:57:05 - End Time 2025-01-05 01:57:05 [2025-01-05 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177003', 'tblTempUsageDetail_20' ) start [2025-01-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177003', 'tblTempUsageDetail_20' ) end [2025-01-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177003', 'tblTempVendorCDR_20' ) start [2025-01-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177003', 'tblTempVendorCDR_20' ) end [2025-01-05 01:57:19] Production.INFO: ProcessCDR(1,14177003,1,1,2) [2025-01-05 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177003', 'tblTempUsageDetail_20' ) start [2025-01-05 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177003', 'tblTempUsageDetail_20' ) end [2025-01-05 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:57:22] Production.INFO: ==21598== Releasing lock... [2025-01-05 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:57:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:58:04 [end_date_ymd] => 2025-01-05 01:58:04 [RateCDR] => 1 ) [2025-01-05 01:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:58:04' and `end` < '2025-01-05 01:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:58:19] Production.INFO: count ==295 [2025-01-05 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:58:04 - End Time 2025-01-05 01:58:04 [2025-01-05 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177008', 'tblTempUsageDetail_20' ) start [2025-01-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177008', 'tblTempUsageDetail_20' ) end [2025-01-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177008', 'tblTempVendorCDR_20' ) start [2025-01-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177008', 'tblTempVendorCDR_20' ) end [2025-01-05 01:58:19] Production.INFO: ProcessCDR(1,14177008,1,1,2) [2025-01-05 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177008', 'tblTempUsageDetail_20' ) start [2025-01-05 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177008', 'tblTempUsageDetail_20' ) end [2025-01-05 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:58:22] Production.INFO: ==21698== Releasing lock... [2025-01-05 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:58:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 22:59:05 [end_date_ymd] => 2025-01-05 01:59:05 [RateCDR] => 1 ) [2025-01-05 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 22:59:05' and `end` < '2025-01-05 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 01:59:18] Production.INFO: count ==295 [2025-01-05 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 22:59:05 - End Time 2025-01-05 01:59:05 [2025-01-05 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177013', 'tblTempUsageDetail_20' ) start [2025-01-05 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177013', 'tblTempUsageDetail_20' ) end [2025-01-05 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177013', 'tblTempVendorCDR_20' ) start [2025-01-05 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177013', 'tblTempVendorCDR_20' ) end [2025-01-05 01:59:19] Production.INFO: ProcessCDR(1,14177013,1,1,2) [2025-01-05 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177013', 'tblTempUsageDetail_20' ) start [2025-01-05 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177013', 'tblTempUsageDetail_20' ) end [2025-01-05 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 01:59:22] Production.INFO: ==21801== Releasing lock... [2025-01-05 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 01:59:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:00:06 [end_date_ymd] => 2025-01-05 02:00:06 [RateCDR] => 1 ) [2025-01-05 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:00:06' and `end` < '2025-01-05 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:00:19] Production.INFO: count ==306 [2025-01-05 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:00:06 - End Time 2025-01-05 02:00:06 [2025-01-05 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177018', 'tblTempUsageDetail_20' ) start [2025-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177018', 'tblTempUsageDetail_20' ) end [2025-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177018', 'tblTempVendorCDR_20' ) start [2025-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177018', 'tblTempVendorCDR_20' ) end [2025-01-05 02:00:19] Production.INFO: ProcessCDR(1,14177018,1,1,2) [2025-01-05 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177018', 'tblTempUsageDetail_20' ) start [2025-01-05 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177018', 'tblTempUsageDetail_20' ) end [2025-01-05 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:00:24] Production.INFO: ==21899== Releasing lock... [2025-01-05 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:00:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:01:05 [end_date_ymd] => 2025-01-05 02:01:05 [RateCDR] => 1 ) [2025-01-05 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:01:05' and `end` < '2025-01-05 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:01:18] Production.INFO: count ==318 [2025-01-05 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:01:05 - End Time 2025-01-05 02:01:05 [2025-01-05 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177024', 'tblTempUsageDetail_20' ) start [2025-01-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177024', 'tblTempUsageDetail_20' ) end [2025-01-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177024', 'tblTempVendorCDR_20' ) start [2025-01-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177024', 'tblTempVendorCDR_20' ) end [2025-01-05 02:01:18] Production.INFO: ProcessCDR(1,14177024,1,1,2) [2025-01-05 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177024', 'tblTempUsageDetail_20' ) start [2025-01-05 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177024', 'tblTempUsageDetail_20' ) end [2025-01-05 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:01:21] Production.INFO: ==22097== Releasing lock... [2025-01-05 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:02:05 [end_date_ymd] => 2025-01-05 02:02:05 [RateCDR] => 1 ) [2025-01-05 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:02:05' and `end` < '2025-01-05 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:02:18] Production.INFO: count ==318 [2025-01-05 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:02:05 - End Time 2025-01-05 02:02:05 [2025-01-05 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177029', 'tblTempUsageDetail_20' ) start [2025-01-05 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177029', 'tblTempUsageDetail_20' ) end [2025-01-05 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177029', 'tblTempVendorCDR_20' ) start [2025-01-05 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177029', 'tblTempVendorCDR_20' ) end [2025-01-05 02:02:19] Production.INFO: ProcessCDR(1,14177029,1,1,2) [2025-01-05 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177029', 'tblTempUsageDetail_20' ) start [2025-01-05 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177029', 'tblTempUsageDetail_20' ) end [2025-01-05 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:02:22] Production.INFO: ==22191== Releasing lock... [2025-01-05 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:03:05 [end_date_ymd] => 2025-01-05 02:03:05 [RateCDR] => 1 ) [2025-01-05 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:03:05' and `end` < '2025-01-05 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:03:18] Production.INFO: count ==317 [2025-01-05 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:03:05 - End Time 2025-01-05 02:03:05 [2025-01-05 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177034', 'tblTempUsageDetail_20' ) start [2025-01-05 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177034', 'tblTempUsageDetail_20' ) end [2025-01-05 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177034', 'tblTempVendorCDR_20' ) start [2025-01-05 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177034', 'tblTempVendorCDR_20' ) end [2025-01-05 02:03:18] Production.INFO: ProcessCDR(1,14177034,1,1,2) [2025-01-05 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177034', 'tblTempUsageDetail_20' ) start [2025-01-05 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177034', 'tblTempUsageDetail_20' ) end [2025-01-05 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:03:21] Production.INFO: ==22283== Releasing lock... [2025-01-05 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:04:05 [end_date_ymd] => 2025-01-05 02:04:05 [RateCDR] => 1 ) [2025-01-05 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:04:05' and `end` < '2025-01-05 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:04:19] Production.INFO: count ==317 [2025-01-05 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:04:05 - End Time 2025-01-05 02:04:05 [2025-01-05 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177039', 'tblTempUsageDetail_20' ) start [2025-01-05 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177039', 'tblTempUsageDetail_20' ) end [2025-01-05 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177039', 'tblTempVendorCDR_20' ) start [2025-01-05 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177039', 'tblTempVendorCDR_20' ) end [2025-01-05 02:04:19] Production.INFO: ProcessCDR(1,14177039,1,1,2) [2025-01-05 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177039', 'tblTempUsageDetail_20' ) start [2025-01-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177039', 'tblTempUsageDetail_20' ) end [2025-01-05 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:04:22] Production.INFO: ==22371== Releasing lock... [2025-01-05 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:05:05 [end_date_ymd] => 2025-01-05 02:05:05 [RateCDR] => 1 ) [2025-01-05 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:05:05' and `end` < '2025-01-05 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:05:17] Production.INFO: count ==315 [2025-01-05 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:05:05 - End Time 2025-01-05 02:05:05 [2025-01-05 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177044', 'tblTempUsageDetail_20' ) start [2025-01-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177044', 'tblTempUsageDetail_20' ) end [2025-01-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177044', 'tblTempVendorCDR_20' ) start [2025-01-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177044', 'tblTempVendorCDR_20' ) end [2025-01-05 02:05:17] Production.INFO: ProcessCDR(1,14177044,1,1,2) [2025-01-05 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177044', 'tblTempUsageDetail_20' ) start [2025-01-05 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177044', 'tblTempUsageDetail_20' ) end [2025-01-05 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:05:21] Production.INFO: ==22467== Releasing lock... [2025-01-05 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:06:05 [end_date_ymd] => 2025-01-05 02:06:05 [RateCDR] => 1 ) [2025-01-05 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:06:05' and `end` < '2025-01-05 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:06:20] Production.INFO: count ==313 [2025-01-05 02:06:20] Production.ERROR: pbx CDR StartTime 2025-01-04 23:06:05 - End Time 2025-01-05 02:06:05 [2025-01-05 02:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177049', 'tblTempUsageDetail_20' ) start [2025-01-05 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177049', 'tblTempUsageDetail_20' ) end [2025-01-05 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177049', 'tblTempVendorCDR_20' ) start [2025-01-05 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177049', 'tblTempVendorCDR_20' ) end [2025-01-05 02:06:20] Production.INFO: ProcessCDR(1,14177049,1,1,2) [2025-01-05 02:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177049', 'tblTempUsageDetail_20' ) start [2025-01-05 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177049', 'tblTempUsageDetail_20' ) end [2025-01-05 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:06:23] Production.INFO: ==22562== Releasing lock... [2025-01-05 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:07:05 [end_date_ymd] => 2025-01-05 02:07:05 [RateCDR] => 1 ) [2025-01-05 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:07:05' and `end` < '2025-01-05 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:07:19] Production.INFO: count ==313 [2025-01-05 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:07:05 - End Time 2025-01-05 02:07:05 [2025-01-05 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177054', 'tblTempUsageDetail_20' ) start [2025-01-05 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177054', 'tblTempUsageDetail_20' ) end [2025-01-05 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177054', 'tblTempVendorCDR_20' ) start [2025-01-05 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177054', 'tblTempVendorCDR_20' ) end [2025-01-05 02:07:19] Production.INFO: ProcessCDR(1,14177054,1,1,2) [2025-01-05 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177054', 'tblTempUsageDetail_20' ) start [2025-01-05 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177054', 'tblTempUsageDetail_20' ) end [2025-01-05 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:07:22] Production.INFO: ==22651== Releasing lock... [2025-01-05 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:08:05 [end_date_ymd] => 2025-01-05 02:08:05 [RateCDR] => 1 ) [2025-01-05 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:08:05' and `end` < '2025-01-05 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:08:18] Production.INFO: count ==312 [2025-01-05 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:08:05 - End Time 2025-01-05 02:08:05 [2025-01-05 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177059', 'tblTempUsageDetail_20' ) start [2025-01-05 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177059', 'tblTempUsageDetail_20' ) end [2025-01-05 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177059', 'tblTempVendorCDR_20' ) start [2025-01-05 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177059', 'tblTempVendorCDR_20' ) end [2025-01-05 02:08:18] Production.INFO: ProcessCDR(1,14177059,1,1,2) [2025-01-05 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177059', 'tblTempUsageDetail_20' ) start [2025-01-05 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177059', 'tblTempUsageDetail_20' ) end [2025-01-05 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:08:21] Production.INFO: ==22739== Releasing lock... [2025-01-05 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:09:05 [end_date_ymd] => 2025-01-05 02:09:05 [RateCDR] => 1 ) [2025-01-05 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:09:05' and `end` < '2025-01-05 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:09:19] Production.INFO: count ==314 [2025-01-05 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:09:05 - End Time 2025-01-05 02:09:05 [2025-01-05 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177064', 'tblTempUsageDetail_20' ) start [2025-01-05 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177064', 'tblTempUsageDetail_20' ) end [2025-01-05 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177064', 'tblTempVendorCDR_20' ) start [2025-01-05 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177064', 'tblTempVendorCDR_20' ) end [2025-01-05 02:09:19] Production.INFO: ProcessCDR(1,14177064,1,1,2) [2025-01-05 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177064', 'tblTempUsageDetail_20' ) start [2025-01-05 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177064', 'tblTempUsageDetail_20' ) end [2025-01-05 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:09:23] Production.INFO: ==22829== Releasing lock... [2025-01-05 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:09:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:10:06 [end_date_ymd] => 2025-01-05 02:10:06 [RateCDR] => 1 ) [2025-01-05 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:10:06' and `end` < '2025-01-05 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:10:18] Production.INFO: count ==322 [2025-01-05 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:10:06 - End Time 2025-01-05 02:10:06 [2025-01-05 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177070', 'tblTempUsageDetail_20' ) start [2025-01-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177070', 'tblTempUsageDetail_20' ) end [2025-01-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177070', 'tblTempVendorCDR_20' ) start [2025-01-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177070', 'tblTempVendorCDR_20' ) end [2025-01-05 02:10:18] Production.INFO: ProcessCDR(1,14177070,1,1,2) [2025-01-05 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177070', 'tblTempUsageDetail_20' ) start [2025-01-05 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177070', 'tblTempUsageDetail_20' ) end [2025-01-05 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:10:22] Production.INFO: ==22911== Releasing lock... [2025-01-05 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:10:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:11:05 [end_date_ymd] => 2025-01-05 02:11:05 [RateCDR] => 1 ) [2025-01-05 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:11:05' and `end` < '2025-01-05 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:11:19] Production.INFO: count ==327 [2025-01-05 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:11:05 - End Time 2025-01-05 02:11:05 [2025-01-05 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177075', 'tblTempUsageDetail_20' ) start [2025-01-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177075', 'tblTempUsageDetail_20' ) end [2025-01-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177075', 'tblTempVendorCDR_20' ) start [2025-01-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177075', 'tblTempVendorCDR_20' ) end [2025-01-05 02:11:19] Production.INFO: ProcessCDR(1,14177075,1,1,2) [2025-01-05 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177075', 'tblTempUsageDetail_20' ) start [2025-01-05 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177075', 'tblTempUsageDetail_20' ) end [2025-01-05 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:11:22] Production.INFO: ==23038== Releasing lock... [2025-01-05 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:11:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:12:05 [end_date_ymd] => 2025-01-05 02:12:05 [RateCDR] => 1 ) [2025-01-05 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:12:05' and `end` < '2025-01-05 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:12:19] Production.INFO: count ==327 [2025-01-05 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:12:05 - End Time 2025-01-05 02:12:05 [2025-01-05 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177080', 'tblTempUsageDetail_20' ) start [2025-01-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177080', 'tblTempUsageDetail_20' ) end [2025-01-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177080', 'tblTempVendorCDR_20' ) start [2025-01-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177080', 'tblTempVendorCDR_20' ) end [2025-01-05 02:12:19] Production.INFO: ProcessCDR(1,14177080,1,1,2) [2025-01-05 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177080', 'tblTempUsageDetail_20' ) start [2025-01-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177080', 'tblTempUsageDetail_20' ) end [2025-01-05 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:12:22] Production.INFO: ==23127== Releasing lock... [2025-01-05 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:12:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:13:05 [end_date_ymd] => 2025-01-05 02:13:05 [RateCDR] => 1 ) [2025-01-05 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:13:05' and `end` < '2025-01-05 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:13:18] Production.INFO: count ==327 [2025-01-05 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:13:05 - End Time 2025-01-05 02:13:05 [2025-01-05 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177085', 'tblTempUsageDetail_20' ) start [2025-01-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177085', 'tblTempUsageDetail_20' ) end [2025-01-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177085', 'tblTempVendorCDR_20' ) start [2025-01-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177085', 'tblTempVendorCDR_20' ) end [2025-01-05 02:13:18] Production.INFO: ProcessCDR(1,14177085,1,1,2) [2025-01-05 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177085', 'tblTempUsageDetail_20' ) start [2025-01-05 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177085', 'tblTempUsageDetail_20' ) end [2025-01-05 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:13:21] Production.INFO: ==23214== Releasing lock... [2025-01-05 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:13:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:14:05 [end_date_ymd] => 2025-01-05 02:14:05 [RateCDR] => 1 ) [2025-01-05 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:14:05' and `end` < '2025-01-05 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:14:19] Production.INFO: count ==327 [2025-01-05 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:14:05 - End Time 2025-01-05 02:14:05 [2025-01-05 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177090', 'tblTempUsageDetail_20' ) start [2025-01-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177090', 'tblTempUsageDetail_20' ) end [2025-01-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177090', 'tblTempVendorCDR_20' ) start [2025-01-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177090', 'tblTempVendorCDR_20' ) end [2025-01-05 02:14:19] Production.INFO: ProcessCDR(1,14177090,1,1,2) [2025-01-05 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177090', 'tblTempUsageDetail_20' ) start [2025-01-05 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177090', 'tblTempUsageDetail_20' ) end [2025-01-05 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:14:22] Production.INFO: ==23297== Releasing lock... [2025-01-05 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:15:05 [end_date_ymd] => 2025-01-05 02:15:05 [RateCDR] => 1 ) [2025-01-05 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:15:05' and `end` < '2025-01-05 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:15:18] Production.INFO: count ==327 [2025-01-05 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:15:05 - End Time 2025-01-05 02:15:05 [2025-01-05 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177095', 'tblTempUsageDetail_20' ) start [2025-01-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177095', 'tblTempUsageDetail_20' ) end [2025-01-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177095', 'tblTempVendorCDR_20' ) start [2025-01-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177095', 'tblTempVendorCDR_20' ) end [2025-01-05 02:15:18] Production.INFO: ProcessCDR(1,14177095,1,1,2) [2025-01-05 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177095', 'tblTempUsageDetail_20' ) start [2025-01-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177095', 'tblTempUsageDetail_20' ) end [2025-01-05 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:15:21] Production.INFO: ==23381== Releasing lock... [2025-01-05 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:16:05 [end_date_ymd] => 2025-01-05 02:16:05 [RateCDR] => 1 ) [2025-01-05 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:16:05' and `end` < '2025-01-05 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:16:18] Production.INFO: count ==324 [2025-01-05 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:16:05 - End Time 2025-01-05 02:16:05 [2025-01-05 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177100', 'tblTempUsageDetail_20' ) start [2025-01-05 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177100', 'tblTempUsageDetail_20' ) end [2025-01-05 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177100', 'tblTempVendorCDR_20' ) start [2025-01-05 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177100', 'tblTempVendorCDR_20' ) end [2025-01-05 02:16:18] Production.INFO: ProcessCDR(1,14177100,1,1,2) [2025-01-05 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177100', 'tblTempUsageDetail_20' ) start [2025-01-05 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177100', 'tblTempUsageDetail_20' ) end [2025-01-05 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:16:22] Production.INFO: ==23472== Releasing lock... [2025-01-05 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:16:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:17:05 [end_date_ymd] => 2025-01-05 02:17:05 [RateCDR] => 1 ) [2025-01-05 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:17:05' and `end` < '2025-01-05 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:17:17] Production.INFO: count ==324 [2025-01-05 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:17:05 - End Time 2025-01-05 02:17:05 [2025-01-05 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177105', 'tblTempUsageDetail_20' ) start [2025-01-05 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177105', 'tblTempUsageDetail_20' ) end [2025-01-05 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177105', 'tblTempVendorCDR_20' ) start [2025-01-05 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177105', 'tblTempVendorCDR_20' ) end [2025-01-05 02:17:17] Production.INFO: ProcessCDR(1,14177105,1,1,2) [2025-01-05 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177105', 'tblTempUsageDetail_20' ) start [2025-01-05 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177105', 'tblTempUsageDetail_20' ) end [2025-01-05 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:17:21] Production.INFO: ==23556== Releasing lock... [2025-01-05 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:17:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:18:05 [end_date_ymd] => 2025-01-05 02:18:05 [RateCDR] => 1 ) [2025-01-05 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:18:05' and `end` < '2025-01-05 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:18:19] Production.INFO: count ==324 [2025-01-05 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:18:05 - End Time 2025-01-05 02:18:05 [2025-01-05 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177110', 'tblTempUsageDetail_20' ) start [2025-01-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177110', 'tblTempUsageDetail_20' ) end [2025-01-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177110', 'tblTempVendorCDR_20' ) start [2025-01-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177110', 'tblTempVendorCDR_20' ) end [2025-01-05 02:18:19] Production.INFO: ProcessCDR(1,14177110,1,1,2) [2025-01-05 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177110', 'tblTempUsageDetail_20' ) start [2025-01-05 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177110', 'tblTempUsageDetail_20' ) end [2025-01-05 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:18:22] Production.INFO: ==23641== Releasing lock... [2025-01-05 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:18:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:19:05 [end_date_ymd] => 2025-01-05 02:19:05 [RateCDR] => 1 ) [2025-01-05 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:19:05' and `end` < '2025-01-05 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:19:17] Production.INFO: count ==325 [2025-01-05 02:19:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:19:05 - End Time 2025-01-05 02:19:05 [2025-01-05 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177115', 'tblTempUsageDetail_20' ) start [2025-01-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177115', 'tblTempUsageDetail_20' ) end [2025-01-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177115', 'tblTempVendorCDR_20' ) start [2025-01-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177115', 'tblTempVendorCDR_20' ) end [2025-01-05 02:19:17] Production.INFO: ProcessCDR(1,14177115,1,1,2) [2025-01-05 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177115', 'tblTempUsageDetail_20' ) start [2025-01-05 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177115', 'tblTempUsageDetail_20' ) end [2025-01-05 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:19:22] Production.INFO: ==23724== Releasing lock... [2025-01-05 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:19:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:20:05 [end_date_ymd] => 2025-01-05 02:20:05 [RateCDR] => 1 ) [2025-01-05 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:20:05' and `end` < '2025-01-05 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:20:18] Production.INFO: count ==335 [2025-01-05 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:20:05 - End Time 2025-01-05 02:20:05 [2025-01-05 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177121', 'tblTempUsageDetail_20' ) start [2025-01-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177121', 'tblTempUsageDetail_20' ) end [2025-01-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177121', 'tblTempVendorCDR_20' ) start [2025-01-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177121', 'tblTempVendorCDR_20' ) end [2025-01-05 02:20:18] Production.INFO: ProcessCDR(1,14177121,1,1,2) [2025-01-05 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177121', 'tblTempUsageDetail_20' ) start [2025-01-05 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177121', 'tblTempUsageDetail_20' ) end [2025-01-05 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:20:23] Production.INFO: ==23810== Releasing lock... [2025-01-05 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:20:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:21:04 [end_date_ymd] => 2025-01-05 02:21:04 [RateCDR] => 1 ) [2025-01-05 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:21:04' and `end` < '2025-01-05 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:21:17] Production.INFO: count ==341 [2025-01-05 02:21:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:21:04 - End Time 2025-01-05 02:21:04 [2025-01-05 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177126', 'tblTempUsageDetail_20' ) start [2025-01-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177126', 'tblTempUsageDetail_20' ) end [2025-01-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177126', 'tblTempVendorCDR_20' ) start [2025-01-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177126', 'tblTempVendorCDR_20' ) end [2025-01-05 02:21:17] Production.INFO: ProcessCDR(1,14177126,1,1,2) [2025-01-05 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177126', 'tblTempUsageDetail_20' ) start [2025-01-05 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177126', 'tblTempUsageDetail_20' ) end [2025-01-05 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:21:20] Production.INFO: ==23900== Releasing lock... [2025-01-05 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:21:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:22:05 [end_date_ymd] => 2025-01-05 02:22:05 [RateCDR] => 1 ) [2025-01-05 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:22:05' and `end` < '2025-01-05 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:22:19] Production.INFO: count ==341 [2025-01-05 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:22:05 - End Time 2025-01-05 02:22:05 [2025-01-05 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177131', 'tblTempUsageDetail_20' ) start [2025-01-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177131', 'tblTempUsageDetail_20' ) end [2025-01-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177131', 'tblTempVendorCDR_20' ) start [2025-01-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177131', 'tblTempVendorCDR_20' ) end [2025-01-05 02:22:19] Production.INFO: ProcessCDR(1,14177131,1,1,2) [2025-01-05 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177131', 'tblTempUsageDetail_20' ) start [2025-01-05 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177131', 'tblTempUsageDetail_20' ) end [2025-01-05 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:22:22] Production.INFO: ==23983== Releasing lock... [2025-01-05 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:22:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:23:05 [end_date_ymd] => 2025-01-05 02:23:05 [RateCDR] => 1 ) [2025-01-05 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:23:05' and `end` < '2025-01-05 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:23:18] Production.INFO: count ==341 [2025-01-05 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:23:05 - End Time 2025-01-05 02:23:05 [2025-01-05 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177136', 'tblTempUsageDetail_20' ) start [2025-01-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177136', 'tblTempUsageDetail_20' ) end [2025-01-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177136', 'tblTempVendorCDR_20' ) start [2025-01-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177136', 'tblTempVendorCDR_20' ) end [2025-01-05 02:23:18] Production.INFO: ProcessCDR(1,14177136,1,1,2) [2025-01-05 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177136', 'tblTempUsageDetail_20' ) start [2025-01-05 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177136', 'tblTempUsageDetail_20' ) end [2025-01-05 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:23:21] Production.INFO: ==24074== Releasing lock... [2025-01-05 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:23:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:24:05 [end_date_ymd] => 2025-01-05 02:24:05 [RateCDR] => 1 ) [2025-01-05 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:24:05' and `end` < '2025-01-05 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:24:19] Production.INFO: count ==340 [2025-01-05 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:24:05 - End Time 2025-01-05 02:24:05 [2025-01-05 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177141', 'tblTempUsageDetail_20' ) start [2025-01-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177141', 'tblTempUsageDetail_20' ) end [2025-01-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177141', 'tblTempVendorCDR_20' ) start [2025-01-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177141', 'tblTempVendorCDR_20' ) end [2025-01-05 02:24:19] Production.INFO: ProcessCDR(1,14177141,1,1,2) [2025-01-05 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177141', 'tblTempUsageDetail_20' ) start [2025-01-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177141', 'tblTempUsageDetail_20' ) end [2025-01-05 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:24:22] Production.INFO: ==24154== Releasing lock... [2025-01-05 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:25:05 [end_date_ymd] => 2025-01-05 02:25:05 [RateCDR] => 1 ) [2025-01-05 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:25:05' and `end` < '2025-01-05 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:25:17] Production.INFO: count ==340 [2025-01-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:25:05 - End Time 2025-01-05 02:25:05 [2025-01-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177146', 'tblTempUsageDetail_20' ) start [2025-01-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177146', 'tblTempUsageDetail_20' ) end [2025-01-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177146', 'tblTempVendorCDR_20' ) start [2025-01-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177146', 'tblTempVendorCDR_20' ) end [2025-01-05 02:25:18] Production.INFO: ProcessCDR(1,14177146,1,1,2) [2025-01-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177146', 'tblTempUsageDetail_20' ) start [2025-01-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177146', 'tblTempUsageDetail_20' ) end [2025-01-05 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:25:21] Production.INFO: ==24240== Releasing lock... [2025-01-05 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:25:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:26:05 [end_date_ymd] => 2025-01-05 02:26:05 [RateCDR] => 1 ) [2025-01-05 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:26:05' and `end` < '2025-01-05 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:26:19] Production.INFO: count ==340 [2025-01-05 02:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:26:05 - End Time 2025-01-05 02:26:05 [2025-01-05 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177151', 'tblTempUsageDetail_20' ) start [2025-01-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177151', 'tblTempUsageDetail_20' ) end [2025-01-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177151', 'tblTempVendorCDR_20' ) start [2025-01-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177151', 'tblTempVendorCDR_20' ) end [2025-01-05 02:26:19] Production.INFO: ProcessCDR(1,14177151,1,1,2) [2025-01-05 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177151', 'tblTempUsageDetail_20' ) start [2025-01-05 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177151', 'tblTempUsageDetail_20' ) end [2025-01-05 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:26:22] Production.INFO: ==24331== Releasing lock... [2025-01-05 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:26:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:27:05 [end_date_ymd] => 2025-01-05 02:27:05 [RateCDR] => 1 ) [2025-01-05 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:27:05' and `end` < '2025-01-05 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:27:18] Production.INFO: count ==340 [2025-01-05 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:27:05 - End Time 2025-01-05 02:27:05 [2025-01-05 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177156', 'tblTempUsageDetail_20' ) start [2025-01-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177156', 'tblTempUsageDetail_20' ) end [2025-01-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177156', 'tblTempVendorCDR_20' ) start [2025-01-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177156', 'tblTempVendorCDR_20' ) end [2025-01-05 02:27:18] Production.INFO: ProcessCDR(1,14177156,1,1,2) [2025-01-05 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177156', 'tblTempUsageDetail_20' ) start [2025-01-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177156', 'tblTempUsageDetail_20' ) end [2025-01-05 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:27:21] Production.INFO: ==24456== Releasing lock... [2025-01-05 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:27:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:28:05 [end_date_ymd] => 2025-01-05 02:28:05 [RateCDR] => 1 ) [2025-01-05 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:28:05' and `end` < '2025-01-05 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:28:17] Production.INFO: count ==340 [2025-01-05 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:28:05 - End Time 2025-01-05 02:28:05 [2025-01-05 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177161', 'tblTempUsageDetail_20' ) start [2025-01-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177161', 'tblTempUsageDetail_20' ) end [2025-01-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177161', 'tblTempVendorCDR_20' ) start [2025-01-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177161', 'tblTempVendorCDR_20' ) end [2025-01-05 02:28:17] Production.INFO: ProcessCDR(1,14177161,1,1,2) [2025-01-05 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177161', 'tblTempUsageDetail_20' ) start [2025-01-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177161', 'tblTempUsageDetail_20' ) end [2025-01-05 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:28:21] Production.INFO: ==24540== Releasing lock... [2025-01-05 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:28:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:29:05 [end_date_ymd] => 2025-01-05 02:29:05 [RateCDR] => 1 ) [2025-01-05 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:29:05' and `end` < '2025-01-05 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:29:19] Production.INFO: count ==337 [2025-01-05 02:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:29:05 - End Time 2025-01-05 02:29:05 [2025-01-05 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177166', 'tblTempUsageDetail_20' ) start [2025-01-05 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177166', 'tblTempUsageDetail_20' ) end [2025-01-05 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177166', 'tblTempVendorCDR_20' ) start [2025-01-05 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177166', 'tblTempVendorCDR_20' ) end [2025-01-05 02:29:19] Production.INFO: ProcessCDR(1,14177166,1,1,2) [2025-01-05 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177166', 'tblTempUsageDetail_20' ) start [2025-01-05 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177166', 'tblTempUsageDetail_20' ) end [2025-01-05 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:29:22] Production.INFO: ==24629== Releasing lock... [2025-01-05 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:29:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:30:05 [end_date_ymd] => 2025-01-05 02:30:05 [RateCDR] => 1 ) [2025-01-05 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:30:05' and `end` < '2025-01-05 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:30:18] Production.INFO: count ==342 [2025-01-05 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:30:05 - End Time 2025-01-05 02:30:05 [2025-01-05 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177171', 'tblTempUsageDetail_20' ) start [2025-01-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177171', 'tblTempUsageDetail_20' ) end [2025-01-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177171', 'tblTempVendorCDR_20' ) start [2025-01-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177171', 'tblTempVendorCDR_20' ) end [2025-01-05 02:30:18] Production.INFO: ProcessCDR(1,14177171,1,1,2) [2025-01-05 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177171', 'tblTempUsageDetail_20' ) start [2025-01-05 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177171', 'tblTempUsageDetail_20' ) end [2025-01-05 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:30:21] Production.INFO: ==24716== Releasing lock... [2025-01-05 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:30:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:31:05 [end_date_ymd] => 2025-01-05 02:31:05 [RateCDR] => 1 ) [2025-01-05 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:31:05' and `end` < '2025-01-05 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:31:19] Production.INFO: count ==347 [2025-01-05 02:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:31:05 - End Time 2025-01-05 02:31:05 [2025-01-05 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177177', 'tblTempUsageDetail_20' ) start [2025-01-05 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177177', 'tblTempUsageDetail_20' ) end [2025-01-05 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177177', 'tblTempVendorCDR_20' ) start [2025-01-05 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177177', 'tblTempVendorCDR_20' ) end [2025-01-05 02:31:19] Production.INFO: ProcessCDR(1,14177177,1,1,2) [2025-01-05 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177177', 'tblTempUsageDetail_20' ) start [2025-01-05 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177177', 'tblTempUsageDetail_20' ) end [2025-01-05 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:31:22] Production.INFO: ==24804== Releasing lock... [2025-01-05 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:31:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:32:05 [end_date_ymd] => 2025-01-05 02:32:05 [RateCDR] => 1 ) [2025-01-05 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:32:05' and `end` < '2025-01-05 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:32:19] Production.INFO: count ==347 [2025-01-05 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:32:05 - End Time 2025-01-05 02:32:05 [2025-01-05 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177182', 'tblTempUsageDetail_20' ) start [2025-01-05 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177182', 'tblTempUsageDetail_20' ) end [2025-01-05 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177182', 'tblTempVendorCDR_20' ) start [2025-01-05 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177182', 'tblTempVendorCDR_20' ) end [2025-01-05 02:32:19] Production.INFO: ProcessCDR(1,14177182,1,1,2) [2025-01-05 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177182', 'tblTempUsageDetail_20' ) start [2025-01-05 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177182', 'tblTempUsageDetail_20' ) end [2025-01-05 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:32:23] Production.INFO: ==24886== Releasing lock... [2025-01-05 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:32:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:33:05 [end_date_ymd] => 2025-01-05 02:33:05 [RateCDR] => 1 ) [2025-01-05 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:33:05' and `end` < '2025-01-05 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:33:18] Production.INFO: count ==346 [2025-01-05 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:33:05 - End Time 2025-01-05 02:33:05 [2025-01-05 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177187', 'tblTempUsageDetail_20' ) start [2025-01-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177187', 'tblTempUsageDetail_20' ) end [2025-01-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177187', 'tblTempVendorCDR_20' ) start [2025-01-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177187', 'tblTempVendorCDR_20' ) end [2025-01-05 02:33:18] Production.INFO: ProcessCDR(1,14177187,1,1,2) [2025-01-05 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177187', 'tblTempUsageDetail_20' ) start [2025-01-05 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177187', 'tblTempUsageDetail_20' ) end [2025-01-05 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:33:21] Production.INFO: ==24966== Releasing lock... [2025-01-05 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:33:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:34:05 [end_date_ymd] => 2025-01-05 02:34:05 [RateCDR] => 1 ) [2025-01-05 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:34:05' and `end` < '2025-01-05 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:34:19] Production.INFO: count ==346 [2025-01-05 02:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:34:05 - End Time 2025-01-05 02:34:05 [2025-01-05 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177192', 'tblTempUsageDetail_20' ) start [2025-01-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177192', 'tblTempUsageDetail_20' ) end [2025-01-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177192', 'tblTempVendorCDR_20' ) start [2025-01-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177192', 'tblTempVendorCDR_20' ) end [2025-01-05 02:34:19] Production.INFO: ProcessCDR(1,14177192,1,1,2) [2025-01-05 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177192', 'tblTempUsageDetail_20' ) start [2025-01-05 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177192', 'tblTempUsageDetail_20' ) end [2025-01-05 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:34:23] Production.INFO: ==25044== Releasing lock... [2025-01-05 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:34:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:35:05 [end_date_ymd] => 2025-01-05 02:35:05 [RateCDR] => 1 ) [2025-01-05 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:35:05' and `end` < '2025-01-05 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:35:18] Production.INFO: count ==346 [2025-01-05 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:35:05 - End Time 2025-01-05 02:35:05 [2025-01-05 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177197', 'tblTempUsageDetail_20' ) start [2025-01-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177197', 'tblTempUsageDetail_20' ) end [2025-01-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177197', 'tblTempVendorCDR_20' ) start [2025-01-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177197', 'tblTempVendorCDR_20' ) end [2025-01-05 02:35:18] Production.INFO: ProcessCDR(1,14177197,1,1,2) [2025-01-05 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177197', 'tblTempUsageDetail_20' ) start [2025-01-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177197', 'tblTempUsageDetail_20' ) end [2025-01-05 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:35:21] Production.INFO: ==25127== Releasing lock... [2025-01-05 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:35:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:36:05 [end_date_ymd] => 2025-01-05 02:36:05 [RateCDR] => 1 ) [2025-01-05 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:36:05' and `end` < '2025-01-05 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:36:18] Production.INFO: count ==346 [2025-01-05 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:36:05 - End Time 2025-01-05 02:36:05 [2025-01-05 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177202', 'tblTempUsageDetail_20' ) start [2025-01-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177202', 'tblTempUsageDetail_20' ) end [2025-01-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177202', 'tblTempVendorCDR_20' ) start [2025-01-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177202', 'tblTempVendorCDR_20' ) end [2025-01-05 02:36:18] Production.INFO: ProcessCDR(1,14177202,1,1,2) [2025-01-05 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177202', 'tblTempUsageDetail_20' ) start [2025-01-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177202', 'tblTempUsageDetail_20' ) end [2025-01-05 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:36:22] Production.INFO: ==25209== Releasing lock... [2025-01-05 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:36:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:37:06 [end_date_ymd] => 2025-01-05 02:37:06 [RateCDR] => 1 ) [2025-01-05 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:37:06' and `end` < '2025-01-05 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:37:21] Production.INFO: count ==344 [2025-01-05 02:37:21] Production.ERROR: pbx CDR StartTime 2025-01-04 23:37:06 - End Time 2025-01-05 02:37:06 [2025-01-05 02:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177207', 'tblTempUsageDetail_20' ) start [2025-01-05 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177207', 'tblTempUsageDetail_20' ) end [2025-01-05 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177207', 'tblTempVendorCDR_20' ) start [2025-01-05 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177207', 'tblTempVendorCDR_20' ) end [2025-01-05 02:37:21] Production.INFO: ProcessCDR(1,14177207,1,1,2) [2025-01-05 02:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177207', 'tblTempUsageDetail_20' ) start [2025-01-05 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177207', 'tblTempUsageDetail_20' ) end [2025-01-05 02:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:37:24] Production.INFO: ==25293== Releasing lock... [2025-01-05 02:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:37:24] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:38:05 [end_date_ymd] => 2025-01-05 02:38:05 [RateCDR] => 1 ) [2025-01-05 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:38:05' and `end` < '2025-01-05 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:38:19] Production.INFO: count ==343 [2025-01-05 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:38:05 - End Time 2025-01-05 02:38:05 [2025-01-05 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177212', 'tblTempUsageDetail_20' ) start [2025-01-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177212', 'tblTempUsageDetail_20' ) end [2025-01-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177212', 'tblTempVendorCDR_20' ) start [2025-01-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177212', 'tblTempVendorCDR_20' ) end [2025-01-05 02:38:19] Production.INFO: ProcessCDR(1,14177212,1,1,2) [2025-01-05 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177212', 'tblTempUsageDetail_20' ) start [2025-01-05 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177212', 'tblTempUsageDetail_20' ) end [2025-01-05 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:38:22] Production.INFO: ==25373== Releasing lock... [2025-01-05 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:39:04 [end_date_ymd] => 2025-01-05 02:39:04 [RateCDR] => 1 ) [2025-01-05 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:39:04' and `end` < '2025-01-05 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:39:19] Production.INFO: count ==342 [2025-01-05 02:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:39:04 - End Time 2025-01-05 02:39:04 [2025-01-05 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177217', 'tblTempUsageDetail_20' ) start [2025-01-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177217', 'tblTempUsageDetail_20' ) end [2025-01-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177217', 'tblTempVendorCDR_20' ) start [2025-01-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177217', 'tblTempVendorCDR_20' ) end [2025-01-05 02:39:19] Production.INFO: ProcessCDR(1,14177217,1,1,2) [2025-01-05 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177217', 'tblTempUsageDetail_20' ) start [2025-01-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177217', 'tblTempUsageDetail_20' ) end [2025-01-05 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:39:22] Production.INFO: ==25451== Releasing lock... [2025-01-05 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:39:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:40:05 [end_date_ymd] => 2025-01-05 02:40:05 [RateCDR] => 1 ) [2025-01-05 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:40:05' and `end` < '2025-01-05 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:40:18] Production.INFO: count ==349 [2025-01-05 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:40:05 - End Time 2025-01-05 02:40:05 [2025-01-05 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177223', 'tblTempUsageDetail_20' ) start [2025-01-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177223', 'tblTempUsageDetail_20' ) end [2025-01-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177223', 'tblTempVendorCDR_20' ) start [2025-01-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177223', 'tblTempVendorCDR_20' ) end [2025-01-05 02:40:18] Production.INFO: ProcessCDR(1,14177223,1,1,2) [2025-01-05 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177223', 'tblTempUsageDetail_20' ) start [2025-01-05 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177223', 'tblTempUsageDetail_20' ) end [2025-01-05 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:40:21] Production.INFO: ==25531== Releasing lock... [2025-01-05 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:40:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:41:04 [end_date_ymd] => 2025-01-05 02:41:04 [RateCDR] => 1 ) [2025-01-05 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:41:04' and `end` < '2025-01-05 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:41:17] Production.INFO: count ==357 [2025-01-05 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:41:04 - End Time 2025-01-05 02:41:04 [2025-01-05 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177228', 'tblTempUsageDetail_20' ) start [2025-01-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177228', 'tblTempUsageDetail_20' ) end [2025-01-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177228', 'tblTempVendorCDR_20' ) start [2025-01-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177228', 'tblTempVendorCDR_20' ) end [2025-01-05 02:41:17] Production.INFO: ProcessCDR(1,14177228,1,1,2) [2025-01-05 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177228', 'tblTempUsageDetail_20' ) start [2025-01-05 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177228', 'tblTempUsageDetail_20' ) end [2025-01-05 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:41:20] Production.INFO: ==25609== Releasing lock... [2025-01-05 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:42:05 [end_date_ymd] => 2025-01-05 02:42:05 [RateCDR] => 1 ) [2025-01-05 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:42:05' and `end` < '2025-01-05 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:42:19] Production.INFO: count ==357 [2025-01-05 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:42:05 - End Time 2025-01-05 02:42:05 [2025-01-05 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177233', 'tblTempUsageDetail_20' ) start [2025-01-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177233', 'tblTempUsageDetail_20' ) end [2025-01-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177233', 'tblTempVendorCDR_20' ) start [2025-01-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177233', 'tblTempVendorCDR_20' ) end [2025-01-05 02:42:19] Production.INFO: ProcessCDR(1,14177233,1,1,2) [2025-01-05 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177233', 'tblTempUsageDetail_20' ) start [2025-01-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177233', 'tblTempUsageDetail_20' ) end [2025-01-05 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:42:22] Production.INFO: ==25727== Releasing lock... [2025-01-05 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:43:05 [end_date_ymd] => 2025-01-05 02:43:05 [RateCDR] => 1 ) [2025-01-05 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:43:05' and `end` < '2025-01-05 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:43:19] Production.INFO: count ==357 [2025-01-05 02:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:43:05 - End Time 2025-01-05 02:43:05 [2025-01-05 02:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177238', 'tblTempUsageDetail_20' ) start [2025-01-05 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177238', 'tblTempUsageDetail_20' ) end [2025-01-05 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177238', 'tblTempVendorCDR_20' ) start [2025-01-05 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177238', 'tblTempVendorCDR_20' ) end [2025-01-05 02:43:20] Production.INFO: ProcessCDR(1,14177238,1,1,2) [2025-01-05 02:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177238', 'tblTempUsageDetail_20' ) start [2025-01-05 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177238', 'tblTempUsageDetail_20' ) end [2025-01-05 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:43:23] Production.INFO: ==25800== Releasing lock... [2025-01-05 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:43:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:44:04 [end_date_ymd] => 2025-01-05 02:44:04 [RateCDR] => 1 ) [2025-01-05 02:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:44:04' and `end` < '2025-01-05 02:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:44:17] Production.INFO: count ==359 [2025-01-05 02:44:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:44:04 - End Time 2025-01-05 02:44:04 [2025-01-05 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177243', 'tblTempUsageDetail_20' ) start [2025-01-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177243', 'tblTempUsageDetail_20' ) end [2025-01-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177243', 'tblTempVendorCDR_20' ) start [2025-01-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177243', 'tblTempVendorCDR_20' ) end [2025-01-05 02:44:17] Production.INFO: ProcessCDR(1,14177243,1,1,2) [2025-01-05 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177243', 'tblTempUsageDetail_20' ) start [2025-01-05 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177243', 'tblTempUsageDetail_20' ) end [2025-01-05 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:44:20] Production.INFO: ==25881== Releasing lock... [2025-01-05 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:44:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:45:04 [end_date_ymd] => 2025-01-05 02:45:04 [RateCDR] => 1 ) [2025-01-05 02:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:45:04' and `end` < '2025-01-05 02:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:45:17] Production.INFO: count ==359 [2025-01-05 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:45:04 - End Time 2025-01-05 02:45:04 [2025-01-05 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177248', 'tblTempUsageDetail_20' ) start [2025-01-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177248', 'tblTempUsageDetail_20' ) end [2025-01-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177248', 'tblTempVendorCDR_20' ) start [2025-01-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177248', 'tblTempVendorCDR_20' ) end [2025-01-05 02:45:17] Production.INFO: ProcessCDR(1,14177248,1,1,2) [2025-01-05 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177248', 'tblTempUsageDetail_20' ) start [2025-01-05 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177248', 'tblTempUsageDetail_20' ) end [2025-01-05 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:45:20] Production.INFO: ==25962== Releasing lock... [2025-01-05 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:45:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:46:05 [end_date_ymd] => 2025-01-05 02:46:05 [RateCDR] => 1 ) [2025-01-05 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:46:05' and `end` < '2025-01-05 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:46:20] Production.INFO: count ==362 [2025-01-05 02:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 23:46:05 - End Time 2025-01-05 02:46:05 [2025-01-05 02:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177253', 'tblTempUsageDetail_20' ) start [2025-01-05 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177253', 'tblTempUsageDetail_20' ) end [2025-01-05 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177253', 'tblTempVendorCDR_20' ) start [2025-01-05 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177253', 'tblTempVendorCDR_20' ) end [2025-01-05 02:46:20] Production.INFO: ProcessCDR(1,14177253,1,1,2) [2025-01-05 02:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177253', 'tblTempUsageDetail_20' ) start [2025-01-05 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177253', 'tblTempUsageDetail_20' ) end [2025-01-05 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:46:23] Production.INFO: ==26038== Releasing lock... [2025-01-05 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:46:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:47:05 [end_date_ymd] => 2025-01-05 02:47:05 [RateCDR] => 1 ) [2025-01-05 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:47:05' and `end` < '2025-01-05 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:47:19] Production.INFO: count ==362 [2025-01-05 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:47:05 - End Time 2025-01-05 02:47:05 [2025-01-05 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177258', 'tblTempUsageDetail_20' ) start [2025-01-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177258', 'tblTempUsageDetail_20' ) end [2025-01-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177258', 'tblTempVendorCDR_20' ) start [2025-01-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177258', 'tblTempVendorCDR_20' ) end [2025-01-05 02:47:19] Production.INFO: ProcessCDR(1,14177258,1,1,2) [2025-01-05 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177258', 'tblTempUsageDetail_20' ) start [2025-01-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177258', 'tblTempUsageDetail_20' ) end [2025-01-05 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:47:22] Production.INFO: ==26114== Releasing lock... [2025-01-05 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:48:05 [end_date_ymd] => 2025-01-05 02:48:05 [RateCDR] => 1 ) [2025-01-05 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:48:05' and `end` < '2025-01-05 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:48:20] Production.INFO: count ==362 [2025-01-05 02:48:20] Production.ERROR: pbx CDR StartTime 2025-01-04 23:48:05 - End Time 2025-01-05 02:48:05 [2025-01-05 02:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177263', 'tblTempUsageDetail_20' ) start [2025-01-05 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177263', 'tblTempUsageDetail_20' ) end [2025-01-05 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177263', 'tblTempVendorCDR_20' ) start [2025-01-05 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177263', 'tblTempVendorCDR_20' ) end [2025-01-05 02:48:20] Production.INFO: ProcessCDR(1,14177263,1,1,2) [2025-01-05 02:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177263', 'tblTempUsageDetail_20' ) start [2025-01-05 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177263', 'tblTempUsageDetail_20' ) end [2025-01-05 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:48:23] Production.INFO: ==26194== Releasing lock... [2025-01-05 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:49:04 [end_date_ymd] => 2025-01-05 02:49:04 [RateCDR] => 1 ) [2025-01-05 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:49:04' and `end` < '2025-01-05 02:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:49:17] Production.INFO: count ==362 [2025-01-05 02:49:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:49:04 - End Time 2025-01-05 02:49:04 [2025-01-05 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177268', 'tblTempUsageDetail_20' ) start [2025-01-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177268', 'tblTempUsageDetail_20' ) end [2025-01-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177268', 'tblTempVendorCDR_20' ) start [2025-01-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177268', 'tblTempVendorCDR_20' ) end [2025-01-05 02:49:17] Production.INFO: ProcessCDR(1,14177268,1,1,2) [2025-01-05 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177268', 'tblTempUsageDetail_20' ) start [2025-01-05 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177268', 'tblTempUsageDetail_20' ) end [2025-01-05 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:49:20] Production.INFO: ==26270== Releasing lock... [2025-01-05 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:50:05 [end_date_ymd] => 2025-01-05 02:50:05 [RateCDR] => 1 ) [2025-01-05 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:50:05' and `end` < '2025-01-05 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:50:18] Production.INFO: count ==367 [2025-01-05 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:50:05 - End Time 2025-01-05 02:50:05 [2025-01-05 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177274', 'tblTempUsageDetail_20' ) start [2025-01-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177274', 'tblTempUsageDetail_20' ) end [2025-01-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177274', 'tblTempVendorCDR_20' ) start [2025-01-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177274', 'tblTempVendorCDR_20' ) end [2025-01-05 02:50:18] Production.INFO: ProcessCDR(1,14177274,1,1,2) [2025-01-05 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177274', 'tblTempUsageDetail_20' ) start [2025-01-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177274', 'tblTempUsageDetail_20' ) end [2025-01-05 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:50:22] Production.INFO: ==26353== Releasing lock... [2025-01-05 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:51:05 [end_date_ymd] => 2025-01-05 02:51:05 [RateCDR] => 1 ) [2025-01-05 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:51:05' and `end` < '2025-01-05 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:51:18] Production.INFO: count ==365 [2025-01-05 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:51:05 - End Time 2025-01-05 02:51:05 [2025-01-05 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177279', 'tblTempUsageDetail_20' ) start [2025-01-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177279', 'tblTempUsageDetail_20' ) end [2025-01-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177279', 'tblTempVendorCDR_20' ) start [2025-01-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177279', 'tblTempVendorCDR_20' ) end [2025-01-05 02:51:18] Production.INFO: ProcessCDR(1,14177279,1,1,2) [2025-01-05 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177279', 'tblTempUsageDetail_20' ) start [2025-01-05 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177279', 'tblTempUsageDetail_20' ) end [2025-01-05 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:51:22] Production.INFO: ==26432== Releasing lock... [2025-01-05 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:52:05 [end_date_ymd] => 2025-01-05 02:52:05 [RateCDR] => 1 ) [2025-01-05 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:52:05' and `end` < '2025-01-05 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:52:21] Production.INFO: count ==364 [2025-01-05 02:52:21] Production.ERROR: pbx CDR StartTime 2025-01-04 23:52:05 - End Time 2025-01-05 02:52:05 [2025-01-05 02:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177284', 'tblTempUsageDetail_20' ) start [2025-01-05 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177284', 'tblTempUsageDetail_20' ) end [2025-01-05 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177284', 'tblTempVendorCDR_20' ) start [2025-01-05 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177284', 'tblTempVendorCDR_20' ) end [2025-01-05 02:52:21] Production.INFO: ProcessCDR(1,14177284,1,1,2) [2025-01-05 02:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177284', 'tblTempUsageDetail_20' ) start [2025-01-05 02:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177284', 'tblTempUsageDetail_20' ) end [2025-01-05 02:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:52:25] Production.INFO: ==26508== Releasing lock... [2025-01-05 02:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:52:25] Production.INFO: 30 MB #Memory Used# [2025-01-05 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:53:05 [end_date_ymd] => 2025-01-05 02:53:05 [RateCDR] => 1 ) [2025-01-05 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:53:05' and `end` < '2025-01-05 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:53:18] Production.INFO: count ==363 [2025-01-05 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:53:05 - End Time 2025-01-05 02:53:05 [2025-01-05 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177289', 'tblTempUsageDetail_20' ) start [2025-01-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177289', 'tblTempUsageDetail_20' ) end [2025-01-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177289', 'tblTempVendorCDR_20' ) start [2025-01-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177289', 'tblTempVendorCDR_20' ) end [2025-01-05 02:53:18] Production.INFO: ProcessCDR(1,14177289,1,1,2) [2025-01-05 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177289', 'tblTempUsageDetail_20' ) start [2025-01-05 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177289', 'tblTempUsageDetail_20' ) end [2025-01-05 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:53:22] Production.INFO: ==26586== Releasing lock... [2025-01-05 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:54:05 [end_date_ymd] => 2025-01-05 02:54:05 [RateCDR] => 1 ) [2025-01-05 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:54:05' and `end` < '2025-01-05 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:54:20] Production.INFO: count ==362 [2025-01-05 02:54:20] Production.ERROR: pbx CDR StartTime 2025-01-04 23:54:05 - End Time 2025-01-05 02:54:05 [2025-01-05 02:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177294', 'tblTempUsageDetail_20' ) start [2025-01-05 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177294', 'tblTempUsageDetail_20' ) end [2025-01-05 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177294', 'tblTempVendorCDR_20' ) start [2025-01-05 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177294', 'tblTempVendorCDR_20' ) end [2025-01-05 02:54:20] Production.INFO: ProcessCDR(1,14177294,1,1,2) [2025-01-05 02:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177294', 'tblTempUsageDetail_20' ) start [2025-01-05 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177294', 'tblTempUsageDetail_20' ) end [2025-01-05 02:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:54:24] Production.INFO: ==26664== Releasing lock... [2025-01-05 02:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:54:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:55:05 [end_date_ymd] => 2025-01-05 02:55:05 [RateCDR] => 1 ) [2025-01-05 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:55:05' and `end` < '2025-01-05 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:55:18] Production.INFO: count ==362 [2025-01-05 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:55:05 - End Time 2025-01-05 02:55:05 [2025-01-05 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177299', 'tblTempUsageDetail_20' ) start [2025-01-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177299', 'tblTempUsageDetail_20' ) end [2025-01-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177299', 'tblTempVendorCDR_20' ) start [2025-01-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177299', 'tblTempVendorCDR_20' ) end [2025-01-05 02:55:18] Production.INFO: ProcessCDR(1,14177299,1,1,2) [2025-01-05 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177299', 'tblTempUsageDetail_20' ) start [2025-01-05 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177299', 'tblTempUsageDetail_20' ) end [2025-01-05 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:55:21] Production.INFO: ==26742== Releasing lock... [2025-01-05 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:56:05 [end_date_ymd] => 2025-01-05 02:56:05 [RateCDR] => 1 ) [2025-01-05 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:56:05' and `end` < '2025-01-05 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:56:17] Production.INFO: count ==362 [2025-01-05 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-04 23:56:05 - End Time 2025-01-05 02:56:05 [2025-01-05 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177304', 'tblTempUsageDetail_20' ) start [2025-01-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177304', 'tblTempUsageDetail_20' ) end [2025-01-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177304', 'tblTempVendorCDR_20' ) start [2025-01-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177304', 'tblTempVendorCDR_20' ) end [2025-01-05 02:56:17] Production.INFO: ProcessCDR(1,14177304,1,1,2) [2025-01-05 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177304', 'tblTempUsageDetail_20' ) start [2025-01-05 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177304', 'tblTempUsageDetail_20' ) end [2025-01-05 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:56:21] Production.INFO: ==26819== Releasing lock... [2025-01-05 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:57:05 [end_date_ymd] => 2025-01-05 02:57:05 [RateCDR] => 1 ) [2025-01-05 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:57:05' and `end` < '2025-01-05 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:57:18] Production.INFO: count ==362 [2025-01-05 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 23:57:05 - End Time 2025-01-05 02:57:05 [2025-01-05 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177309', 'tblTempUsageDetail_20' ) start [2025-01-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177309', 'tblTempUsageDetail_20' ) end [2025-01-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177309', 'tblTempVendorCDR_20' ) start [2025-01-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177309', 'tblTempVendorCDR_20' ) end [2025-01-05 02:57:18] Production.INFO: ProcessCDR(1,14177309,1,1,2) [2025-01-05 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177309', 'tblTempUsageDetail_20' ) start [2025-01-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177309', 'tblTempUsageDetail_20' ) end [2025-01-05 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:57:21] Production.INFO: ==26895== Releasing lock... [2025-01-05 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:58:05 [end_date_ymd] => 2025-01-05 02:58:05 [RateCDR] => 1 ) [2025-01-05 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:58:05' and `end` < '2025-01-05 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:58:19] Production.INFO: count ==356 [2025-01-05 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:58:05 - End Time 2025-01-05 02:58:05 [2025-01-05 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177314', 'tblTempUsageDetail_20' ) start [2025-01-05 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177314', 'tblTempUsageDetail_20' ) end [2025-01-05 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177314', 'tblTempVendorCDR_20' ) start [2025-01-05 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177314', 'tblTempVendorCDR_20' ) end [2025-01-05 02:58:19] Production.INFO: ProcessCDR(1,14177314,1,1,2) [2025-01-05 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177314', 'tblTempUsageDetail_20' ) start [2025-01-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177314', 'tblTempUsageDetail_20' ) end [2025-01-05 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:58:22] Production.INFO: ==27014== Releasing lock... [2025-01-05 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 23:59:05 [end_date_ymd] => 2025-01-05 02:59:05 [RateCDR] => 1 ) [2025-01-05 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 23:59:05' and `end` < '2025-01-05 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 02:59:19] Production.INFO: count ==354 [2025-01-05 02:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 23:59:05 - End Time 2025-01-05 02:59:05 [2025-01-05 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177319', 'tblTempUsageDetail_20' ) start [2025-01-05 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177319', 'tblTempUsageDetail_20' ) end [2025-01-05 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177319', 'tblTempVendorCDR_20' ) start [2025-01-05 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177319', 'tblTempVendorCDR_20' ) end [2025-01-05 02:59:19] Production.INFO: ProcessCDR(1,14177319,1,1,2) [2025-01-05 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177319', 'tblTempUsageDetail_20' ) start [2025-01-05 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177319', 'tblTempUsageDetail_20' ) end [2025-01-05 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 02:59:22] Production.INFO: ==27094== Releasing lock... [2025-01-05 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 02:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:00:05 [end_date_ymd] => 2025-01-05 03:00:05 [RateCDR] => 1 ) [2025-01-05 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:00:05' and `end` < '2025-01-05 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:00:18] Production.INFO: count ==360 [2025-01-05 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:00:05 - End Time 2025-01-05 03:00:05 [2025-01-05 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177323', 'tblTempUsageDetail_20' ) start [2025-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177323', 'tblTempUsageDetail_20' ) end [2025-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177323', 'tblTempVendorCDR_20' ) start [2025-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177323', 'tblTempVendorCDR_20' ) end [2025-01-05 03:00:18] Production.INFO: ProcessCDR(1,14177323,1,1,2) [2025-01-05 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177323', 'tblTempUsageDetail_20' ) start [2025-01-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177323', 'tblTempUsageDetail_20' ) end [2025-01-05 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:00:22] Production.INFO: ==27172== Releasing lock... [2025-01-05 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:01:05 [end_date_ymd] => 2025-01-05 03:01:05 [RateCDR] => 1 ) [2025-01-05 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:01:05' and `end` < '2025-01-05 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:01:20] Production.INFO: count ==378 [2025-01-05 03:01:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:01:05 - End Time 2025-01-05 03:01:05 [2025-01-05 03:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177330', 'tblTempUsageDetail_20' ) start [2025-01-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177330', 'tblTempUsageDetail_20' ) end [2025-01-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177330', 'tblTempVendorCDR_20' ) start [2025-01-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177330', 'tblTempVendorCDR_20' ) end [2025-01-05 03:01:20] Production.INFO: ProcessCDR(1,14177330,1,1,2) [2025-01-05 03:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177330', 'tblTempUsageDetail_20' ) start [2025-01-05 03:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177330', 'tblTempUsageDetail_20' ) end [2025-01-05 03:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:01:25] Production.INFO: ==27265== Releasing lock... [2025-01-05 03:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:01:25] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:02:05 [end_date_ymd] => 2025-01-05 03:02:05 [RateCDR] => 1 ) [2025-01-05 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:02:05' and `end` < '2025-01-05 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:02:17] Production.INFO: count ==377 [2025-01-05 03:02:17] Production.ERROR: pbx CDR StartTime 2025-01-05 00:02:05 - End Time 2025-01-05 03:02:05 [2025-01-05 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177335', 'tblTempUsageDetail_20' ) start [2025-01-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177335', 'tblTempUsageDetail_20' ) end [2025-01-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177335', 'tblTempVendorCDR_20' ) start [2025-01-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177335', 'tblTempVendorCDR_20' ) end [2025-01-05 03:02:17] Production.INFO: ProcessCDR(1,14177335,1,1,2) [2025-01-05 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177335', 'tblTempUsageDetail_20' ) start [2025-01-05 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177335', 'tblTempUsageDetail_20' ) end [2025-01-05 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:02:20] Production.INFO: ==27417== Releasing lock... [2025-01-05 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:02:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:03:05 [end_date_ymd] => 2025-01-05 03:03:05 [RateCDR] => 1 ) [2025-01-05 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:03:05' and `end` < '2025-01-05 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:03:18] Production.INFO: count ==376 [2025-01-05 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:03:05 - End Time 2025-01-05 03:03:05 [2025-01-05 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177340', 'tblTempUsageDetail_20' ) start [2025-01-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177340', 'tblTempUsageDetail_20' ) end [2025-01-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177340', 'tblTempVendorCDR_20' ) start [2025-01-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177340', 'tblTempVendorCDR_20' ) end [2025-01-05 03:03:18] Production.INFO: ProcessCDR(1,14177340,1,1,2) [2025-01-05 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177340', 'tblTempUsageDetail_20' ) start [2025-01-05 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177340', 'tblTempUsageDetail_20' ) end [2025-01-05 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:03:22] Production.INFO: ==27495== Releasing lock... [2025-01-05 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:04:05 [end_date_ymd] => 2025-01-05 03:04:05 [RateCDR] => 1 ) [2025-01-05 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:04:05' and `end` < '2025-01-05 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:04:20] Production.INFO: count ==377 [2025-01-05 03:04:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:04:05 - End Time 2025-01-05 03:04:05 [2025-01-05 03:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177345', 'tblTempUsageDetail_20' ) start [2025-01-05 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177345', 'tblTempUsageDetail_20' ) end [2025-01-05 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177345', 'tblTempVendorCDR_20' ) start [2025-01-05 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177345', 'tblTempVendorCDR_20' ) end [2025-01-05 03:04:20] Production.INFO: ProcessCDR(1,14177345,1,1,2) [2025-01-05 03:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177345', 'tblTempUsageDetail_20' ) start [2025-01-05 03:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177345', 'tblTempUsageDetail_20' ) end [2025-01-05 03:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:04:25] Production.INFO: ==27572== Releasing lock... [2025-01-05 03:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:04:25] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:05:05 [end_date_ymd] => 2025-01-05 03:05:05 [RateCDR] => 1 ) [2025-01-05 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:05:05' and `end` < '2025-01-05 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:05:18] Production.INFO: count ==375 [2025-01-05 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:05:05 - End Time 2025-01-05 03:05:05 [2025-01-05 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177350', 'tblTempUsageDetail_20' ) start [2025-01-05 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177350', 'tblTempUsageDetail_20' ) end [2025-01-05 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177350', 'tblTempVendorCDR_20' ) start [2025-01-05 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177350', 'tblTempVendorCDR_20' ) end [2025-01-05 03:05:18] Production.INFO: ProcessCDR(1,14177350,1,1,2) [2025-01-05 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177350', 'tblTempUsageDetail_20' ) start [2025-01-05 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177350', 'tblTempUsageDetail_20' ) end [2025-01-05 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:05:21] Production.INFO: ==27653== Releasing lock... [2025-01-05 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:06:05 [end_date_ymd] => 2025-01-05 03:06:05 [RateCDR] => 1 ) [2025-01-05 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:06:05' and `end` < '2025-01-05 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:06:18] Production.INFO: count ==374 [2025-01-05 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:06:05 - End Time 2025-01-05 03:06:05 [2025-01-05 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177355', 'tblTempUsageDetail_20' ) start [2025-01-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177355', 'tblTempUsageDetail_20' ) end [2025-01-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177355', 'tblTempVendorCDR_20' ) start [2025-01-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177355', 'tblTempVendorCDR_20' ) end [2025-01-05 03:06:18] Production.INFO: ProcessCDR(1,14177355,1,1,2) [2025-01-05 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177355', 'tblTempUsageDetail_20' ) start [2025-01-05 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177355', 'tblTempUsageDetail_20' ) end [2025-01-05 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:06:21] Production.INFO: ==27806== Releasing lock... [2025-01-05 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:06:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:07:04 [end_date_ymd] => 2025-01-05 03:07:04 [RateCDR] => 1 ) [2025-01-05 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:07:04' and `end` < '2025-01-05 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:07:18] Production.INFO: count ==374 [2025-01-05 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:07:04 - End Time 2025-01-05 03:07:04 [2025-01-05 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177360', 'tblTempUsageDetail_20' ) start [2025-01-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177360', 'tblTempUsageDetail_20' ) end [2025-01-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177360', 'tblTempVendorCDR_20' ) start [2025-01-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177360', 'tblTempVendorCDR_20' ) end [2025-01-05 03:07:18] Production.INFO: ProcessCDR(1,14177360,1,1,2) [2025-01-05 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177360', 'tblTempUsageDetail_20' ) start [2025-01-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177360', 'tblTempUsageDetail_20' ) end [2025-01-05 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:07:21] Production.INFO: ==27881== Releasing lock... [2025-01-05 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:07:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:08:05 [end_date_ymd] => 2025-01-05 03:08:05 [RateCDR] => 1 ) [2025-01-05 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:08:05' and `end` < '2025-01-05 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:08:19] Production.INFO: count ==374 [2025-01-05 03:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:08:05 - End Time 2025-01-05 03:08:05 [2025-01-05 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177365', 'tblTempUsageDetail_20' ) start [2025-01-05 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177365', 'tblTempUsageDetail_20' ) end [2025-01-05 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177365', 'tblTempVendorCDR_20' ) start [2025-01-05 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177365', 'tblTempVendorCDR_20' ) end [2025-01-05 03:08:19] Production.INFO: ProcessCDR(1,14177365,1,1,2) [2025-01-05 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177365', 'tblTempUsageDetail_20' ) start [2025-01-05 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177365', 'tblTempUsageDetail_20' ) end [2025-01-05 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:08:22] Production.INFO: ==27959== Releasing lock... [2025-01-05 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:08:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:09:05 [end_date_ymd] => 2025-01-05 03:09:05 [RateCDR] => 1 ) [2025-01-05 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:09:05' and `end` < '2025-01-05 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:09:19] Production.INFO: count ==374 [2025-01-05 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:09:05 - End Time 2025-01-05 03:09:05 [2025-01-05 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177370', 'tblTempUsageDetail_20' ) start [2025-01-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177370', 'tblTempUsageDetail_20' ) end [2025-01-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177370', 'tblTempVendorCDR_20' ) start [2025-01-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177370', 'tblTempVendorCDR_20' ) end [2025-01-05 03:09:19] Production.INFO: ProcessCDR(1,14177370,1,1,2) [2025-01-05 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177370', 'tblTempUsageDetail_20' ) start [2025-01-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177370', 'tblTempUsageDetail_20' ) end [2025-01-05 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:09:22] Production.INFO: ==28112== Releasing lock... [2025-01-05 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:09:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:10:05 [end_date_ymd] => 2025-01-05 03:10:05 [RateCDR] => 1 ) [2025-01-05 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:10:05' and `end` < '2025-01-05 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:10:18] Production.INFO: count ==376 [2025-01-05 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:10:05 - End Time 2025-01-05 03:10:05 [2025-01-05 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177376', 'tblTempUsageDetail_20' ) start [2025-01-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177376', 'tblTempUsageDetail_20' ) end [2025-01-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177376', 'tblTempVendorCDR_20' ) start [2025-01-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177376', 'tblTempVendorCDR_20' ) end [2025-01-05 03:10:18] Production.INFO: ProcessCDR(1,14177376,1,1,2) [2025-01-05 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177376', 'tblTempUsageDetail_20' ) start [2025-01-05 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177376', 'tblTempUsageDetail_20' ) end [2025-01-05 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:10:21] Production.INFO: ==28188== Releasing lock... [2025-01-05 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:10:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:11:05 [end_date_ymd] => 2025-01-05 03:11:05 [RateCDR] => 1 ) [2025-01-05 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:11:05' and `end` < '2025-01-05 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:11:18] Production.INFO: count ==370 [2025-01-05 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:11:05 - End Time 2025-01-05 03:11:05 [2025-01-05 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177381', 'tblTempUsageDetail_20' ) start [2025-01-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177381', 'tblTempUsageDetail_20' ) end [2025-01-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177381', 'tblTempVendorCDR_20' ) start [2025-01-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177381', 'tblTempVendorCDR_20' ) end [2025-01-05 03:11:18] Production.INFO: ProcessCDR(1,14177381,1,1,2) [2025-01-05 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177381', 'tblTempUsageDetail_20' ) start [2025-01-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177381', 'tblTempUsageDetail_20' ) end [2025-01-05 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:11:22] Production.INFO: ==28265== Releasing lock... [2025-01-05 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:12:04 [end_date_ymd] => 2025-01-05 03:12:04 [RateCDR] => 1 ) [2025-01-05 03:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:12:04' and `end` < '2025-01-05 03:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:12:18] Production.INFO: count ==370 [2025-01-05 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:12:04 - End Time 2025-01-05 03:12:04 [2025-01-05 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177386', 'tblTempUsageDetail_20' ) start [2025-01-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177386', 'tblTempUsageDetail_20' ) end [2025-01-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177386', 'tblTempVendorCDR_20' ) start [2025-01-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177386', 'tblTempVendorCDR_20' ) end [2025-01-05 03:12:18] Production.INFO: ProcessCDR(1,14177386,1,1,2) [2025-01-05 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177386', 'tblTempUsageDetail_20' ) start [2025-01-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177386', 'tblTempUsageDetail_20' ) end [2025-01-05 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:12:21] Production.INFO: ==28340== Releasing lock... [2025-01-05 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:13:05 [end_date_ymd] => 2025-01-05 03:13:05 [RateCDR] => 1 ) [2025-01-05 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:13:05' and `end` < '2025-01-05 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:13:18] Production.INFO: count ==369 [2025-01-05 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:13:05 - End Time 2025-01-05 03:13:05 [2025-01-05 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177391', 'tblTempUsageDetail_20' ) start [2025-01-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177391', 'tblTempUsageDetail_20' ) end [2025-01-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177391', 'tblTempVendorCDR_20' ) start [2025-01-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177391', 'tblTempVendorCDR_20' ) end [2025-01-05 03:13:19] Production.INFO: ProcessCDR(1,14177391,1,1,2) [2025-01-05 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177391', 'tblTempUsageDetail_20' ) start [2025-01-05 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177391', 'tblTempUsageDetail_20' ) end [2025-01-05 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:13:22] Production.INFO: ==28494== Releasing lock... [2025-01-05 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:14:04 [end_date_ymd] => 2025-01-05 03:14:04 [RateCDR] => 1 ) [2025-01-05 03:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:14:04' and `end` < '2025-01-05 03:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:14:18] Production.INFO: count ==366 [2025-01-05 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:14:04 - End Time 2025-01-05 03:14:04 [2025-01-05 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177396', 'tblTempUsageDetail_20' ) start [2025-01-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177396', 'tblTempUsageDetail_20' ) end [2025-01-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177396', 'tblTempVendorCDR_20' ) start [2025-01-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177396', 'tblTempVendorCDR_20' ) end [2025-01-05 03:14:18] Production.INFO: ProcessCDR(1,14177396,1,1,2) [2025-01-05 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177396', 'tblTempUsageDetail_20' ) start [2025-01-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177396', 'tblTempUsageDetail_20' ) end [2025-01-05 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:14:21] Production.INFO: ==28609== Releasing lock... [2025-01-05 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:15:04 [end_date_ymd] => 2025-01-05 03:15:04 [RateCDR] => 1 ) [2025-01-05 03:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:15:04' and `end` < '2025-01-05 03:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:15:18] Production.INFO: count ==366 [2025-01-05 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:15:04 - End Time 2025-01-05 03:15:04 [2025-01-05 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177401', 'tblTempUsageDetail_20' ) start [2025-01-05 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177401', 'tblTempUsageDetail_20' ) end [2025-01-05 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177401', 'tblTempVendorCDR_20' ) start [2025-01-05 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177401', 'tblTempVendorCDR_20' ) end [2025-01-05 03:15:18] Production.INFO: ProcessCDR(1,14177401,1,1,2) [2025-01-05 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177401', 'tblTempUsageDetail_20' ) start [2025-01-05 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177401', 'tblTempUsageDetail_20' ) end [2025-01-05 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:15:21] Production.INFO: ==28682== Releasing lock... [2025-01-05 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:16:05 [end_date_ymd] => 2025-01-05 03:16:05 [RateCDR] => 1 ) [2025-01-05 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:16:05' and `end` < '2025-01-05 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:16:18] Production.INFO: count ==365 [2025-01-05 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:16:05 - End Time 2025-01-05 03:16:05 [2025-01-05 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177406', 'tblTempUsageDetail_20' ) start [2025-01-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177406', 'tblTempUsageDetail_20' ) end [2025-01-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177406', 'tblTempVendorCDR_20' ) start [2025-01-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177406', 'tblTempVendorCDR_20' ) end [2025-01-05 03:16:18] Production.INFO: ProcessCDR(1,14177406,1,1,2) [2025-01-05 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177406', 'tblTempUsageDetail_20' ) start [2025-01-05 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177406', 'tblTempUsageDetail_20' ) end [2025-01-05 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:16:21] Production.INFO: ==28758== Releasing lock... [2025-01-05 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:17:05 [end_date_ymd] => 2025-01-05 03:17:05 [RateCDR] => 1 ) [2025-01-05 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:17:05' and `end` < '2025-01-05 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:17:19] Production.INFO: count ==365 [2025-01-05 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:17:05 - End Time 2025-01-05 03:17:05 [2025-01-05 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177411', 'tblTempUsageDetail_20' ) start [2025-01-05 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177411', 'tblTempUsageDetail_20' ) end [2025-01-05 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177411', 'tblTempVendorCDR_20' ) start [2025-01-05 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177411', 'tblTempVendorCDR_20' ) end [2025-01-05 03:17:19] Production.INFO: ProcessCDR(1,14177411,1,1,2) [2025-01-05 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177411', 'tblTempUsageDetail_20' ) start [2025-01-05 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177411', 'tblTempUsageDetail_20' ) end [2025-01-05 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:17:22] Production.INFO: ==28920== Releasing lock... [2025-01-05 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:18:05 [end_date_ymd] => 2025-01-05 03:18:05 [RateCDR] => 1 ) [2025-01-05 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:18:05' and `end` < '2025-01-05 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:18:18] Production.INFO: count ==365 [2025-01-05 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:18:05 - End Time 2025-01-05 03:18:05 [2025-01-05 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177416', 'tblTempUsageDetail_20' ) start [2025-01-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177416', 'tblTempUsageDetail_20' ) end [2025-01-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177416', 'tblTempVendorCDR_20' ) start [2025-01-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177416', 'tblTempVendorCDR_20' ) end [2025-01-05 03:18:18] Production.INFO: ProcessCDR(1,14177416,1,1,2) [2025-01-05 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177416', 'tblTempUsageDetail_20' ) start [2025-01-05 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177416', 'tblTempUsageDetail_20' ) end [2025-01-05 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:18:21] Production.INFO: ==29036== Releasing lock... [2025-01-05 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:19:05 [end_date_ymd] => 2025-01-05 03:19:05 [RateCDR] => 1 ) [2025-01-05 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:19:05' and `end` < '2025-01-05 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:19:24] Production.INFO: count ==365 [2025-01-05 03:19:24] Production.ERROR: pbx CDR StartTime 2025-01-05 00:19:05 - End Time 2025-01-05 03:19:05 [2025-01-05 03:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177421', 'tblTempUsageDetail_20' ) start [2025-01-05 03:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177421', 'tblTempUsageDetail_20' ) end [2025-01-05 03:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177421', 'tblTempVendorCDR_20' ) start [2025-01-05 03:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177421', 'tblTempVendorCDR_20' ) end [2025-01-05 03:19:24] Production.INFO: ProcessCDR(1,14177421,1,1,2) [2025-01-05 03:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177421', 'tblTempUsageDetail_20' ) start [2025-01-05 03:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177421', 'tblTempUsageDetail_20' ) end [2025-01-05 03:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:19:27] Production.INFO: ==29111== Releasing lock... [2025-01-05 03:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:19:27] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:20:06 [end_date_ymd] => 2025-01-05 03:20:06 [RateCDR] => 1 ) [2025-01-05 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:20:06' and `end` < '2025-01-05 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:20:19] Production.INFO: count ==357 [2025-01-05 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:20:06 - End Time 2025-01-05 03:20:06 [2025-01-05 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177427', 'tblTempUsageDetail_20' ) start [2025-01-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177427', 'tblTempUsageDetail_20' ) end [2025-01-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177427', 'tblTempVendorCDR_20' ) start [2025-01-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177427', 'tblTempVendorCDR_20' ) end [2025-01-05 03:20:19] Production.INFO: ProcessCDR(1,14177427,1,1,2) [2025-01-05 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177427', 'tblTempUsageDetail_20' ) start [2025-01-05 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177427', 'tblTempUsageDetail_20' ) end [2025-01-05 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:20:22] Production.INFO: ==29196== Releasing lock... [2025-01-05 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:21:05 [end_date_ymd] => 2025-01-05 03:21:05 [RateCDR] => 1 ) [2025-01-05 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:21:05' and `end` < '2025-01-05 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:21:18] Production.INFO: count ==345 [2025-01-05 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:21:05 - End Time 2025-01-05 03:21:05 [2025-01-05 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177432', 'tblTempUsageDetail_20' ) start [2025-01-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177432', 'tblTempUsageDetail_20' ) end [2025-01-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177432', 'tblTempVendorCDR_20' ) start [2025-01-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177432', 'tblTempVendorCDR_20' ) end [2025-01-05 03:21:18] Production.INFO: ProcessCDR(1,14177432,1,1,2) [2025-01-05 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177432', 'tblTempUsageDetail_20' ) start [2025-01-05 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177432', 'tblTempUsageDetail_20' ) end [2025-01-05 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:21:22] Production.INFO: ==29273== Releasing lock... [2025-01-05 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:21:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:22:04 [end_date_ymd] => 2025-01-05 03:22:04 [RateCDR] => 1 ) [2025-01-05 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:22:04' and `end` < '2025-01-05 03:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:22:18] Production.INFO: count ==345 [2025-01-05 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:22:04 - End Time 2025-01-05 03:22:04 [2025-01-05 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177437', 'tblTempUsageDetail_20' ) start [2025-01-05 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177437', 'tblTempUsageDetail_20' ) end [2025-01-05 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177437', 'tblTempVendorCDR_20' ) start [2025-01-05 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177437', 'tblTempVendorCDR_20' ) end [2025-01-05 03:22:18] Production.INFO: ProcessCDR(1,14177437,1,1,2) [2025-01-05 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177437', 'tblTempUsageDetail_20' ) start [2025-01-05 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177437', 'tblTempUsageDetail_20' ) end [2025-01-05 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:22:21] Production.INFO: ==29348== Releasing lock... [2025-01-05 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:23:05 [end_date_ymd] => 2025-01-05 03:23:05 [RateCDR] => 1 ) [2025-01-05 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:23:05' and `end` < '2025-01-05 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:23:18] Production.INFO: count ==345 [2025-01-05 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:23:05 - End Time 2025-01-05 03:23:05 [2025-01-05 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177442', 'tblTempUsageDetail_20' ) start [2025-01-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177442', 'tblTempUsageDetail_20' ) end [2025-01-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177442', 'tblTempVendorCDR_20' ) start [2025-01-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177442', 'tblTempVendorCDR_20' ) end [2025-01-05 03:23:18] Production.INFO: ProcessCDR(1,14177442,1,1,2) [2025-01-05 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177442', 'tblTempUsageDetail_20' ) start [2025-01-05 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177442', 'tblTempUsageDetail_20' ) end [2025-01-05 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:23:21] Production.INFO: ==29428== Releasing lock... [2025-01-05 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:23:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:24:05 [end_date_ymd] => 2025-01-05 03:24:05 [RateCDR] => 1 ) [2025-01-05 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:24:05' and `end` < '2025-01-05 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:24:18] Production.INFO: count ==345 [2025-01-05 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:24:05 - End Time 2025-01-05 03:24:05 [2025-01-05 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177447', 'tblTempUsageDetail_20' ) start [2025-01-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177447', 'tblTempUsageDetail_20' ) end [2025-01-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177447', 'tblTempVendorCDR_20' ) start [2025-01-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177447', 'tblTempVendorCDR_20' ) end [2025-01-05 03:24:18] Production.INFO: ProcessCDR(1,14177447,1,1,2) [2025-01-05 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177447', 'tblTempUsageDetail_20' ) start [2025-01-05 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177447', 'tblTempUsageDetail_20' ) end [2025-01-05 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:24:21] Production.INFO: ==29509== Releasing lock... [2025-01-05 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:25:05 [end_date_ymd] => 2025-01-05 03:25:05 [RateCDR] => 1 ) [2025-01-05 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:25:05' and `end` < '2025-01-05 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:25:18] Production.INFO: count ==345 [2025-01-05 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:25:05 - End Time 2025-01-05 03:25:05 [2025-01-05 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177452', 'tblTempUsageDetail_20' ) start [2025-01-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177452', 'tblTempUsageDetail_20' ) end [2025-01-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177452', 'tblTempVendorCDR_20' ) start [2025-01-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177452', 'tblTempVendorCDR_20' ) end [2025-01-05 03:25:18] Production.INFO: ProcessCDR(1,14177452,1,1,2) [2025-01-05 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177452', 'tblTempUsageDetail_20' ) start [2025-01-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177452', 'tblTempUsageDetail_20' ) end [2025-01-05 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:25:21] Production.INFO: ==29590== Releasing lock... [2025-01-05 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:26:05 [end_date_ymd] => 2025-01-05 03:26:05 [RateCDR] => 1 ) [2025-01-05 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:26:05' and `end` < '2025-01-05 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:26:18] Production.INFO: count ==344 [2025-01-05 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:26:05 - End Time 2025-01-05 03:26:05 [2025-01-05 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177457', 'tblTempUsageDetail_20' ) start [2025-01-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177457', 'tblTempUsageDetail_20' ) end [2025-01-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177457', 'tblTempVendorCDR_20' ) start [2025-01-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177457', 'tblTempVendorCDR_20' ) end [2025-01-05 03:26:18] Production.INFO: ProcessCDR(1,14177457,1,1,2) [2025-01-05 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177457', 'tblTempUsageDetail_20' ) start [2025-01-05 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177457', 'tblTempUsageDetail_20' ) end [2025-01-05 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:26:23] Production.INFO: ==29669== Releasing lock... [2025-01-05 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:26:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:27:05 [end_date_ymd] => 2025-01-05 03:27:05 [RateCDR] => 1 ) [2025-01-05 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:27:05' and `end` < '2025-01-05 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:27:19] Production.INFO: count ==343 [2025-01-05 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:27:05 - End Time 2025-01-05 03:27:05 [2025-01-05 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177462', 'tblTempUsageDetail_20' ) start [2025-01-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177462', 'tblTempUsageDetail_20' ) end [2025-01-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177462', 'tblTempVendorCDR_20' ) start [2025-01-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177462', 'tblTempVendorCDR_20' ) end [2025-01-05 03:27:19] Production.INFO: ProcessCDR(1,14177462,1,1,2) [2025-01-05 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177462', 'tblTempUsageDetail_20' ) start [2025-01-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177462', 'tblTempUsageDetail_20' ) end [2025-01-05 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:27:22] Production.INFO: ==29747== Releasing lock... [2025-01-05 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:27:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:28:05 [end_date_ymd] => 2025-01-05 03:28:05 [RateCDR] => 1 ) [2025-01-05 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:28:05' and `end` < '2025-01-05 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:28:20] Production.INFO: count ==344 [2025-01-05 03:28:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:28:05 - End Time 2025-01-05 03:28:05 [2025-01-05 03:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177467', 'tblTempUsageDetail_20' ) start [2025-01-05 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177467', 'tblTempUsageDetail_20' ) end [2025-01-05 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177467', 'tblTempVendorCDR_20' ) start [2025-01-05 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177467', 'tblTempVendorCDR_20' ) end [2025-01-05 03:28:20] Production.INFO: ProcessCDR(1,14177467,1,1,2) [2025-01-05 03:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177467', 'tblTempUsageDetail_20' ) start [2025-01-05 03:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177467', 'tblTempUsageDetail_20' ) end [2025-01-05 03:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:28:24] Production.INFO: ==29823== Releasing lock... [2025-01-05 03:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:28:24] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:29:05 [end_date_ymd] => 2025-01-05 03:29:05 [RateCDR] => 1 ) [2025-01-05 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:29:05' and `end` < '2025-01-05 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:29:19] Production.INFO: count ==341 [2025-01-05 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:29:05 - End Time 2025-01-05 03:29:05 [2025-01-05 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177472', 'tblTempUsageDetail_20' ) start [2025-01-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177472', 'tblTempUsageDetail_20' ) end [2025-01-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177472', 'tblTempVendorCDR_20' ) start [2025-01-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177472', 'tblTempVendorCDR_20' ) end [2025-01-05 03:29:19] Production.INFO: ProcessCDR(1,14177472,1,1,2) [2025-01-05 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177472', 'tblTempUsageDetail_20' ) start [2025-01-05 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177472', 'tblTempUsageDetail_20' ) end [2025-01-05 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:29:23] Production.INFO: ==29902== Releasing lock... [2025-01-05 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:29:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:30:06 [end_date_ymd] => 2025-01-05 03:30:06 [RateCDR] => 1 ) [2025-01-05 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:30:06' and `end` < '2025-01-05 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:30:18] Production.INFO: count ==341 [2025-01-05 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:30:06 - End Time 2025-01-05 03:30:06 [2025-01-05 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177478', 'tblTempUsageDetail_20' ) start [2025-01-05 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177478', 'tblTempUsageDetail_20' ) end [2025-01-05 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177478', 'tblTempVendorCDR_20' ) start [2025-01-05 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177478', 'tblTempVendorCDR_20' ) end [2025-01-05 03:30:18] Production.INFO: ProcessCDR(1,14177478,1,1,2) [2025-01-05 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177478', 'tblTempUsageDetail_20' ) start [2025-01-05 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177478', 'tblTempUsageDetail_20' ) end [2025-01-05 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:30:22] Production.INFO: ==29979== Releasing lock... [2025-01-05 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:31:05 [end_date_ymd] => 2025-01-05 03:31:05 [RateCDR] => 1 ) [2025-01-05 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:31:05' and `end` < '2025-01-05 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:31:18] Production.INFO: count ==328 [2025-01-05 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:31:05 - End Time 2025-01-05 03:31:05 [2025-01-05 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177483', 'tblTempUsageDetail_20' ) start [2025-01-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177483', 'tblTempUsageDetail_20' ) end [2025-01-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177483', 'tblTempVendorCDR_20' ) start [2025-01-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177483', 'tblTempVendorCDR_20' ) end [2025-01-05 03:31:18] Production.INFO: ProcessCDR(1,14177483,1,1,2) [2025-01-05 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177483', 'tblTempUsageDetail_20' ) start [2025-01-05 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177483', 'tblTempUsageDetail_20' ) end [2025-01-05 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:31:22] Production.INFO: ==30099== Releasing lock... [2025-01-05 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:31:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:32:04 [end_date_ymd] => 2025-01-05 03:32:04 [RateCDR] => 1 ) [2025-01-05 03:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:32:04' and `end` < '2025-01-05 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:32:17] Production.INFO: count ==328 [2025-01-05 03:32:17] Production.ERROR: pbx CDR StartTime 2025-01-05 00:32:04 - End Time 2025-01-05 03:32:04 [2025-01-05 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177484', 'tblTempUsageDetail_20' ) start [2025-01-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177484', 'tblTempUsageDetail_20' ) end [2025-01-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177484', 'tblTempVendorCDR_20' ) start [2025-01-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177484', 'tblTempVendorCDR_20' ) end [2025-01-05 03:32:17] Production.INFO: ProcessCDR(1,14177484,1,1,2) [2025-01-05 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177484', 'tblTempUsageDetail_20' ) start [2025-01-05 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177484', 'tblTempUsageDetail_20' ) end [2025-01-05 03:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:32:20] Production.INFO: ==30175== Releasing lock... [2025-01-05 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:32:20] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:33:04 [end_date_ymd] => 2025-01-05 03:33:04 [RateCDR] => 1 ) [2025-01-05 03:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:33:04' and `end` < '2025-01-05 03:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:33:18] Production.INFO: count ==328 [2025-01-05 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:33:04 - End Time 2025-01-05 03:33:04 [2025-01-05 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177493', 'tblTempUsageDetail_20' ) start [2025-01-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177493', 'tblTempUsageDetail_20' ) end [2025-01-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177493', 'tblTempVendorCDR_20' ) start [2025-01-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177493', 'tblTempVendorCDR_20' ) end [2025-01-05 03:33:18] Production.INFO: ProcessCDR(1,14177493,1,1,2) [2025-01-05 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177493', 'tblTempUsageDetail_20' ) start [2025-01-05 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177493', 'tblTempUsageDetail_20' ) end [2025-01-05 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:33:21] Production.INFO: ==30254== Releasing lock... [2025-01-05 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:33:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:34:05 [end_date_ymd] => 2025-01-05 03:34:05 [RateCDR] => 1 ) [2025-01-05 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:34:05' and `end` < '2025-01-05 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:34:18] Production.INFO: count ==328 [2025-01-05 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:34:05 - End Time 2025-01-05 03:34:05 [2025-01-05 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177498', 'tblTempUsageDetail_20' ) start [2025-01-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177498', 'tblTempUsageDetail_20' ) end [2025-01-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177498', 'tblTempVendorCDR_20' ) start [2025-01-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177498', 'tblTempVendorCDR_20' ) end [2025-01-05 03:34:18] Production.INFO: ProcessCDR(1,14177498,1,1,2) [2025-01-05 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177498', 'tblTempUsageDetail_20' ) start [2025-01-05 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177498', 'tblTempUsageDetail_20' ) end [2025-01-05 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:34:21] Production.INFO: ==30329== Releasing lock... [2025-01-05 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:34:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:35:05 [end_date_ymd] => 2025-01-05 03:35:05 [RateCDR] => 1 ) [2025-01-05 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:35:05' and `end` < '2025-01-05 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:35:18] Production.INFO: count ==328 [2025-01-05 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:35:05 - End Time 2025-01-05 03:35:05 [2025-01-05 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177503', 'tblTempUsageDetail_20' ) start [2025-01-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177503', 'tblTempUsageDetail_20' ) end [2025-01-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177503', 'tblTempVendorCDR_20' ) start [2025-01-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177503', 'tblTempVendorCDR_20' ) end [2025-01-05 03:35:18] Production.INFO: ProcessCDR(1,14177503,1,1,2) [2025-01-05 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177503', 'tblTempUsageDetail_20' ) start [2025-01-05 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177503', 'tblTempUsageDetail_20' ) end [2025-01-05 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:35:21] Production.INFO: ==30408== Releasing lock... [2025-01-05 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:35:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:36:05 [end_date_ymd] => 2025-01-05 03:36:05 [RateCDR] => 1 ) [2025-01-05 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:36:05' and `end` < '2025-01-05 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:36:18] Production.INFO: count ==328 [2025-01-05 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:36:05 - End Time 2025-01-05 03:36:05 [2025-01-05 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177508', 'tblTempUsageDetail_20' ) start [2025-01-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177508', 'tblTempUsageDetail_20' ) end [2025-01-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177508', 'tblTempVendorCDR_20' ) start [2025-01-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177508', 'tblTempVendorCDR_20' ) end [2025-01-05 03:36:18] Production.INFO: ProcessCDR(1,14177508,1,1,2) [2025-01-05 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177508', 'tblTempUsageDetail_20' ) start [2025-01-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177508', 'tblTempUsageDetail_20' ) end [2025-01-05 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:36:21] Production.INFO: ==30485== Releasing lock... [2025-01-05 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:36:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:37:05 [end_date_ymd] => 2025-01-05 03:37:05 [RateCDR] => 1 ) [2025-01-05 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:37:05' and `end` < '2025-01-05 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:37:20] Production.INFO: count ==329 [2025-01-05 03:37:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:37:05 - End Time 2025-01-05 03:37:05 [2025-01-05 03:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177513', 'tblTempUsageDetail_20' ) start [2025-01-05 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177513', 'tblTempUsageDetail_20' ) end [2025-01-05 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177513', 'tblTempVendorCDR_20' ) start [2025-01-05 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177513', 'tblTempVendorCDR_20' ) end [2025-01-05 03:37:20] Production.INFO: ProcessCDR(1,14177513,1,1,2) [2025-01-05 03:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177513', 'tblTempUsageDetail_20' ) start [2025-01-05 03:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177513', 'tblTempUsageDetail_20' ) end [2025-01-05 03:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:37:25] Production.INFO: ==30563== Releasing lock... [2025-01-05 03:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:37:25] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:38:05 [end_date_ymd] => 2025-01-05 03:38:05 [RateCDR] => 1 ) [2025-01-05 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:38:05' and `end` < '2025-01-05 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:38:19] Production.INFO: count ==329 [2025-01-05 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:38:05 - End Time 2025-01-05 03:38:05 [2025-01-05 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177518', 'tblTempUsageDetail_20' ) start [2025-01-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177518', 'tblTempUsageDetail_20' ) end [2025-01-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177518', 'tblTempVendorCDR_20' ) start [2025-01-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177518', 'tblTempVendorCDR_20' ) end [2025-01-05 03:38:19] Production.INFO: ProcessCDR(1,14177518,1,1,2) [2025-01-05 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177518', 'tblTempUsageDetail_20' ) start [2025-01-05 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177518', 'tblTempUsageDetail_20' ) end [2025-01-05 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:38:22] Production.INFO: ==30640== Releasing lock... [2025-01-05 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:39:05 [end_date_ymd] => 2025-01-05 03:39:05 [RateCDR] => 1 ) [2025-01-05 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:39:05' and `end` < '2025-01-05 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:39:18] Production.INFO: count ==329 [2025-01-05 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:39:05 - End Time 2025-01-05 03:39:05 [2025-01-05 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177523', 'tblTempUsageDetail_20' ) start [2025-01-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177523', 'tblTempUsageDetail_20' ) end [2025-01-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177523', 'tblTempVendorCDR_20' ) start [2025-01-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177523', 'tblTempVendorCDR_20' ) end [2025-01-05 03:39:18] Production.INFO: ProcessCDR(1,14177523,1,1,2) [2025-01-05 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177523', 'tblTempUsageDetail_20' ) start [2025-01-05 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177523', 'tblTempUsageDetail_20' ) end [2025-01-05 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:39:21] Production.INFO: ==30718== Releasing lock... [2025-01-05 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:39:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:40:06 [end_date_ymd] => 2025-01-05 03:40:06 [RateCDR] => 1 ) [2025-01-05 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:40:06' and `end` < '2025-01-05 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:40:18] Production.INFO: count ==321 [2025-01-05 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:40:06 - End Time 2025-01-05 03:40:06 [2025-01-05 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177528', 'tblTempUsageDetail_20' ) start [2025-01-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177528', 'tblTempUsageDetail_20' ) end [2025-01-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177528', 'tblTempVendorCDR_20' ) start [2025-01-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177528', 'tblTempVendorCDR_20' ) end [2025-01-05 03:40:19] Production.INFO: ProcessCDR(1,14177528,1,1,2) [2025-01-05 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177528', 'tblTempUsageDetail_20' ) start [2025-01-05 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177528', 'tblTempUsageDetail_20' ) end [2025-01-05 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:40:21] Production.INFO: ==30800== Releasing lock... [2025-01-05 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:40:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:41:04 [end_date_ymd] => 2025-01-05 03:41:04 [RateCDR] => 1 ) [2025-01-05 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:41:04' and `end` < '2025-01-05 03:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:41:18] Production.INFO: count ==311 [2025-01-05 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:41:04 - End Time 2025-01-05 03:41:04 [2025-01-05 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177534', 'tblTempUsageDetail_20' ) start [2025-01-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177534', 'tblTempUsageDetail_20' ) end [2025-01-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177534', 'tblTempVendorCDR_20' ) start [2025-01-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177534', 'tblTempVendorCDR_20' ) end [2025-01-05 03:41:18] Production.INFO: ProcessCDR(1,14177534,1,1,2) [2025-01-05 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177534', 'tblTempUsageDetail_20' ) start [2025-01-05 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177534', 'tblTempUsageDetail_20' ) end [2025-01-05 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:41:21] Production.INFO: ==30877== Releasing lock... [2025-01-05 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:42:05 [end_date_ymd] => 2025-01-05 03:42:05 [RateCDR] => 1 ) [2025-01-05 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:42:05' and `end` < '2025-01-05 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:42:17] Production.INFO: count ==311 [2025-01-05 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:42:05 - End Time 2025-01-05 03:42:05 [2025-01-05 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177539', 'tblTempUsageDetail_20' ) start [2025-01-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177539', 'tblTempUsageDetail_20' ) end [2025-01-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177539', 'tblTempVendorCDR_20' ) start [2025-01-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177539', 'tblTempVendorCDR_20' ) end [2025-01-05 03:42:18] Production.INFO: ProcessCDR(1,14177539,1,1,2) [2025-01-05 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177539', 'tblTempUsageDetail_20' ) start [2025-01-05 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177539', 'tblTempUsageDetail_20' ) end [2025-01-05 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:42:21] Production.INFO: ==30958== Releasing lock... [2025-01-05 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:43:04 [end_date_ymd] => 2025-01-05 03:43:04 [RateCDR] => 1 ) [2025-01-05 03:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:43:04' and `end` < '2025-01-05 03:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:43:17] Production.INFO: count ==311 [2025-01-05 03:43:17] Production.ERROR: pbx CDR StartTime 2025-01-05 00:43:04 - End Time 2025-01-05 03:43:04 [2025-01-05 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177544', 'tblTempUsageDetail_20' ) start [2025-01-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177544', 'tblTempUsageDetail_20' ) end [2025-01-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177544', 'tblTempVendorCDR_20' ) start [2025-01-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177544', 'tblTempVendorCDR_20' ) end [2025-01-05 03:43:17] Production.INFO: ProcessCDR(1,14177544,1,1,2) [2025-01-05 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177544', 'tblTempUsageDetail_20' ) start [2025-01-05 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177544', 'tblTempUsageDetail_20' ) end [2025-01-05 03:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:43:20] Production.INFO: ==31034== Releasing lock... [2025-01-05 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:43:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:44:05 [end_date_ymd] => 2025-01-05 03:44:05 [RateCDR] => 1 ) [2025-01-05 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:44:05' and `end` < '2025-01-05 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:44:18] Production.INFO: count ==307 [2025-01-05 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:44:05 - End Time 2025-01-05 03:44:05 [2025-01-05 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177549', 'tblTempUsageDetail_20' ) start [2025-01-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177549', 'tblTempUsageDetail_20' ) end [2025-01-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177549', 'tblTempVendorCDR_20' ) start [2025-01-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177549', 'tblTempVendorCDR_20' ) end [2025-01-05 03:44:18] Production.INFO: ProcessCDR(1,14177549,1,1,2) [2025-01-05 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177549', 'tblTempUsageDetail_20' ) start [2025-01-05 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177549', 'tblTempUsageDetail_20' ) end [2025-01-05 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:44:21] Production.INFO: ==31113== Releasing lock... [2025-01-05 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:45:06 [end_date_ymd] => 2025-01-05 03:45:06 [RateCDR] => 1 ) [2025-01-05 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:45:06' and `end` < '2025-01-05 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:45:19] Production.INFO: count ==304 [2025-01-05 03:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:45:06 - End Time 2025-01-05 03:45:06 [2025-01-05 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177554', 'tblTempUsageDetail_20' ) start [2025-01-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177554', 'tblTempUsageDetail_20' ) end [2025-01-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177554', 'tblTempVendorCDR_20' ) start [2025-01-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177554', 'tblTempVendorCDR_20' ) end [2025-01-05 03:45:19] Production.INFO: ProcessCDR(1,14177554,1,1,2) [2025-01-05 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177554', 'tblTempUsageDetail_20' ) start [2025-01-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177554', 'tblTempUsageDetail_20' ) end [2025-01-05 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:45:22] Production.INFO: ==31194== Releasing lock... [2025-01-05 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:46:05 [end_date_ymd] => 2025-01-05 03:46:05 [RateCDR] => 1 ) [2025-01-05 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:46:05' and `end` < '2025-01-05 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:46:19] Production.INFO: count ==301 [2025-01-05 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:46:05 - End Time 2025-01-05 03:46:05 [2025-01-05 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177559', 'tblTempUsageDetail_20' ) start [2025-01-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177559', 'tblTempUsageDetail_20' ) end [2025-01-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177559', 'tblTempVendorCDR_20' ) start [2025-01-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177559', 'tblTempVendorCDR_20' ) end [2025-01-05 03:46:19] Production.INFO: ProcessCDR(1,14177559,1,1,2) [2025-01-05 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177559', 'tblTempUsageDetail_20' ) start [2025-01-05 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177559', 'tblTempUsageDetail_20' ) end [2025-01-05 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:46:22] Production.INFO: ==31274== Releasing lock... [2025-01-05 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:47:06 [end_date_ymd] => 2025-01-05 03:47:06 [RateCDR] => 1 ) [2025-01-05 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:47:06' and `end` < '2025-01-05 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:47:18] Production.INFO: count ==298 [2025-01-05 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:47:06 - End Time 2025-01-05 03:47:06 [2025-01-05 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177564', 'tblTempUsageDetail_20' ) start [2025-01-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177564', 'tblTempUsageDetail_20' ) end [2025-01-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177564', 'tblTempVendorCDR_20' ) start [2025-01-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177564', 'tblTempVendorCDR_20' ) end [2025-01-05 03:47:18] Production.INFO: ProcessCDR(1,14177564,1,1,2) [2025-01-05 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177564', 'tblTempUsageDetail_20' ) start [2025-01-05 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177564', 'tblTempUsageDetail_20' ) end [2025-01-05 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:47:21] Production.INFO: ==31393== Releasing lock... [2025-01-05 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:48:04 [end_date_ymd] => 2025-01-05 03:48:04 [RateCDR] => 1 ) [2025-01-05 03:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:48:04' and `end` < '2025-01-05 03:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:48:19] Production.INFO: count ==298 [2025-01-05 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:48:04 - End Time 2025-01-05 03:48:04 [2025-01-05 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177569', 'tblTempUsageDetail_20' ) start [2025-01-05 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177569', 'tblTempUsageDetail_20' ) end [2025-01-05 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177569', 'tblTempVendorCDR_20' ) start [2025-01-05 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177569', 'tblTempVendorCDR_20' ) end [2025-01-05 03:48:19] Production.INFO: ProcessCDR(1,14177569,1,1,2) [2025-01-05 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177569', 'tblTempUsageDetail_20' ) start [2025-01-05 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177569', 'tblTempUsageDetail_20' ) end [2025-01-05 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:48:22] Production.INFO: ==31470== Releasing lock... [2025-01-05 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:49:05 [end_date_ymd] => 2025-01-05 03:49:05 [RateCDR] => 1 ) [2025-01-05 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:49:05' and `end` < '2025-01-05 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:49:18] Production.INFO: count ==298 [2025-01-05 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:49:05 - End Time 2025-01-05 03:49:05 [2025-01-05 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177574', 'tblTempUsageDetail_20' ) start [2025-01-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177574', 'tblTempUsageDetail_20' ) end [2025-01-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177574', 'tblTempVendorCDR_20' ) start [2025-01-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177574', 'tblTempVendorCDR_20' ) end [2025-01-05 03:49:18] Production.INFO: ProcessCDR(1,14177574,1,1,2) [2025-01-05 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177574', 'tblTempUsageDetail_20' ) start [2025-01-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177574', 'tblTempUsageDetail_20' ) end [2025-01-05 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:49:21] Production.INFO: ==31551== Releasing lock... [2025-01-05 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:50:05 [end_date_ymd] => 2025-01-05 03:50:05 [RateCDR] => 1 ) [2025-01-05 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:50:05' and `end` < '2025-01-05 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:50:18] Production.INFO: count ==298 [2025-01-05 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:50:05 - End Time 2025-01-05 03:50:05 [2025-01-05 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177580', 'tblTempUsageDetail_20' ) start [2025-01-05 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177580', 'tblTempUsageDetail_20' ) end [2025-01-05 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177580', 'tblTempVendorCDR_20' ) start [2025-01-05 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177580', 'tblTempVendorCDR_20' ) end [2025-01-05 03:50:18] Production.INFO: ProcessCDR(1,14177580,1,1,2) [2025-01-05 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177580', 'tblTempUsageDetail_20' ) start [2025-01-05 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177580', 'tblTempUsageDetail_20' ) end [2025-01-05 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:50:21] Production.INFO: ==31632== Releasing lock... [2025-01-05 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:51:05 [end_date_ymd] => 2025-01-05 03:51:05 [RateCDR] => 1 ) [2025-01-05 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:51:05' and `end` < '2025-01-05 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:51:19] Production.INFO: count ==290 [2025-01-05 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:51:05 - End Time 2025-01-05 03:51:05 [2025-01-05 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177585', 'tblTempUsageDetail_20' ) start [2025-01-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177585', 'tblTempUsageDetail_20' ) end [2025-01-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177585', 'tblTempVendorCDR_20' ) start [2025-01-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177585', 'tblTempVendorCDR_20' ) end [2025-01-05 03:51:19] Production.INFO: ProcessCDR(1,14177585,1,1,2) [2025-01-05 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177585', 'tblTempUsageDetail_20' ) start [2025-01-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177585', 'tblTempUsageDetail_20' ) end [2025-01-05 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:51:22] Production.INFO: ==31711== Releasing lock... [2025-01-05 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:52:06 [end_date_ymd] => 2025-01-05 03:52:06 [RateCDR] => 1 ) [2025-01-05 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:52:06' and `end` < '2025-01-05 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:52:19] Production.INFO: count ==288 [2025-01-05 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:52:06 - End Time 2025-01-05 03:52:06 [2025-01-05 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177590', 'tblTempUsageDetail_20' ) start [2025-01-05 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177590', 'tblTempUsageDetail_20' ) end [2025-01-05 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177590', 'tblTempVendorCDR_20' ) start [2025-01-05 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177590', 'tblTempVendorCDR_20' ) end [2025-01-05 03:52:19] Production.INFO: ProcessCDR(1,14177590,1,1,2) [2025-01-05 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177590', 'tblTempUsageDetail_20' ) start [2025-01-05 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177590', 'tblTempUsageDetail_20' ) end [2025-01-05 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:52:22] Production.INFO: ==31788== Releasing lock... [2025-01-05 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:53:05 [end_date_ymd] => 2025-01-05 03:53:05 [RateCDR] => 1 ) [2025-01-05 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:53:05' and `end` < '2025-01-05 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:53:18] Production.INFO: count ==288 [2025-01-05 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:53:05 - End Time 2025-01-05 03:53:05 [2025-01-05 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177595', 'tblTempUsageDetail_20' ) start [2025-01-05 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177595', 'tblTempUsageDetail_20' ) end [2025-01-05 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177595', 'tblTempVendorCDR_20' ) start [2025-01-05 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177595', 'tblTempVendorCDR_20' ) end [2025-01-05 03:53:18] Production.INFO: ProcessCDR(1,14177595,1,1,2) [2025-01-05 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177595', 'tblTempUsageDetail_20' ) start [2025-01-05 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177595', 'tblTempUsageDetail_20' ) end [2025-01-05 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:53:21] Production.INFO: ==31868== Releasing lock... [2025-01-05 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:54:05 [end_date_ymd] => 2025-01-05 03:54:05 [RateCDR] => 1 ) [2025-01-05 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:54:05' and `end` < '2025-01-05 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:54:20] Production.INFO: count ==286 [2025-01-05 03:54:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:54:05 - End Time 2025-01-05 03:54:05 [2025-01-05 03:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177600', 'tblTempUsageDetail_20' ) start [2025-01-05 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177600', 'tblTempUsageDetail_20' ) end [2025-01-05 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177600', 'tblTempVendorCDR_20' ) start [2025-01-05 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177600', 'tblTempVendorCDR_20' ) end [2025-01-05 03:54:20] Production.INFO: ProcessCDR(1,14177600,1,1,2) [2025-01-05 03:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177600', 'tblTempUsageDetail_20' ) start [2025-01-05 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177600', 'tblTempUsageDetail_20' ) end [2025-01-05 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:54:23] Production.INFO: ==31945== Releasing lock... [2025-01-05 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:55:04 [end_date_ymd] => 2025-01-05 03:55:04 [RateCDR] => 1 ) [2025-01-05 03:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:55:04' and `end` < '2025-01-05 03:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:55:18] Production.INFO: count ==284 [2025-01-05 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:55:04 - End Time 2025-01-05 03:55:04 [2025-01-05 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177605', 'tblTempUsageDetail_20' ) start [2025-01-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177605', 'tblTempUsageDetail_20' ) end [2025-01-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177605', 'tblTempVendorCDR_20' ) start [2025-01-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177605', 'tblTempVendorCDR_20' ) end [2025-01-05 03:55:18] Production.INFO: ProcessCDR(1,14177605,1,1,2) [2025-01-05 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177605', 'tblTempUsageDetail_20' ) start [2025-01-05 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177605', 'tblTempUsageDetail_20' ) end [2025-01-05 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:55:21] Production.INFO: ==32022== Releasing lock... [2025-01-05 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:56:05 [end_date_ymd] => 2025-01-05 03:56:05 [RateCDR] => 1 ) [2025-01-05 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:56:05' and `end` < '2025-01-05 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:56:18] Production.INFO: count ==284 [2025-01-05 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 00:56:05 - End Time 2025-01-05 03:56:05 [2025-01-05 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177610', 'tblTempUsageDetail_20' ) start [2025-01-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177610', 'tblTempUsageDetail_20' ) end [2025-01-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177610', 'tblTempVendorCDR_20' ) start [2025-01-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177610', 'tblTempVendorCDR_20' ) end [2025-01-05 03:56:18] Production.INFO: ProcessCDR(1,14177610,1,1,2) [2025-01-05 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177610', 'tblTempUsageDetail_20' ) start [2025-01-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177610', 'tblTempUsageDetail_20' ) end [2025-01-05 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:56:21] Production.INFO: ==32102== Releasing lock... [2025-01-05 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:57:05 [end_date_ymd] => 2025-01-05 03:57:05 [RateCDR] => 1 ) [2025-01-05 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:57:05' and `end` < '2025-01-05 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:57:19] Production.INFO: count ==284 [2025-01-05 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 00:57:05 - End Time 2025-01-05 03:57:05 [2025-01-05 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177615', 'tblTempUsageDetail_20' ) start [2025-01-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177615', 'tblTempUsageDetail_20' ) end [2025-01-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177615', 'tblTempVendorCDR_20' ) start [2025-01-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177615', 'tblTempVendorCDR_20' ) end [2025-01-05 03:57:19] Production.INFO: ProcessCDR(1,14177615,1,1,2) [2025-01-05 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177615', 'tblTempUsageDetail_20' ) start [2025-01-05 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177615', 'tblTempUsageDetail_20' ) end [2025-01-05 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:57:22] Production.INFO: ==32179== Releasing lock... [2025-01-05 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:58:05 [end_date_ymd] => 2025-01-05 03:58:05 [RateCDR] => 1 ) [2025-01-05 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:58:05' and `end` < '2025-01-05 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:58:20] Production.INFO: count ==284 [2025-01-05 03:58:20] Production.ERROR: pbx CDR StartTime 2025-01-05 00:58:05 - End Time 2025-01-05 03:58:05 [2025-01-05 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177620', 'tblTempUsageDetail_20' ) start [2025-01-05 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177620', 'tblTempUsageDetail_20' ) end [2025-01-05 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177620', 'tblTempVendorCDR_20' ) start [2025-01-05 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177620', 'tblTempVendorCDR_20' ) end [2025-01-05 03:58:20] Production.INFO: ProcessCDR(1,14177620,1,1,2) [2025-01-05 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177620', 'tblTempUsageDetail_20' ) start [2025-01-05 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177620', 'tblTempUsageDetail_20' ) end [2025-01-05 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:58:23] Production.INFO: ==32258== Releasing lock... [2025-01-05 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 00:59:04 [end_date_ymd] => 2025-01-05 03:59:04 [RateCDR] => 1 ) [2025-01-05 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 00:59:04' and `end` < '2025-01-05 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 03:59:17] Production.INFO: count ==284 [2025-01-05 03:59:17] Production.ERROR: pbx CDR StartTime 2025-01-05 00:59:04 - End Time 2025-01-05 03:59:04 [2025-01-05 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177625', 'tblTempUsageDetail_20' ) start [2025-01-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177625', 'tblTempUsageDetail_20' ) end [2025-01-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177625', 'tblTempVendorCDR_20' ) start [2025-01-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177625', 'tblTempVendorCDR_20' ) end [2025-01-05 03:59:17] Production.INFO: ProcessCDR(1,14177625,1,1,2) [2025-01-05 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177625', 'tblTempUsageDetail_20' ) start [2025-01-05 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177625', 'tblTempUsageDetail_20' ) end [2025-01-05 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 03:59:20] Production.INFO: ==32338== Releasing lock... [2025-01-05 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 03:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:00:06 [end_date_ymd] => 2025-01-05 04:00:06 [RateCDR] => 1 ) [2025-01-05 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:00:06' and `end` < '2025-01-05 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:00:20] Production.INFO: count ==284 [2025-01-05 04:00:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:00:06 - End Time 2025-01-05 04:00:06 [2025-01-05 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177631', 'tblTempUsageDetail_20' ) start [2025-01-05 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177631', 'tblTempUsageDetail_20' ) end [2025-01-05 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177631', 'tblTempVendorCDR_20' ) start [2025-01-05 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177631', 'tblTempVendorCDR_20' ) end [2025-01-05 04:00:20] Production.INFO: ProcessCDR(1,14177631,1,1,2) [2025-01-05 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177631', 'tblTempUsageDetail_20' ) start [2025-01-05 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177631', 'tblTempUsageDetail_20' ) end [2025-01-05 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:00:23] Production.INFO: ==32421== Releasing lock... [2025-01-05 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:01:05 [end_date_ymd] => 2025-01-05 04:01:05 [RateCDR] => 1 ) [2025-01-05 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:01:05' and `end` < '2025-01-05 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:01:18] Production.INFO: count ==288 [2025-01-05 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:01:05 - End Time 2025-01-05 04:01:05 [2025-01-05 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177637', 'tblTempUsageDetail_20' ) start [2025-01-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177637', 'tblTempUsageDetail_20' ) end [2025-01-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177637', 'tblTempVendorCDR_20' ) start [2025-01-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177637', 'tblTempVendorCDR_20' ) end [2025-01-05 04:01:18] Production.INFO: ProcessCDR(1,14177637,1,1,2) [2025-01-05 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177637', 'tblTempUsageDetail_20' ) start [2025-01-05 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177637', 'tblTempUsageDetail_20' ) end [2025-01-05 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:01:22] Production.INFO: ==32513== Releasing lock... [2025-01-05 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:02:05 [end_date_ymd] => 2025-01-05 04:02:05 [RateCDR] => 1 ) [2025-01-05 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:02:05' and `end` < '2025-01-05 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:02:20] Production.INFO: count ==284 [2025-01-05 04:02:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:02:05 - End Time 2025-01-05 04:02:05 [2025-01-05 04:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177642', 'tblTempUsageDetail_20' ) start [2025-01-05 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177642', 'tblTempUsageDetail_20' ) end [2025-01-05 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177642', 'tblTempVendorCDR_20' ) start [2025-01-05 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177642', 'tblTempVendorCDR_20' ) end [2025-01-05 04:02:20] Production.INFO: ProcessCDR(1,14177642,1,1,2) [2025-01-05 04:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177642', 'tblTempUsageDetail_20' ) start [2025-01-05 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177642', 'tblTempUsageDetail_20' ) end [2025-01-05 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:02:23] Production.INFO: ==32630== Releasing lock... [2025-01-05 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:03:05 [end_date_ymd] => 2025-01-05 04:03:05 [RateCDR] => 1 ) [2025-01-05 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:03:05' and `end` < '2025-01-05 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:03:19] Production.INFO: count ==284 [2025-01-05 04:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:03:05 - End Time 2025-01-05 04:03:05 [2025-01-05 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177647', 'tblTempUsageDetail_20' ) start [2025-01-05 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177647', 'tblTempUsageDetail_20' ) end [2025-01-05 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177647', 'tblTempVendorCDR_20' ) start [2025-01-05 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177647', 'tblTempVendorCDR_20' ) end [2025-01-05 04:03:19] Production.INFO: ProcessCDR(1,14177647,1,1,2) [2025-01-05 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177647', 'tblTempUsageDetail_20' ) start [2025-01-05 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177647', 'tblTempUsageDetail_20' ) end [2025-01-05 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:03:22] Production.INFO: ==32706== Releasing lock... [2025-01-05 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:04:05 [end_date_ymd] => 2025-01-05 04:04:05 [RateCDR] => 1 ) [2025-01-05 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:04:05' and `end` < '2025-01-05 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:04:20] Production.INFO: count ==284 [2025-01-05 04:04:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:04:05 - End Time 2025-01-05 04:04:05 [2025-01-05 04:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177652', 'tblTempUsageDetail_20' ) start [2025-01-05 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177652', 'tblTempUsageDetail_20' ) end [2025-01-05 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177652', 'tblTempVendorCDR_20' ) start [2025-01-05 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177652', 'tblTempVendorCDR_20' ) end [2025-01-05 04:04:20] Production.INFO: ProcessCDR(1,14177652,1,1,2) [2025-01-05 04:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177652', 'tblTempUsageDetail_20' ) start [2025-01-05 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177652', 'tblTempUsageDetail_20' ) end [2025-01-05 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:04:23] Production.INFO: ==326== Releasing lock... [2025-01-05 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:05:05 [end_date_ymd] => 2025-01-05 04:05:05 [RateCDR] => 1 ) [2025-01-05 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:05:05' and `end` < '2025-01-05 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:05:18] Production.INFO: count ==284 [2025-01-05 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:05:05 - End Time 2025-01-05 04:05:05 [2025-01-05 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177657', 'tblTempUsageDetail_20' ) start [2025-01-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177657', 'tblTempUsageDetail_20' ) end [2025-01-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177657', 'tblTempVendorCDR_20' ) start [2025-01-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177657', 'tblTempVendorCDR_20' ) end [2025-01-05 04:05:18] Production.INFO: ProcessCDR(1,14177657,1,1,2) [2025-01-05 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177657', 'tblTempUsageDetail_20' ) start [2025-01-05 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177657', 'tblTempUsageDetail_20' ) end [2025-01-05 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:05:21] Production.INFO: ==414== Releasing lock... [2025-01-05 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:06:05 [end_date_ymd] => 2025-01-05 04:06:05 [RateCDR] => 1 ) [2025-01-05 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:06:05' and `end` < '2025-01-05 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:06:18] Production.INFO: count ==284 [2025-01-05 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:06:05 - End Time 2025-01-05 04:06:05 [2025-01-05 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177662', 'tblTempUsageDetail_20' ) start [2025-01-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177662', 'tblTempUsageDetail_20' ) end [2025-01-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177662', 'tblTempVendorCDR_20' ) start [2025-01-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177662', 'tblTempVendorCDR_20' ) end [2025-01-05 04:06:18] Production.INFO: ProcessCDR(1,14177662,1,1,2) [2025-01-05 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177662', 'tblTempUsageDetail_20' ) start [2025-01-05 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177662', 'tblTempUsageDetail_20' ) end [2025-01-05 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:06:21] Production.INFO: ==498== Releasing lock... [2025-01-05 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:07:05 [end_date_ymd] => 2025-01-05 04:07:05 [RateCDR] => 1 ) [2025-01-05 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:07:05' and `end` < '2025-01-05 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:07:19] Production.INFO: count ==284 [2025-01-05 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:07:05 - End Time 2025-01-05 04:07:05 [2025-01-05 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177667', 'tblTempUsageDetail_20' ) start [2025-01-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177667', 'tblTempUsageDetail_20' ) end [2025-01-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177667', 'tblTempVendorCDR_20' ) start [2025-01-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177667', 'tblTempVendorCDR_20' ) end [2025-01-05 04:07:19] Production.INFO: ProcessCDR(1,14177667,1,1,2) [2025-01-05 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177667', 'tblTempUsageDetail_20' ) start [2025-01-05 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177667', 'tblTempUsageDetail_20' ) end [2025-01-05 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:07:22] Production.INFO: ==577== Releasing lock... [2025-01-05 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:08:05 [end_date_ymd] => 2025-01-05 04:08:05 [RateCDR] => 1 ) [2025-01-05 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:08:05' and `end` < '2025-01-05 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:08:19] Production.INFO: count ==284 [2025-01-05 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:08:05 - End Time 2025-01-05 04:08:05 [2025-01-05 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177672', 'tblTempUsageDetail_20' ) start [2025-01-05 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177672', 'tblTempUsageDetail_20' ) end [2025-01-05 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177672', 'tblTempVendorCDR_20' ) start [2025-01-05 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177672', 'tblTempVendorCDR_20' ) end [2025-01-05 04:08:19] Production.INFO: ProcessCDR(1,14177672,1,1,2) [2025-01-05 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177672', 'tblTempUsageDetail_20' ) start [2025-01-05 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177672', 'tblTempUsageDetail_20' ) end [2025-01-05 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:08:22] Production.INFO: ==674== Releasing lock... [2025-01-05 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:09:05 [end_date_ymd] => 2025-01-05 04:09:05 [RateCDR] => 1 ) [2025-01-05 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:09:05' and `end` < '2025-01-05 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:09:18] Production.INFO: count ==284 [2025-01-05 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:09:05 - End Time 2025-01-05 04:09:05 [2025-01-05 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177677', 'tblTempUsageDetail_20' ) start [2025-01-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177677', 'tblTempUsageDetail_20' ) end [2025-01-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177677', 'tblTempVendorCDR_20' ) start [2025-01-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177677', 'tblTempVendorCDR_20' ) end [2025-01-05 04:09:18] Production.INFO: ProcessCDR(1,14177677,1,1,2) [2025-01-05 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177677', 'tblTempUsageDetail_20' ) start [2025-01-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177677', 'tblTempUsageDetail_20' ) end [2025-01-05 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:09:21] Production.INFO: ==769== Releasing lock... [2025-01-05 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:10:05 [end_date_ymd] => 2025-01-05 04:10:05 [RateCDR] => 1 ) [2025-01-05 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:10:05' and `end` < '2025-01-05 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:10:20] Production.INFO: count ==283 [2025-01-05 04:10:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:10:05 - End Time 2025-01-05 04:10:05 [2025-01-05 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177682', 'tblTempUsageDetail_20' ) start [2025-01-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177682', 'tblTempUsageDetail_20' ) end [2025-01-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177682', 'tblTempVendorCDR_20' ) start [2025-01-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177682', 'tblTempVendorCDR_20' ) end [2025-01-05 04:10:20] Production.INFO: ProcessCDR(1,14177682,1,1,2) [2025-01-05 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177682', 'tblTempUsageDetail_20' ) start [2025-01-05 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177682', 'tblTempUsageDetail_20' ) end [2025-01-05 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:10:23] Production.INFO: ==848== Releasing lock... [2025-01-05 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:11:05 [end_date_ymd] => 2025-01-05 04:11:05 [RateCDR] => 1 ) [2025-01-05 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:11:05' and `end` < '2025-01-05 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:11:17] Production.INFO: count ==279 [2025-01-05 04:11:17] Production.ERROR: pbx CDR StartTime 2025-01-05 01:11:05 - End Time 2025-01-05 04:11:05 [2025-01-05 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177688', 'tblTempUsageDetail_20' ) start [2025-01-05 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177688', 'tblTempUsageDetail_20' ) end [2025-01-05 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177688', 'tblTempVendorCDR_20' ) start [2025-01-05 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177688', 'tblTempVendorCDR_20' ) end [2025-01-05 04:11:17] Production.INFO: ProcessCDR(1,14177688,1,1,2) [2025-01-05 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177688', 'tblTempUsageDetail_20' ) start [2025-01-05 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177688', 'tblTempUsageDetail_20' ) end [2025-01-05 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:11:21] Production.INFO: ==925== Releasing lock... [2025-01-05 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:12:05 [end_date_ymd] => 2025-01-05 04:12:05 [RateCDR] => 1 ) [2025-01-05 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:12:05' and `end` < '2025-01-05 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:12:18] Production.INFO: count ==279 [2025-01-05 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:12:05 - End Time 2025-01-05 04:12:05 [2025-01-05 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177693', 'tblTempUsageDetail_20' ) start [2025-01-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177693', 'tblTempUsageDetail_20' ) end [2025-01-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177693', 'tblTempVendorCDR_20' ) start [2025-01-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177693', 'tblTempVendorCDR_20' ) end [2025-01-05 04:12:18] Production.INFO: ProcessCDR(1,14177693,1,1,2) [2025-01-05 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177693', 'tblTempUsageDetail_20' ) start [2025-01-05 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177693', 'tblTempUsageDetail_20' ) end [2025-01-05 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:12:21] Production.INFO: ==1005== Releasing lock... [2025-01-05 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:13:05 [end_date_ymd] => 2025-01-05 04:13:05 [RateCDR] => 1 ) [2025-01-05 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:13:05' and `end` < '2025-01-05 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:13:19] Production.INFO: count ==277 [2025-01-05 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:13:05 - End Time 2025-01-05 04:13:05 [2025-01-05 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177698', 'tblTempUsageDetail_20' ) start [2025-01-05 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177698', 'tblTempUsageDetail_20' ) end [2025-01-05 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177698', 'tblTempVendorCDR_20' ) start [2025-01-05 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177698', 'tblTempVendorCDR_20' ) end [2025-01-05 04:13:19] Production.INFO: ProcessCDR(1,14177698,1,1,2) [2025-01-05 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177698', 'tblTempUsageDetail_20' ) start [2025-01-05 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177698', 'tblTempUsageDetail_20' ) end [2025-01-05 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:13:22] Production.INFO: ==1079== Releasing lock... [2025-01-05 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:14:05 [end_date_ymd] => 2025-01-05 04:14:05 [RateCDR] => 1 ) [2025-01-05 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:14:05' and `end` < '2025-01-05 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:14:18] Production.INFO: count ==276 [2025-01-05 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:14:05 - End Time 2025-01-05 04:14:05 [2025-01-05 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177703', 'tblTempUsageDetail_20' ) start [2025-01-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177703', 'tblTempUsageDetail_20' ) end [2025-01-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177703', 'tblTempVendorCDR_20' ) start [2025-01-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177703', 'tblTempVendorCDR_20' ) end [2025-01-05 04:14:18] Production.INFO: ProcessCDR(1,14177703,1,1,2) [2025-01-05 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177703', 'tblTempUsageDetail_20' ) start [2025-01-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177703', 'tblTempUsageDetail_20' ) end [2025-01-05 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:14:21] Production.INFO: ==1160== Releasing lock... [2025-01-05 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:15:05 [end_date_ymd] => 2025-01-05 04:15:05 [RateCDR] => 1 ) [2025-01-05 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:15:05' and `end` < '2025-01-05 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:15:18] Production.INFO: count ==276 [2025-01-05 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:15:05 - End Time 2025-01-05 04:15:05 [2025-01-05 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177708', 'tblTempUsageDetail_20' ) start [2025-01-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177708', 'tblTempUsageDetail_20' ) end [2025-01-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177708', 'tblTempVendorCDR_20' ) start [2025-01-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177708', 'tblTempVendorCDR_20' ) end [2025-01-05 04:15:18] Production.INFO: ProcessCDR(1,14177708,1,1,2) [2025-01-05 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177708', 'tblTempUsageDetail_20' ) start [2025-01-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177708', 'tblTempUsageDetail_20' ) end [2025-01-05 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:15:21] Production.INFO: ==1248== Releasing lock... [2025-01-05 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:16:05 [end_date_ymd] => 2025-01-05 04:16:05 [RateCDR] => 1 ) [2025-01-05 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:16:05' and `end` < '2025-01-05 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:16:18] Production.INFO: count ==276 [2025-01-05 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:16:05 - End Time 2025-01-05 04:16:05 [2025-01-05 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177713', 'tblTempUsageDetail_20' ) start [2025-01-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177713', 'tblTempUsageDetail_20' ) end [2025-01-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177713', 'tblTempVendorCDR_20' ) start [2025-01-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177713', 'tblTempVendorCDR_20' ) end [2025-01-05 04:16:18] Production.INFO: ProcessCDR(1,14177713,1,1,2) [2025-01-05 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177713', 'tblTempUsageDetail_20' ) start [2025-01-05 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177713', 'tblTempUsageDetail_20' ) end [2025-01-05 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:16:21] Production.INFO: ==1329== Releasing lock... [2025-01-05 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:17:05 [end_date_ymd] => 2025-01-05 04:17:05 [RateCDR] => 1 ) [2025-01-05 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:17:05' and `end` < '2025-01-05 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:17:19] Production.INFO: count ==276 [2025-01-05 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:17:05 - End Time 2025-01-05 04:17:05 [2025-01-05 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177718', 'tblTempUsageDetail_20' ) start [2025-01-05 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177718', 'tblTempUsageDetail_20' ) end [2025-01-05 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177718', 'tblTempVendorCDR_20' ) start [2025-01-05 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177718', 'tblTempVendorCDR_20' ) end [2025-01-05 04:17:19] Production.INFO: ProcessCDR(1,14177718,1,1,2) [2025-01-05 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177718', 'tblTempUsageDetail_20' ) start [2025-01-05 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177718', 'tblTempUsageDetail_20' ) end [2025-01-05 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:17:22] Production.INFO: ==1405== Releasing lock... [2025-01-05 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:18:05 [end_date_ymd] => 2025-01-05 04:18:05 [RateCDR] => 1 ) [2025-01-05 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:18:05' and `end` < '2025-01-05 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:18:19] Production.INFO: count ==274 [2025-01-05 04:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:18:05 - End Time 2025-01-05 04:18:05 [2025-01-05 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177723', 'tblTempUsageDetail_20' ) start [2025-01-05 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177723', 'tblTempUsageDetail_20' ) end [2025-01-05 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177723', 'tblTempVendorCDR_20' ) start [2025-01-05 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177723', 'tblTempVendorCDR_20' ) end [2025-01-05 04:18:19] Production.INFO: ProcessCDR(1,14177723,1,1,2) [2025-01-05 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177723', 'tblTempUsageDetail_20' ) start [2025-01-05 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177723', 'tblTempUsageDetail_20' ) end [2025-01-05 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:18:22] Production.INFO: ==1565== Releasing lock... [2025-01-05 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:19:05 [end_date_ymd] => 2025-01-05 04:19:05 [RateCDR] => 1 ) [2025-01-05 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:19:05' and `end` < '2025-01-05 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:19:18] Production.INFO: count ==274 [2025-01-05 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:19:05 - End Time 2025-01-05 04:19:05 [2025-01-05 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177728', 'tblTempUsageDetail_20' ) start [2025-01-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177728', 'tblTempUsageDetail_20' ) end [2025-01-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177728', 'tblTempVendorCDR_20' ) start [2025-01-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177728', 'tblTempVendorCDR_20' ) end [2025-01-05 04:19:18] Production.INFO: ProcessCDR(1,14177728,1,1,2) [2025-01-05 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177728', 'tblTempUsageDetail_20' ) start [2025-01-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177728', 'tblTempUsageDetail_20' ) end [2025-01-05 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:19:21] Production.INFO: ==1647== Releasing lock... [2025-01-05 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:20:06 [end_date_ymd] => 2025-01-05 04:20:06 [RateCDR] => 1 ) [2025-01-05 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:20:06' and `end` < '2025-01-05 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:20:19] Production.INFO: count ==265 [2025-01-05 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:20:06 - End Time 2025-01-05 04:20:06 [2025-01-05 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177734', 'tblTempUsageDetail_20' ) start [2025-01-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177734', 'tblTempUsageDetail_20' ) end [2025-01-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177734', 'tblTempVendorCDR_20' ) start [2025-01-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177734', 'tblTempVendorCDR_20' ) end [2025-01-05 04:20:19] Production.INFO: ProcessCDR(1,14177734,1,1,2) [2025-01-05 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177734', 'tblTempUsageDetail_20' ) start [2025-01-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177734', 'tblTempUsageDetail_20' ) end [2025-01-05 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:20:22] Production.INFO: ==1728== Releasing lock... [2025-01-05 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:21:05 [end_date_ymd] => 2025-01-05 04:21:05 [RateCDR] => 1 ) [2025-01-05 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:21:05' and `end` < '2025-01-05 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:21:18] Production.INFO: count ==250 [2025-01-05 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:21:05 - End Time 2025-01-05 04:21:05 [2025-01-05 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177739', 'tblTempUsageDetail_20' ) start [2025-01-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177739', 'tblTempUsageDetail_20' ) end [2025-01-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177739', 'tblTempVendorCDR_20' ) start [2025-01-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177739', 'tblTempVendorCDR_20' ) end [2025-01-05 04:21:18] Production.INFO: ProcessCDR(1,14177739,1,1,2) [2025-01-05 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177739', 'tblTempUsageDetail_20' ) start [2025-01-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177739', 'tblTempUsageDetail_20' ) end [2025-01-05 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:21:21] Production.INFO: ==1809== Releasing lock... [2025-01-05 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:22:04 [end_date_ymd] => 2025-01-05 04:22:04 [RateCDR] => 1 ) [2025-01-05 04:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:22:04' and `end` < '2025-01-05 04:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:22:17] Production.INFO: count ==250 [2025-01-05 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-05 01:22:04 - End Time 2025-01-05 04:22:04 [2025-01-05 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177744', 'tblTempUsageDetail_20' ) start [2025-01-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177744', 'tblTempUsageDetail_20' ) end [2025-01-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177744', 'tblTempVendorCDR_20' ) start [2025-01-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177744', 'tblTempVendorCDR_20' ) end [2025-01-05 04:22:17] Production.INFO: ProcessCDR(1,14177744,1,1,2) [2025-01-05 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177744', 'tblTempUsageDetail_20' ) start [2025-01-05 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177744', 'tblTempUsageDetail_20' ) end [2025-01-05 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:22:20] Production.INFO: ==1888== Releasing lock... [2025-01-05 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:23:05 [end_date_ymd] => 2025-01-05 04:23:05 [RateCDR] => 1 ) [2025-01-05 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:23:05' and `end` < '2025-01-05 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:23:18] Production.INFO: count ==248 [2025-01-05 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:23:05 - End Time 2025-01-05 04:23:05 [2025-01-05 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177749', 'tblTempUsageDetail_20' ) start [2025-01-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177749', 'tblTempUsageDetail_20' ) end [2025-01-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177749', 'tblTempVendorCDR_20' ) start [2025-01-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177749', 'tblTempVendorCDR_20' ) end [2025-01-05 04:23:18] Production.INFO: ProcessCDR(1,14177749,1,1,2) [2025-01-05 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177749', 'tblTempUsageDetail_20' ) start [2025-01-05 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177749', 'tblTempUsageDetail_20' ) end [2025-01-05 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:23:21] Production.INFO: ==1963== Releasing lock... [2025-01-05 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:24:05 [end_date_ymd] => 2025-01-05 04:24:05 [RateCDR] => 1 ) [2025-01-05 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:24:05' and `end` < '2025-01-05 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:24:19] Production.INFO: count ==248 [2025-01-05 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:24:05 - End Time 2025-01-05 04:24:05 [2025-01-05 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177754', 'tblTempUsageDetail_20' ) start [2025-01-05 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177754', 'tblTempUsageDetail_20' ) end [2025-01-05 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177754', 'tblTempVendorCDR_20' ) start [2025-01-05 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177754', 'tblTempVendorCDR_20' ) end [2025-01-05 04:24:19] Production.INFO: ProcessCDR(1,14177754,1,1,2) [2025-01-05 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177754', 'tblTempUsageDetail_20' ) start [2025-01-05 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177754', 'tblTempUsageDetail_20' ) end [2025-01-05 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:24:22] Production.INFO: ==2043== Releasing lock... [2025-01-05 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:25:05 [end_date_ymd] => 2025-01-05 04:25:05 [RateCDR] => 1 ) [2025-01-05 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:25:05' and `end` < '2025-01-05 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:25:18] Production.INFO: count ==248 [2025-01-05 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:25:05 - End Time 2025-01-05 04:25:05 [2025-01-05 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177759', 'tblTempUsageDetail_20' ) start [2025-01-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177759', 'tblTempUsageDetail_20' ) end [2025-01-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177759', 'tblTempVendorCDR_20' ) start [2025-01-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177759', 'tblTempVendorCDR_20' ) end [2025-01-05 04:25:18] Production.INFO: ProcessCDR(1,14177759,1,1,2) [2025-01-05 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177759', 'tblTempUsageDetail_20' ) start [2025-01-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177759', 'tblTempUsageDetail_20' ) end [2025-01-05 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:25:21] Production.INFO: ==2120== Releasing lock... [2025-01-05 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:26:05 [end_date_ymd] => 2025-01-05 04:26:05 [RateCDR] => 1 ) [2025-01-05 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:26:05' and `end` < '2025-01-05 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:26:18] Production.INFO: count ==248 [2025-01-05 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:26:05 - End Time 2025-01-05 04:26:05 [2025-01-05 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177764', 'tblTempUsageDetail_20' ) start [2025-01-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177764', 'tblTempUsageDetail_20' ) end [2025-01-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177764', 'tblTempVendorCDR_20' ) start [2025-01-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177764', 'tblTempVendorCDR_20' ) end [2025-01-05 04:26:18] Production.INFO: ProcessCDR(1,14177764,1,1,2) [2025-01-05 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177764', 'tblTempUsageDetail_20' ) start [2025-01-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177764', 'tblTempUsageDetail_20' ) end [2025-01-05 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:26:22] Production.INFO: ==2194== Releasing lock... [2025-01-05 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:27:05 [end_date_ymd] => 2025-01-05 04:27:05 [RateCDR] => 1 ) [2025-01-05 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:27:05' and `end` < '2025-01-05 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:27:18] Production.INFO: count ==248 [2025-01-05 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:27:05 - End Time 2025-01-05 04:27:05 [2025-01-05 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177769', 'tblTempUsageDetail_20' ) start [2025-01-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177769', 'tblTempUsageDetail_20' ) end [2025-01-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177769', 'tblTempVendorCDR_20' ) start [2025-01-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177769', 'tblTempVendorCDR_20' ) end [2025-01-05 04:27:18] Production.INFO: ProcessCDR(1,14177769,1,1,2) [2025-01-05 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177769', 'tblTempUsageDetail_20' ) start [2025-01-05 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177769', 'tblTempUsageDetail_20' ) end [2025-01-05 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:27:21] Production.INFO: ==2276== Releasing lock... [2025-01-05 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:28:05 [end_date_ymd] => 2025-01-05 04:28:05 [RateCDR] => 1 ) [2025-01-05 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:28:05' and `end` < '2025-01-05 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:28:19] Production.INFO: count ==248 [2025-01-05 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:28:05 - End Time 2025-01-05 04:28:05 [2025-01-05 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177774', 'tblTempUsageDetail_20' ) start [2025-01-05 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177774', 'tblTempUsageDetail_20' ) end [2025-01-05 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177774', 'tblTempVendorCDR_20' ) start [2025-01-05 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177774', 'tblTempVendorCDR_20' ) end [2025-01-05 04:28:19] Production.INFO: ProcessCDR(1,14177774,1,1,2) [2025-01-05 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177774', 'tblTempUsageDetail_20' ) start [2025-01-05 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177774', 'tblTempUsageDetail_20' ) end [2025-01-05 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:28:22] Production.INFO: ==2350== Releasing lock... [2025-01-05 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:29:05 [end_date_ymd] => 2025-01-05 04:29:05 [RateCDR] => 1 ) [2025-01-05 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:29:05' and `end` < '2025-01-05 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:29:17] Production.INFO: count ==248 [2025-01-05 04:29:17] Production.ERROR: pbx CDR StartTime 2025-01-05 01:29:05 - End Time 2025-01-05 04:29:05 [2025-01-05 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177779', 'tblTempUsageDetail_20' ) start [2025-01-05 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177779', 'tblTempUsageDetail_20' ) end [2025-01-05 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177779', 'tblTempVendorCDR_20' ) start [2025-01-05 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177779', 'tblTempVendorCDR_20' ) end [2025-01-05 04:29:17] Production.INFO: ProcessCDR(1,14177779,1,1,2) [2025-01-05 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177779', 'tblTempUsageDetail_20' ) start [2025-01-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177779', 'tblTempUsageDetail_20' ) end [2025-01-05 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:29:21] Production.INFO: ==2426== Releasing lock... [2025-01-05 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:30:06 [end_date_ymd] => 2025-01-05 04:30:06 [RateCDR] => 1 ) [2025-01-05 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:30:06' and `end` < '2025-01-05 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:30:19] Production.INFO: count ==246 [2025-01-05 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:30:06 - End Time 2025-01-05 04:30:06 [2025-01-05 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177786', 'tblTempUsageDetail_20' ) start [2025-01-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177786', 'tblTempUsageDetail_20' ) end [2025-01-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177786', 'tblTempVendorCDR_20' ) start [2025-01-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177786', 'tblTempVendorCDR_20' ) end [2025-01-05 04:30:19] Production.INFO: ProcessCDR(1,14177786,1,1,2) [2025-01-05 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177786', 'tblTempUsageDetail_20' ) start [2025-01-05 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177786', 'tblTempUsageDetail_20' ) end [2025-01-05 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:30:23] Production.INFO: ==2511== Releasing lock... [2025-01-05 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:31:05 [end_date_ymd] => 2025-01-05 04:31:05 [RateCDR] => 1 ) [2025-01-05 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:31:05' and `end` < '2025-01-05 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:31:17] Production.INFO: count ==246 [2025-01-05 04:31:17] Production.ERROR: pbx CDR StartTime 2025-01-05 01:31:05 - End Time 2025-01-05 04:31:05 [2025-01-05 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177791', 'tblTempUsageDetail_20' ) start [2025-01-05 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177791', 'tblTempUsageDetail_20' ) end [2025-01-05 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177791', 'tblTempVendorCDR_20' ) start [2025-01-05 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177791', 'tblTempVendorCDR_20' ) end [2025-01-05 04:31:17] Production.INFO: ProcessCDR(1,14177791,1,1,2) [2025-01-05 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177791', 'tblTempUsageDetail_20' ) start [2025-01-05 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177791', 'tblTempUsageDetail_20' ) end [2025-01-05 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:31:20] Production.INFO: ==2677== Releasing lock... [2025-01-05 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:32:06 [end_date_ymd] => 2025-01-05 04:32:06 [RateCDR] => 1 ) [2025-01-05 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:32:06' and `end` < '2025-01-05 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:32:19] Production.INFO: count ==246 [2025-01-05 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:32:06 - End Time 2025-01-05 04:32:06 [2025-01-05 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177796', 'tblTempUsageDetail_20' ) start [2025-01-05 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177796', 'tblTempUsageDetail_20' ) end [2025-01-05 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177796', 'tblTempVendorCDR_20' ) start [2025-01-05 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177796', 'tblTempVendorCDR_20' ) end [2025-01-05 04:32:19] Production.INFO: ProcessCDR(1,14177796,1,1,2) [2025-01-05 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177796', 'tblTempUsageDetail_20' ) start [2025-01-05 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177796', 'tblTempUsageDetail_20' ) end [2025-01-05 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:32:22] Production.INFO: ==2756== Releasing lock... [2025-01-05 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:33:05 [end_date_ymd] => 2025-01-05 04:33:05 [RateCDR] => 1 ) [2025-01-05 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:33:05' and `end` < '2025-01-05 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:33:17] Production.INFO: count ==246 [2025-01-05 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:33:05 - End Time 2025-01-05 04:33:05 [2025-01-05 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177801', 'tblTempUsageDetail_20' ) start [2025-01-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177801', 'tblTempUsageDetail_20' ) end [2025-01-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177801', 'tblTempVendorCDR_20' ) start [2025-01-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177801', 'tblTempVendorCDR_20' ) end [2025-01-05 04:33:18] Production.INFO: ProcessCDR(1,14177801,1,1,2) [2025-01-05 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177801', 'tblTempUsageDetail_20' ) start [2025-01-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177801', 'tblTempUsageDetail_20' ) end [2025-01-05 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:33:21] Production.INFO: ==2836== Releasing lock... [2025-01-05 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:34:05 [end_date_ymd] => 2025-01-05 04:34:05 [RateCDR] => 1 ) [2025-01-05 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:34:05' and `end` < '2025-01-05 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:34:20] Production.INFO: count ==246 [2025-01-05 04:34:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:34:05 - End Time 2025-01-05 04:34:05 [2025-01-05 04:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177806', 'tblTempUsageDetail_20' ) start [2025-01-05 04:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177806', 'tblTempUsageDetail_20' ) end [2025-01-05 04:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177806', 'tblTempVendorCDR_20' ) start [2025-01-05 04:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177806', 'tblTempVendorCDR_20' ) end [2025-01-05 04:34:20] Production.INFO: ProcessCDR(1,14177806,1,1,2) [2025-01-05 04:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177806', 'tblTempUsageDetail_20' ) start [2025-01-05 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177806', 'tblTempUsageDetail_20' ) end [2025-01-05 04:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:34:23] Production.INFO: ==2960== Releasing lock... [2025-01-05 04:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:34:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:35:05 [end_date_ymd] => 2025-01-05 04:35:05 [RateCDR] => 1 ) [2025-01-05 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:35:05' and `end` < '2025-01-05 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:35:18] Production.INFO: count ==246 [2025-01-05 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:35:05 - End Time 2025-01-05 04:35:05 [2025-01-05 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177811', 'tblTempUsageDetail_20' ) start [2025-01-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177811', 'tblTempUsageDetail_20' ) end [2025-01-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177811', 'tblTempVendorCDR_20' ) start [2025-01-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177811', 'tblTempVendorCDR_20' ) end [2025-01-05 04:35:18] Production.INFO: ProcessCDR(1,14177811,1,1,2) [2025-01-05 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177811', 'tblTempUsageDetail_20' ) start [2025-01-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177811', 'tblTempUsageDetail_20' ) end [2025-01-05 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:35:21] Production.INFO: ==3045== Releasing lock... [2025-01-05 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:36:05 [end_date_ymd] => 2025-01-05 04:36:05 [RateCDR] => 1 ) [2025-01-05 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:36:05' and `end` < '2025-01-05 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:36:18] Production.INFO: count ==246 [2025-01-05 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:36:05 - End Time 2025-01-05 04:36:05 [2025-01-05 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177816', 'tblTempUsageDetail_20' ) start [2025-01-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177816', 'tblTempUsageDetail_20' ) end [2025-01-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177816', 'tblTempVendorCDR_20' ) start [2025-01-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177816', 'tblTempVendorCDR_20' ) end [2025-01-05 04:36:18] Production.INFO: ProcessCDR(1,14177816,1,1,2) [2025-01-05 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177816', 'tblTempUsageDetail_20' ) start [2025-01-05 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177816', 'tblTempUsageDetail_20' ) end [2025-01-05 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:36:22] Production.INFO: ==3126== Releasing lock... [2025-01-05 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:37:05 [end_date_ymd] => 2025-01-05 04:37:05 [RateCDR] => 1 ) [2025-01-05 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:37:05' and `end` < '2025-01-05 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:37:20] Production.INFO: count ==246 [2025-01-05 04:37:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:37:05 - End Time 2025-01-05 04:37:05 [2025-01-05 04:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177821', 'tblTempUsageDetail_20' ) start [2025-01-05 04:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177821', 'tblTempUsageDetail_20' ) end [2025-01-05 04:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177821', 'tblTempVendorCDR_20' ) start [2025-01-05 04:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177821', 'tblTempVendorCDR_20' ) end [2025-01-05 04:37:20] Production.INFO: ProcessCDR(1,14177821,1,1,2) [2025-01-05 04:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177821', 'tblTempUsageDetail_20' ) start [2025-01-05 04:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177821', 'tblTempUsageDetail_20' ) end [2025-01-05 04:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:37:23] Production.INFO: ==3208== Releasing lock... [2025-01-05 04:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:37:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:38:05 [end_date_ymd] => 2025-01-05 04:38:05 [RateCDR] => 1 ) [2025-01-05 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:38:05' and `end` < '2025-01-05 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:38:18] Production.INFO: count ==244 [2025-01-05 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:38:05 - End Time 2025-01-05 04:38:05 [2025-01-05 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177826', 'tblTempUsageDetail_20' ) start [2025-01-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177826', 'tblTempUsageDetail_20' ) end [2025-01-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177826', 'tblTempVendorCDR_20' ) start [2025-01-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177826', 'tblTempVendorCDR_20' ) end [2025-01-05 04:38:18] Production.INFO: ProcessCDR(1,14177826,1,1,2) [2025-01-05 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177826', 'tblTempUsageDetail_20' ) start [2025-01-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177826', 'tblTempUsageDetail_20' ) end [2025-01-05 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:38:21] Production.INFO: ==3284== Releasing lock... [2025-01-05 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:39:05 [end_date_ymd] => 2025-01-05 04:39:05 [RateCDR] => 1 ) [2025-01-05 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:39:05' and `end` < '2025-01-05 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:39:17] Production.INFO: count ==244 [2025-01-05 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-05 01:39:05 - End Time 2025-01-05 04:39:05 [2025-01-05 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177831', 'tblTempUsageDetail_20' ) start [2025-01-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177831', 'tblTempUsageDetail_20' ) end [2025-01-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177831', 'tblTempVendorCDR_20' ) start [2025-01-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177831', 'tblTempVendorCDR_20' ) end [2025-01-05 04:39:17] Production.INFO: ProcessCDR(1,14177831,1,1,2) [2025-01-05 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177831', 'tblTempUsageDetail_20' ) start [2025-01-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177831', 'tblTempUsageDetail_20' ) end [2025-01-05 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:39:21] Production.INFO: ==3366== Releasing lock... [2025-01-05 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:40:05 [end_date_ymd] => 2025-01-05 04:40:05 [RateCDR] => 1 ) [2025-01-05 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:40:05' and `end` < '2025-01-05 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:40:18] Production.INFO: count ==239 [2025-01-05 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:40:05 - End Time 2025-01-05 04:40:05 [2025-01-05 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177836', 'tblTempUsageDetail_20' ) start [2025-01-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177836', 'tblTempUsageDetail_20' ) end [2025-01-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177836', 'tblTempVendorCDR_20' ) start [2025-01-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177836', 'tblTempVendorCDR_20' ) end [2025-01-05 04:40:18] Production.INFO: ProcessCDR(1,14177836,1,1,2) [2025-01-05 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177836', 'tblTempUsageDetail_20' ) start [2025-01-05 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177836', 'tblTempUsageDetail_20' ) end [2025-01-05 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:40:21] Production.INFO: ==3450== Releasing lock... [2025-01-05 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:41:05 [end_date_ymd] => 2025-01-05 04:41:05 [RateCDR] => 1 ) [2025-01-05 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:41:05' and `end` < '2025-01-05 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:41:18] Production.INFO: count ==215 [2025-01-05 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 01:41:05 - End Time 2025-01-05 04:41:05 [2025-01-05 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177842', 'tblTempUsageDetail_20' ) start [2025-01-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177842', 'tblTempUsageDetail_20' ) end [2025-01-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177842', 'tblTempVendorCDR_20' ) start [2025-01-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177842', 'tblTempVendorCDR_20' ) end [2025-01-05 04:41:18] Production.INFO: ProcessCDR(1,14177842,1,1,2) [2025-01-05 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177842', 'tblTempUsageDetail_20' ) start [2025-01-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177842', 'tblTempUsageDetail_20' ) end [2025-01-05 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:41:21] Production.INFO: ==3535== Releasing lock... [2025-01-05 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:42:05 [end_date_ymd] => 2025-01-05 04:42:05 [RateCDR] => 1 ) [2025-01-05 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:42:05' and `end` < '2025-01-05 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:42:19] Production.INFO: count ==215 [2025-01-05 04:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:42:05 - End Time 2025-01-05 04:42:05 [2025-01-05 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177847', 'tblTempUsageDetail_20' ) start [2025-01-05 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177847', 'tblTempUsageDetail_20' ) end [2025-01-05 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177847', 'tblTempVendorCDR_20' ) start [2025-01-05 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177847', 'tblTempVendorCDR_20' ) end [2025-01-05 04:42:19] Production.INFO: ProcessCDR(1,14177847,1,1,2) [2025-01-05 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177847', 'tblTempUsageDetail_20' ) start [2025-01-05 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177847', 'tblTempUsageDetail_20' ) end [2025-01-05 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:42:22] Production.INFO: ==3613== Releasing lock... [2025-01-05 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:43:05 [end_date_ymd] => 2025-01-05 04:43:05 [RateCDR] => 1 ) [2025-01-05 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:43:05' and `end` < '2025-01-05 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:43:21] Production.INFO: count ==215 [2025-01-05 04:43:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:43:05 - End Time 2025-01-05 04:43:05 [2025-01-05 04:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177852', 'tblTempUsageDetail_20' ) start [2025-01-05 04:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177852', 'tblTempUsageDetail_20' ) end [2025-01-05 04:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177852', 'tblTempVendorCDR_20' ) start [2025-01-05 04:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177852', 'tblTempVendorCDR_20' ) end [2025-01-05 04:43:21] Production.INFO: ProcessCDR(1,14177852,1,1,2) [2025-01-05 04:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177852', 'tblTempUsageDetail_20' ) start [2025-01-05 04:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177852', 'tblTempUsageDetail_20' ) end [2025-01-05 04:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:43:24] Production.INFO: ==3695== Releasing lock... [2025-01-05 04:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:43:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:44:05 [end_date_ymd] => 2025-01-05 04:44:05 [RateCDR] => 1 ) [2025-01-05 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:44:05' and `end` < '2025-01-05 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:44:19] Production.INFO: count ==213 [2025-01-05 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:44:05 - End Time 2025-01-05 04:44:05 [2025-01-05 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177857', 'tblTempUsageDetail_20' ) start [2025-01-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177857', 'tblTempUsageDetail_20' ) end [2025-01-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177857', 'tblTempVendorCDR_20' ) start [2025-01-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177857', 'tblTempVendorCDR_20' ) end [2025-01-05 04:44:19] Production.INFO: ProcessCDR(1,14177857,1,1,2) [2025-01-05 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177857', 'tblTempUsageDetail_20' ) start [2025-01-05 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177857', 'tblTempUsageDetail_20' ) end [2025-01-05 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:44:22] Production.INFO: ==3774== Releasing lock... [2025-01-05 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:45:05 [end_date_ymd] => 2025-01-05 04:45:05 [RateCDR] => 1 ) [2025-01-05 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:45:05' and `end` < '2025-01-05 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:45:21] Production.INFO: count ==213 [2025-01-05 04:45:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:45:05 - End Time 2025-01-05 04:45:05 [2025-01-05 04:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177862', 'tblTempUsageDetail_20' ) start [2025-01-05 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177862', 'tblTempUsageDetail_20' ) end [2025-01-05 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177862', 'tblTempVendorCDR_20' ) start [2025-01-05 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177862', 'tblTempVendorCDR_20' ) end [2025-01-05 04:45:21] Production.INFO: ProcessCDR(1,14177862,1,1,2) [2025-01-05 04:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177862', 'tblTempUsageDetail_20' ) start [2025-01-05 04:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177862', 'tblTempUsageDetail_20' ) end [2025-01-05 04:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:45:24] Production.INFO: ==3855== Releasing lock... [2025-01-05 04:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:45:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:46:05 [end_date_ymd] => 2025-01-05 04:46:05 [RateCDR] => 1 ) [2025-01-05 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:46:05' and `end` < '2025-01-05 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:46:22] Production.INFO: count ==213 [2025-01-05 04:46:22] Production.ERROR: pbx CDR StartTime 2025-01-05 01:46:05 - End Time 2025-01-05 04:46:05 [2025-01-05 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177867', 'tblTempUsageDetail_20' ) start [2025-01-05 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177867', 'tblTempUsageDetail_20' ) end [2025-01-05 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177867', 'tblTempVendorCDR_20' ) start [2025-01-05 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177867', 'tblTempVendorCDR_20' ) end [2025-01-05 04:46:22] Production.INFO: ProcessCDR(1,14177867,1,1,2) [2025-01-05 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177867', 'tblTempUsageDetail_20' ) start [2025-01-05 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177867', 'tblTempUsageDetail_20' ) end [2025-01-05 04:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:46:25] Production.INFO: ==3937== Releasing lock... [2025-01-05 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:46:25] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:47:05 [end_date_ymd] => 2025-01-05 04:47:05 [RateCDR] => 1 ) [2025-01-05 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:47:05' and `end` < '2025-01-05 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:47:21] Production.INFO: count ==213 [2025-01-05 04:47:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:47:05 - End Time 2025-01-05 04:47:05 [2025-01-05 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177872', 'tblTempUsageDetail_20' ) start [2025-01-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177872', 'tblTempUsageDetail_20' ) end [2025-01-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177872', 'tblTempVendorCDR_20' ) start [2025-01-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177872', 'tblTempVendorCDR_20' ) end [2025-01-05 04:47:21] Production.INFO: ProcessCDR(1,14177872,1,1,2) [2025-01-05 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177872', 'tblTempUsageDetail_20' ) start [2025-01-05 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177872', 'tblTempUsageDetail_20' ) end [2025-01-05 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:47:24] Production.INFO: ==4018== Releasing lock... [2025-01-05 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:47:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:48:05 [end_date_ymd] => 2025-01-05 04:48:05 [RateCDR] => 1 ) [2025-01-05 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:48:05' and `end` < '2025-01-05 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:48:21] Production.INFO: count ==212 [2025-01-05 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:48:05 - End Time 2025-01-05 04:48:05 [2025-01-05 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177877', 'tblTempUsageDetail_20' ) start [2025-01-05 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177877', 'tblTempUsageDetail_20' ) end [2025-01-05 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177877', 'tblTempVendorCDR_20' ) start [2025-01-05 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177877', 'tblTempVendorCDR_20' ) end [2025-01-05 04:48:21] Production.INFO: ProcessCDR(1,14177877,1,1,2) [2025-01-05 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177877', 'tblTempUsageDetail_20' ) start [2025-01-05 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177877', 'tblTempUsageDetail_20' ) end [2025-01-05 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:48:24] Production.INFO: ==4107== Releasing lock... [2025-01-05 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:48:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:49:05 [end_date_ymd] => 2025-01-05 04:49:05 [RateCDR] => 1 ) [2025-01-05 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:49:05' and `end` < '2025-01-05 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:49:21] Production.INFO: count ==212 [2025-01-05 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:49:05 - End Time 2025-01-05 04:49:05 [2025-01-05 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177882', 'tblTempUsageDetail_20' ) start [2025-01-05 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177882', 'tblTempUsageDetail_20' ) end [2025-01-05 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177882', 'tblTempVendorCDR_20' ) start [2025-01-05 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177882', 'tblTempVendorCDR_20' ) end [2025-01-05 04:49:21] Production.INFO: ProcessCDR(1,14177882,1,1,2) [2025-01-05 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177882', 'tblTempUsageDetail_20' ) start [2025-01-05 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177882', 'tblTempUsageDetail_20' ) end [2025-01-05 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:49:24] Production.INFO: ==4230== Releasing lock... [2025-01-05 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:49:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:50:06 [end_date_ymd] => 2025-01-05 04:50:06 [RateCDR] => 1 ) [2025-01-05 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:50:06' and `end` < '2025-01-05 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:50:21] Production.INFO: count ==206 [2025-01-05 04:50:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:50:06 - End Time 2025-01-05 04:50:06 [2025-01-05 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177888', 'tblTempUsageDetail_20' ) start [2025-01-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177888', 'tblTempUsageDetail_20' ) end [2025-01-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177888', 'tblTempVendorCDR_20' ) start [2025-01-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177888', 'tblTempVendorCDR_20' ) end [2025-01-05 04:50:21] Production.INFO: ProcessCDR(1,14177888,1,1,2) [2025-01-05 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177888', 'tblTempUsageDetail_20' ) start [2025-01-05 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177888', 'tblTempUsageDetail_20' ) end [2025-01-05 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:50:24] Production.INFO: ==4312== Releasing lock... [2025-01-05 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:50:24] Production.INFO: 29 MB #Memory Used# [2025-01-05 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:51:05 [end_date_ymd] => 2025-01-05 04:51:05 [RateCDR] => 1 ) [2025-01-05 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:51:05' and `end` < '2025-01-05 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:51:20] Production.INFO: count ==200 [2025-01-05 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:51:05 - End Time 2025-01-05 04:51:05 [2025-01-05 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177893', 'tblTempUsageDetail_20' ) start [2025-01-05 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177893', 'tblTempUsageDetail_20' ) end [2025-01-05 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177893', 'tblTempVendorCDR_20' ) start [2025-01-05 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177893', 'tblTempVendorCDR_20' ) end [2025-01-05 04:51:20] Production.INFO: ProcessCDR(1,14177893,1,1,2) [2025-01-05 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177893', 'tblTempUsageDetail_20' ) start [2025-01-05 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177893', 'tblTempUsageDetail_20' ) end [2025-01-05 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:51:23] Production.INFO: ==4391== Releasing lock... [2025-01-05 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:51:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:52:05 [end_date_ymd] => 2025-01-05 04:52:05 [RateCDR] => 1 ) [2025-01-05 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:52:05' and `end` < '2025-01-05 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:52:22] Production.INFO: count ==200 [2025-01-05 04:52:22] Production.ERROR: pbx CDR StartTime 2025-01-05 01:52:05 - End Time 2025-01-05 04:52:05 [2025-01-05 04:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177898', 'tblTempUsageDetail_20' ) start [2025-01-05 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177898', 'tblTempUsageDetail_20' ) end [2025-01-05 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177898', 'tblTempVendorCDR_20' ) start [2025-01-05 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177898', 'tblTempVendorCDR_20' ) end [2025-01-05 04:52:22] Production.INFO: ProcessCDR(1,14177898,1,1,2) [2025-01-05 04:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177898', 'tblTempUsageDetail_20' ) start [2025-01-05 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177898', 'tblTempUsageDetail_20' ) end [2025-01-05 04:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:52:25] Production.INFO: ==4474== Releasing lock... [2025-01-05 04:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:52:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:53:05 [end_date_ymd] => 2025-01-05 04:53:05 [RateCDR] => 1 ) [2025-01-05 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:53:05' and `end` < '2025-01-05 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:53:21] Production.INFO: count ==199 [2025-01-05 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:53:05 - End Time 2025-01-05 04:53:05 [2025-01-05 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177903', 'tblTempUsageDetail_20' ) start [2025-01-05 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177903', 'tblTempUsageDetail_20' ) end [2025-01-05 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177903', 'tblTempVendorCDR_20' ) start [2025-01-05 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177903', 'tblTempVendorCDR_20' ) end [2025-01-05 04:53:21] Production.INFO: ProcessCDR(1,14177903,1,1,2) [2025-01-05 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177903', 'tblTempUsageDetail_20' ) start [2025-01-05 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177903', 'tblTempUsageDetail_20' ) end [2025-01-05 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:53:24] Production.INFO: ==4554== Releasing lock... [2025-01-05 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:53:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:54:05 [end_date_ymd] => 2025-01-05 04:54:05 [RateCDR] => 1 ) [2025-01-05 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:54:05' and `end` < '2025-01-05 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:54:20] Production.INFO: count ==199 [2025-01-05 04:54:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:54:05 - End Time 2025-01-05 04:54:05 [2025-01-05 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177908', 'tblTempUsageDetail_20' ) start [2025-01-05 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177908', 'tblTempUsageDetail_20' ) end [2025-01-05 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177908', 'tblTempVendorCDR_20' ) start [2025-01-05 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177908', 'tblTempVendorCDR_20' ) end [2025-01-05 04:54:20] Production.INFO: ProcessCDR(1,14177908,1,1,2) [2025-01-05 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177908', 'tblTempUsageDetail_20' ) start [2025-01-05 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177908', 'tblTempUsageDetail_20' ) end [2025-01-05 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:54:23] Production.INFO: ==4646== Releasing lock... [2025-01-05 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:55:05 [end_date_ymd] => 2025-01-05 04:55:05 [RateCDR] => 1 ) [2025-01-05 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:55:05' and `end` < '2025-01-05 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:55:22] Production.INFO: count ==201 [2025-01-05 04:55:22] Production.ERROR: pbx CDR StartTime 2025-01-05 01:55:05 - End Time 2025-01-05 04:55:05 [2025-01-05 04:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177913', 'tblTempUsageDetail_20' ) start [2025-01-05 04:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177913', 'tblTempUsageDetail_20' ) end [2025-01-05 04:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177913', 'tblTempVendorCDR_20' ) start [2025-01-05 04:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177913', 'tblTempVendorCDR_20' ) end [2025-01-05 04:55:22] Production.INFO: ProcessCDR(1,14177913,1,1,2) [2025-01-05 04:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177913', 'tblTempUsageDetail_20' ) start [2025-01-05 04:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177913', 'tblTempUsageDetail_20' ) end [2025-01-05 04:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:55:26] Production.INFO: ==4733== Releasing lock... [2025-01-05 04:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:55:26] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:56:04 [end_date_ymd] => 2025-01-05 04:56:04 [RateCDR] => 1 ) [2025-01-05 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:56:04' and `end` < '2025-01-05 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:56:19] Production.INFO: count ==201 [2025-01-05 04:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 01:56:04 - End Time 2025-01-05 04:56:04 [2025-01-05 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177918', 'tblTempUsageDetail_20' ) start [2025-01-05 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177918', 'tblTempUsageDetail_20' ) end [2025-01-05 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177918', 'tblTempVendorCDR_20' ) start [2025-01-05 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177918', 'tblTempVendorCDR_20' ) end [2025-01-05 04:56:19] Production.INFO: ProcessCDR(1,14177918,1,1,2) [2025-01-05 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177918', 'tblTempUsageDetail_20' ) start [2025-01-05 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177918', 'tblTempUsageDetail_20' ) end [2025-01-05 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:56:22] Production.INFO: ==4820== Releasing lock... [2025-01-05 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:57:05 [end_date_ymd] => 2025-01-05 04:57:05 [RateCDR] => 1 ) [2025-01-05 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:57:05' and `end` < '2025-01-05 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:57:22] Production.INFO: count ==201 [2025-01-05 04:57:22] Production.ERROR: pbx CDR StartTime 2025-01-05 01:57:05 - End Time 2025-01-05 04:57:05 [2025-01-05 04:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177923', 'tblTempUsageDetail_20' ) start [2025-01-05 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177923', 'tblTempUsageDetail_20' ) end [2025-01-05 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177923', 'tblTempVendorCDR_20' ) start [2025-01-05 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177923', 'tblTempVendorCDR_20' ) end [2025-01-05 04:57:22] Production.INFO: ProcessCDR(1,14177923,1,1,2) [2025-01-05 04:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177923', 'tblTempUsageDetail_20' ) start [2025-01-05 04:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177923', 'tblTempUsageDetail_20' ) end [2025-01-05 04:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:57:25] Production.INFO: ==4913== Releasing lock... [2025-01-05 04:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:57:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:58:05 [end_date_ymd] => 2025-01-05 04:58:05 [RateCDR] => 1 ) [2025-01-05 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:58:05' and `end` < '2025-01-05 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:58:20] Production.INFO: count ==201 [2025-01-05 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-05 01:58:05 - End Time 2025-01-05 04:58:05 [2025-01-05 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177928', 'tblTempUsageDetail_20' ) start [2025-01-05 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177928', 'tblTempUsageDetail_20' ) end [2025-01-05 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177928', 'tblTempVendorCDR_20' ) start [2025-01-05 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177928', 'tblTempVendorCDR_20' ) end [2025-01-05 04:58:20] Production.INFO: ProcessCDR(1,14177928,1,1,2) [2025-01-05 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177928', 'tblTempUsageDetail_20' ) start [2025-01-05 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177928', 'tblTempUsageDetail_20' ) end [2025-01-05 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:58:23] Production.INFO: ==5008== Releasing lock... [2025-01-05 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 01:59:05 [end_date_ymd] => 2025-01-05 04:59:05 [RateCDR] => 1 ) [2025-01-05 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 01:59:05' and `end` < '2025-01-05 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 04:59:21] Production.INFO: count ==201 [2025-01-05 04:59:21] Production.ERROR: pbx CDR StartTime 2025-01-05 01:59:05 - End Time 2025-01-05 04:59:05 [2025-01-05 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177933', 'tblTempUsageDetail_20' ) start [2025-01-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177933', 'tblTempUsageDetail_20' ) end [2025-01-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177933', 'tblTempVendorCDR_20' ) start [2025-01-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177933', 'tblTempVendorCDR_20' ) end [2025-01-05 04:59:21] Production.INFO: ProcessCDR(1,14177933,1,1,2) [2025-01-05 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177933', 'tblTempUsageDetail_20' ) start [2025-01-05 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177933', 'tblTempUsageDetail_20' ) end [2025-01-05 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 04:59:24] Production.INFO: ==5101== Releasing lock... [2025-01-05 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 04:59:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:00:07 [end_date_ymd] => 2025-01-05 05:00:07 [RateCDR] => 1 ) [2025-01-05 05:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:00:07' and `end` < '2025-01-05 05:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:00:21] Production.INFO: count ==192 [2025-01-05 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-05 02:00:07 - End Time 2025-01-05 05:00:07 [2025-01-05 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177939', 'tblTempUsageDetail_20' ) start [2025-01-05 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177939', 'tblTempUsageDetail_20' ) end [2025-01-05 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177939', 'tblTempVendorCDR_20' ) start [2025-01-05 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177939', 'tblTempVendorCDR_20' ) end [2025-01-05 05:00:21] Production.INFO: ProcessCDR(1,14177939,1,1,2) [2025-01-05 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177939', 'tblTempUsageDetail_20' ) start [2025-01-05 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177939', 'tblTempUsageDetail_20' ) end [2025-01-05 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:00:24] Production.INFO: ==5196== Releasing lock... [2025-01-05 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:01:05 [end_date_ymd] => 2025-01-05 05:01:05 [RateCDR] => 1 ) [2025-01-05 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:01:05' and `end` < '2025-01-05 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:01:20] Production.INFO: count ==182 [2025-01-05 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-05 02:01:05 - End Time 2025-01-05 05:01:05 [2025-01-05 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177944', 'tblTempUsageDetail_20' ) start [2025-01-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177944', 'tblTempUsageDetail_20' ) end [2025-01-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177944', 'tblTempVendorCDR_20' ) start [2025-01-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177944', 'tblTempVendorCDR_20' ) end [2025-01-05 05:01:20] Production.INFO: ProcessCDR(1,14177944,1,1,2) [2025-01-05 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177944', 'tblTempUsageDetail_20' ) start [2025-01-05 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177944', 'tblTempUsageDetail_20' ) end [2025-01-05 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:01:24] Production.INFO: ==5302== Releasing lock... [2025-01-05 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:01:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:02:04 [end_date_ymd] => 2025-01-05 05:02:04 [RateCDR] => 1 ) [2025-01-05 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:02:04' and `end` < '2025-01-05 05:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:02:20] Production.INFO: count ==182 [2025-01-05 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-05 02:02:04 - End Time 2025-01-05 05:02:04 [2025-01-05 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177949', 'tblTempUsageDetail_20' ) start [2025-01-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177949', 'tblTempUsageDetail_20' ) end [2025-01-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177949', 'tblTempVendorCDR_20' ) start [2025-01-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177949', 'tblTempVendorCDR_20' ) end [2025-01-05 05:02:20] Production.INFO: ProcessCDR(1,14177949,1,1,2) [2025-01-05 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177949', 'tblTempUsageDetail_20' ) start [2025-01-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177949', 'tblTempUsageDetail_20' ) end [2025-01-05 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:02:23] Production.INFO: ==5391== Releasing lock... [2025-01-05 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:03:05 [end_date_ymd] => 2025-01-05 05:03:05 [RateCDR] => 1 ) [2025-01-05 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:03:05' and `end` < '2025-01-05 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:03:19] Production.INFO: count ==179 [2025-01-05 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:03:05 - End Time 2025-01-05 05:03:05 [2025-01-05 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177954', 'tblTempUsageDetail_20' ) start [2025-01-05 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177954', 'tblTempUsageDetail_20' ) end [2025-01-05 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177954', 'tblTempVendorCDR_20' ) start [2025-01-05 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177954', 'tblTempVendorCDR_20' ) end [2025-01-05 05:03:19] Production.INFO: ProcessCDR(1,14177954,1,1,2) [2025-01-05 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177954', 'tblTempUsageDetail_20' ) start [2025-01-05 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177954', 'tblTempUsageDetail_20' ) end [2025-01-05 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:03:22] Production.INFO: ==5481== Releasing lock... [2025-01-05 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:04:05 [end_date_ymd] => 2025-01-05 05:04:05 [RateCDR] => 1 ) [2025-01-05 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:04:05' and `end` < '2025-01-05 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:04:19] Production.INFO: count ==179 [2025-01-05 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:04:05 - End Time 2025-01-05 05:04:05 [2025-01-05 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177959', 'tblTempUsageDetail_20' ) start [2025-01-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177959', 'tblTempUsageDetail_20' ) end [2025-01-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177959', 'tblTempVendorCDR_20' ) start [2025-01-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177959', 'tblTempVendorCDR_20' ) end [2025-01-05 05:04:19] Production.INFO: ProcessCDR(1,14177959,1,1,2) [2025-01-05 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177959', 'tblTempUsageDetail_20' ) start [2025-01-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177959', 'tblTempUsageDetail_20' ) end [2025-01-05 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:04:22] Production.INFO: ==5573== Releasing lock... [2025-01-05 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:05:05 [end_date_ymd] => 2025-01-05 05:05:05 [RateCDR] => 1 ) [2025-01-05 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:05:05' and `end` < '2025-01-05 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:05:19] Production.INFO: count ==179 [2025-01-05 05:05:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:05:05 - End Time 2025-01-05 05:05:05 [2025-01-05 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177964', 'tblTempUsageDetail_20' ) start [2025-01-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177964', 'tblTempUsageDetail_20' ) end [2025-01-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177964', 'tblTempVendorCDR_20' ) start [2025-01-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177964', 'tblTempVendorCDR_20' ) end [2025-01-05 05:05:19] Production.INFO: ProcessCDR(1,14177964,1,1,2) [2025-01-05 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177964', 'tblTempUsageDetail_20' ) start [2025-01-05 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177964', 'tblTempUsageDetail_20' ) end [2025-01-05 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:05:22] Production.INFO: ==5702== Releasing lock... [2025-01-05 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:06:05 [end_date_ymd] => 2025-01-05 05:06:05 [RateCDR] => 1 ) [2025-01-05 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:06:05' and `end` < '2025-01-05 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:06:36] Production.INFO: count ==179 [2025-01-05 05:06:36] Production.ERROR: pbx CDR StartTime 2025-01-05 02:06:05 - End Time 2025-01-05 05:06:05 [2025-01-05 05:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177969', 'tblTempUsageDetail_20' ) start [2025-01-05 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177969', 'tblTempUsageDetail_20' ) end [2025-01-05 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177969', 'tblTempVendorCDR_20' ) start [2025-01-05 05:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177969', 'tblTempVendorCDR_20' ) end [2025-01-05 05:06:36] Production.INFO: ProcessCDR(1,14177969,1,1,2) [2025-01-05 05:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177969', 'tblTempUsageDetail_20' ) start [2025-01-05 05:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177969', 'tblTempUsageDetail_20' ) end [2025-01-05 05:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:06:39] Production.INFO: ==5788== Releasing lock... [2025-01-05 05:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:06:39] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:07:05 [end_date_ymd] => 2025-01-05 05:07:05 [RateCDR] => 1 ) [2025-01-05 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:07:05' and `end` < '2025-01-05 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:07:22] Production.INFO: count ==179 [2025-01-05 05:07:22] Production.ERROR: pbx CDR StartTime 2025-01-05 02:07:05 - End Time 2025-01-05 05:07:05 [2025-01-05 05:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177974', 'tblTempUsageDetail_20' ) start [2025-01-05 05:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177974', 'tblTempUsageDetail_20' ) end [2025-01-05 05:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177974', 'tblTempVendorCDR_20' ) start [2025-01-05 05:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177974', 'tblTempVendorCDR_20' ) end [2025-01-05 05:07:22] Production.INFO: ProcessCDR(1,14177974,1,1,2) [2025-01-05 05:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177974', 'tblTempUsageDetail_20' ) start [2025-01-05 05:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177974', 'tblTempUsageDetail_20' ) end [2025-01-05 05:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:07:25] Production.INFO: ==5877== Releasing lock... [2025-01-05 05:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:07:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:08:05 [end_date_ymd] => 2025-01-05 05:08:05 [RateCDR] => 1 ) [2025-01-05 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:08:05' and `end` < '2025-01-05 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:08:19] Production.INFO: count ==177 [2025-01-05 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:08:05 - End Time 2025-01-05 05:08:05 [2025-01-05 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177979', 'tblTempUsageDetail_20' ) start [2025-01-05 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177979', 'tblTempUsageDetail_20' ) end [2025-01-05 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177979', 'tblTempVendorCDR_20' ) start [2025-01-05 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177979', 'tblTempVendorCDR_20' ) end [2025-01-05 05:08:19] Production.INFO: ProcessCDR(1,14177979,1,1,2) [2025-01-05 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177979', 'tblTempUsageDetail_20' ) start [2025-01-05 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177979', 'tblTempUsageDetail_20' ) end [2025-01-05 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:08:22] Production.INFO: ==5968== Releasing lock... [2025-01-05 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:09:06 [end_date_ymd] => 2025-01-05 05:09:06 [RateCDR] => 1 ) [2025-01-05 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:09:06' and `end` < '2025-01-05 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:09:18] Production.INFO: count ==176 [2025-01-05 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:09:06 - End Time 2025-01-05 05:09:06 [2025-01-05 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177984', 'tblTempUsageDetail_20' ) start [2025-01-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177984', 'tblTempUsageDetail_20' ) end [2025-01-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177984', 'tblTempVendorCDR_20' ) start [2025-01-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177984', 'tblTempVendorCDR_20' ) end [2025-01-05 05:09:18] Production.INFO: ProcessCDR(1,14177984,1,1,2) [2025-01-05 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177984', 'tblTempUsageDetail_20' ) start [2025-01-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177984', 'tblTempUsageDetail_20' ) end [2025-01-05 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:09:22] Production.INFO: ==6057== Releasing lock... [2025-01-05 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:10:06 [end_date_ymd] => 2025-01-05 05:10:06 [RateCDR] => 1 ) [2025-01-05 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:10:06' and `end` < '2025-01-05 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:10:19] Production.INFO: count ==168 [2025-01-05 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:10:06 - End Time 2025-01-05 05:10:06 [2025-01-05 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177990', 'tblTempUsageDetail_20' ) start [2025-01-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177990', 'tblTempUsageDetail_20' ) end [2025-01-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177990', 'tblTempVendorCDR_20' ) start [2025-01-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177990', 'tblTempVendorCDR_20' ) end [2025-01-05 05:10:19] Production.INFO: ProcessCDR(1,14177990,1,1,2) [2025-01-05 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177990', 'tblTempUsageDetail_20' ) start [2025-01-05 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177990', 'tblTempUsageDetail_20' ) end [2025-01-05 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:10:23] Production.INFO: ==6153== Releasing lock... [2025-01-05 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:11:05 [end_date_ymd] => 2025-01-05 05:11:05 [RateCDR] => 1 ) [2025-01-05 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:11:05' and `end` < '2025-01-05 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:11:19] Production.INFO: count ==160 [2025-01-05 05:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:11:05 - End Time 2025-01-05 05:11:05 [2025-01-05 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177995', 'tblTempUsageDetail_20' ) start [2025-01-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14177995', 'tblTempUsageDetail_20' ) end [2025-01-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177995', 'tblTempVendorCDR_20' ) start [2025-01-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14177995', 'tblTempVendorCDR_20' ) end [2025-01-05 05:11:19] Production.INFO: ProcessCDR(1,14177995,1,1,2) [2025-01-05 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14177995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14177995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14177995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14177995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177995', 'tblTempUsageDetail_20' ) start [2025-01-05 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14177995', 'tblTempUsageDetail_20' ) end [2025-01-05 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:11:22] Production.INFO: ==6246== Releasing lock... [2025-01-05 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:12:05 [end_date_ymd] => 2025-01-05 05:12:05 [RateCDR] => 1 ) [2025-01-05 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:12:05' and `end` < '2025-01-05 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:12:18] Production.INFO: count ==160 [2025-01-05 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:12:05 - End Time 2025-01-05 05:12:05 [2025-01-05 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178000', 'tblTempUsageDetail_20' ) start [2025-01-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178000', 'tblTempUsageDetail_20' ) end [2025-01-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178000', 'tblTempVendorCDR_20' ) start [2025-01-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178000', 'tblTempVendorCDR_20' ) end [2025-01-05 05:12:18] Production.INFO: ProcessCDR(1,14178000,1,1,2) [2025-01-05 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178000', 'tblTempUsageDetail_20' ) start [2025-01-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178000', 'tblTempUsageDetail_20' ) end [2025-01-05 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:12:21] Production.INFO: ==6333== Releasing lock... [2025-01-05 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:13:04 [end_date_ymd] => 2025-01-05 05:13:04 [RateCDR] => 1 ) [2025-01-05 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:13:04' and `end` < '2025-01-05 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:13:17] Production.INFO: count ==160 [2025-01-05 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:13:04 - End Time 2025-01-05 05:13:04 [2025-01-05 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178005', 'tblTempUsageDetail_20' ) start [2025-01-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178005', 'tblTempUsageDetail_20' ) end [2025-01-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178005', 'tblTempVendorCDR_20' ) start [2025-01-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178005', 'tblTempVendorCDR_20' ) end [2025-01-05 05:13:17] Production.INFO: ProcessCDR(1,14178005,1,1,2) [2025-01-05 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178005', 'tblTempUsageDetail_20' ) start [2025-01-05 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178005', 'tblTempUsageDetail_20' ) end [2025-01-05 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:13:20] Production.INFO: ==6426== Releasing lock... [2025-01-05 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:13:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:14:06 [end_date_ymd] => 2025-01-05 05:14:06 [RateCDR] => 1 ) [2025-01-05 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:14:06' and `end` < '2025-01-05 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:14:19] Production.INFO: count ==160 [2025-01-05 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:14:06 - End Time 2025-01-05 05:14:06 [2025-01-05 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178010', 'tblTempUsageDetail_20' ) start [2025-01-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178010', 'tblTempUsageDetail_20' ) end [2025-01-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178010', 'tblTempVendorCDR_20' ) start [2025-01-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178010', 'tblTempVendorCDR_20' ) end [2025-01-05 05:14:19] Production.INFO: ProcessCDR(1,14178010,1,1,2) [2025-01-05 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178010', 'tblTempUsageDetail_20' ) start [2025-01-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178010', 'tblTempUsageDetail_20' ) end [2025-01-05 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:14:22] Production.INFO: ==6520== Releasing lock... [2025-01-05 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:15:05 [end_date_ymd] => 2025-01-05 05:15:05 [RateCDR] => 1 ) [2025-01-05 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:15:05' and `end` < '2025-01-05 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:15:18] Production.INFO: count ==160 [2025-01-05 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:15:05 - End Time 2025-01-05 05:15:05 [2025-01-05 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178015', 'tblTempUsageDetail_20' ) start [2025-01-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178015', 'tblTempUsageDetail_20' ) end [2025-01-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178015', 'tblTempVendorCDR_20' ) start [2025-01-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178015', 'tblTempVendorCDR_20' ) end [2025-01-05 05:15:18] Production.INFO: ProcessCDR(1,14178015,1,1,2) [2025-01-05 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178015', 'tblTempUsageDetail_20' ) start [2025-01-05 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178015', 'tblTempUsageDetail_20' ) end [2025-01-05 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:15:22] Production.INFO: ==6609== Releasing lock... [2025-01-05 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:16:05 [end_date_ymd] => 2025-01-05 05:16:05 [RateCDR] => 1 ) [2025-01-05 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:16:05' and `end` < '2025-01-05 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:16:19] Production.INFO: count ==160 [2025-01-05 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:16:05 - End Time 2025-01-05 05:16:05 [2025-01-05 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178020', 'tblTempUsageDetail_20' ) start [2025-01-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178020', 'tblTempUsageDetail_20' ) end [2025-01-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178020', 'tblTempVendorCDR_20' ) start [2025-01-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178020', 'tblTempVendorCDR_20' ) end [2025-01-05 05:16:19] Production.INFO: ProcessCDR(1,14178020,1,1,2) [2025-01-05 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178020', 'tblTempUsageDetail_20' ) start [2025-01-05 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178020', 'tblTempUsageDetail_20' ) end [2025-01-05 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:16:22] Production.INFO: ==6693== Releasing lock... [2025-01-05 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:17:05 [end_date_ymd] => 2025-01-05 05:17:05 [RateCDR] => 1 ) [2025-01-05 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:17:05' and `end` < '2025-01-05 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:17:18] Production.INFO: count ==160 [2025-01-05 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:17:05 - End Time 2025-01-05 05:17:05 [2025-01-05 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178025', 'tblTempUsageDetail_20' ) start [2025-01-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178025', 'tblTempUsageDetail_20' ) end [2025-01-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178025', 'tblTempVendorCDR_20' ) start [2025-01-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178025', 'tblTempVendorCDR_20' ) end [2025-01-05 05:17:18] Production.INFO: ProcessCDR(1,14178025,1,1,2) [2025-01-05 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178025', 'tblTempUsageDetail_20' ) start [2025-01-05 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178025', 'tblTempUsageDetail_20' ) end [2025-01-05 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:17:22] Production.INFO: ==6788== Releasing lock... [2025-01-05 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:18:05 [end_date_ymd] => 2025-01-05 05:18:05 [RateCDR] => 1 ) [2025-01-05 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:18:05' and `end` < '2025-01-05 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:18:17] Production.INFO: count ==160 [2025-01-05 05:18:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:18:05 - End Time 2025-01-05 05:18:05 [2025-01-05 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178030', 'tblTempUsageDetail_20' ) start [2025-01-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178030', 'tblTempUsageDetail_20' ) end [2025-01-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178030', 'tblTempVendorCDR_20' ) start [2025-01-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178030', 'tblTempVendorCDR_20' ) end [2025-01-05 05:18:17] Production.INFO: ProcessCDR(1,14178030,1,1,2) [2025-01-05 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178030', 'tblTempUsageDetail_20' ) start [2025-01-05 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178030', 'tblTempUsageDetail_20' ) end [2025-01-05 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:18:20] Production.INFO: ==6879== Releasing lock... [2025-01-05 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:19:04 [end_date_ymd] => 2025-01-05 05:19:04 [RateCDR] => 1 ) [2025-01-05 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:19:04' and `end` < '2025-01-05 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:19:18] Production.INFO: count ==159 [2025-01-05 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:19:04 - End Time 2025-01-05 05:19:04 [2025-01-05 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178035', 'tblTempUsageDetail_20' ) start [2025-01-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178035', 'tblTempUsageDetail_20' ) end [2025-01-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178035', 'tblTempVendorCDR_20' ) start [2025-01-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178035', 'tblTempVendorCDR_20' ) end [2025-01-05 05:19:18] Production.INFO: ProcessCDR(1,14178035,1,1,2) [2025-01-05 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178035', 'tblTempUsageDetail_20' ) start [2025-01-05 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178035', 'tblTempUsageDetail_20' ) end [2025-01-05 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:19:21] Production.INFO: ==6968== Releasing lock... [2025-01-05 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:20:05 [end_date_ymd] => 2025-01-05 05:20:05 [RateCDR] => 1 ) [2025-01-05 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:20:05' and `end` < '2025-01-05 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:20:17] Production.INFO: count ==149 [2025-01-05 05:20:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:20:05 - End Time 2025-01-05 05:20:05 [2025-01-05 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178037', 'tblTempUsageDetail_20' ) start [2025-01-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178037', 'tblTempUsageDetail_20' ) end [2025-01-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178037', 'tblTempVendorCDR_20' ) start [2025-01-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178037', 'tblTempVendorCDR_20' ) end [2025-01-05 05:20:17] Production.INFO: ProcessCDR(1,14178037,1,1,2) [2025-01-05 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178037', 'tblTempUsageDetail_20' ) start [2025-01-05 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178037', 'tblTempUsageDetail_20' ) end [2025-01-05 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:20:21] Production.INFO: ==7096== Releasing lock... [2025-01-05 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:21:05 [end_date_ymd] => 2025-01-05 05:21:05 [RateCDR] => 1 ) [2025-01-05 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:21:05' and `end` < '2025-01-05 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:21:18] Production.INFO: count ==143 [2025-01-05 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:21:05 - End Time 2025-01-05 05:21:05 [2025-01-05 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178046', 'tblTempUsageDetail_20' ) start [2025-01-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178046', 'tblTempUsageDetail_20' ) end [2025-01-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178046', 'tblTempVendorCDR_20' ) start [2025-01-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178046', 'tblTempVendorCDR_20' ) end [2025-01-05 05:21:18] Production.INFO: ProcessCDR(1,14178046,1,1,2) [2025-01-05 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178046', 'tblTempUsageDetail_20' ) start [2025-01-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178046', 'tblTempUsageDetail_20' ) end [2025-01-05 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:21:21] Production.INFO: ==7191== Releasing lock... [2025-01-05 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:22:05 [end_date_ymd] => 2025-01-05 05:22:05 [RateCDR] => 1 ) [2025-01-05 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:22:05' and `end` < '2025-01-05 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:22:18] Production.INFO: count ==143 [2025-01-05 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:22:05 - End Time 2025-01-05 05:22:05 [2025-01-05 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178051', 'tblTempUsageDetail_20' ) start [2025-01-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178051', 'tblTempUsageDetail_20' ) end [2025-01-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178051', 'tblTempVendorCDR_20' ) start [2025-01-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178051', 'tblTempVendorCDR_20' ) end [2025-01-05 05:22:18] Production.INFO: ProcessCDR(1,14178051,1,1,2) [2025-01-05 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178051', 'tblTempUsageDetail_20' ) start [2025-01-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178051', 'tblTempUsageDetail_20' ) end [2025-01-05 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:22:21] Production.INFO: ==7281== Releasing lock... [2025-01-05 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:23:05 [end_date_ymd] => 2025-01-05 05:23:05 [RateCDR] => 1 ) [2025-01-05 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:23:05' and `end` < '2025-01-05 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:23:19] Production.INFO: count ==143 [2025-01-05 05:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:23:05 - End Time 2025-01-05 05:23:05 [2025-01-05 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178056', 'tblTempUsageDetail_20' ) start [2025-01-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178056', 'tblTempUsageDetail_20' ) end [2025-01-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178056', 'tblTempVendorCDR_20' ) start [2025-01-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178056', 'tblTempVendorCDR_20' ) end [2025-01-05 05:23:19] Production.INFO: ProcessCDR(1,14178056,1,1,2) [2025-01-05 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178056', 'tblTempUsageDetail_20' ) start [2025-01-05 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178056', 'tblTempUsageDetail_20' ) end [2025-01-05 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:23:22] Production.INFO: ==7366== Releasing lock... [2025-01-05 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:24:04 [end_date_ymd] => 2025-01-05 05:24:04 [RateCDR] => 1 ) [2025-01-05 05:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:24:04' and `end` < '2025-01-05 05:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:24:17] Production.INFO: count ==143 [2025-01-05 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:24:04 - End Time 2025-01-05 05:24:04 [2025-01-05 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178061', 'tblTempUsageDetail_20' ) start [2025-01-05 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178061', 'tblTempUsageDetail_20' ) end [2025-01-05 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178061', 'tblTempVendorCDR_20' ) start [2025-01-05 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178061', 'tblTempVendorCDR_20' ) end [2025-01-05 05:24:17] Production.INFO: ProcessCDR(1,14178061,1,1,2) [2025-01-05 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178061', 'tblTempUsageDetail_20' ) start [2025-01-05 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178061', 'tblTempUsageDetail_20' ) end [2025-01-05 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:24:20] Production.INFO: ==7453== Releasing lock... [2025-01-05 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:25:05 [end_date_ymd] => 2025-01-05 05:25:05 [RateCDR] => 1 ) [2025-01-05 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:25:05' and `end` < '2025-01-05 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:25:17] Production.INFO: count ==143 [2025-01-05 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:25:05 - End Time 2025-01-05 05:25:05 [2025-01-05 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178066', 'tblTempUsageDetail_20' ) start [2025-01-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178066', 'tblTempUsageDetail_20' ) end [2025-01-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178066', 'tblTempVendorCDR_20' ) start [2025-01-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178066', 'tblTempVendorCDR_20' ) end [2025-01-05 05:25:17] Production.INFO: ProcessCDR(1,14178066,1,1,2) [2025-01-05 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178066', 'tblTempUsageDetail_20' ) start [2025-01-05 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178066', 'tblTempUsageDetail_20' ) end [2025-01-05 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:25:20] Production.INFO: ==7541== Releasing lock... [2025-01-05 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:26:05 [end_date_ymd] => 2025-01-05 05:26:05 [RateCDR] => 1 ) [2025-01-05 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:26:05' and `end` < '2025-01-05 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:26:19] Production.INFO: count ==143 [2025-01-05 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:26:05 - End Time 2025-01-05 05:26:05 [2025-01-05 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178071', 'tblTempUsageDetail_20' ) start [2025-01-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178071', 'tblTempUsageDetail_20' ) end [2025-01-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178071', 'tblTempVendorCDR_20' ) start [2025-01-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178071', 'tblTempVendorCDR_20' ) end [2025-01-05 05:26:19] Production.INFO: ProcessCDR(1,14178071,1,1,2) [2025-01-05 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178071', 'tblTempUsageDetail_20' ) start [2025-01-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178071', 'tblTempUsageDetail_20' ) end [2025-01-05 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:26:22] Production.INFO: ==7626== Releasing lock... [2025-01-05 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:27:05 [end_date_ymd] => 2025-01-05 05:27:05 [RateCDR] => 1 ) [2025-01-05 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:27:05' and `end` < '2025-01-05 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:27:18] Production.INFO: count ==143 [2025-01-05 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:27:05 - End Time 2025-01-05 05:27:05 [2025-01-05 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178076', 'tblTempUsageDetail_20' ) start [2025-01-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178076', 'tblTempUsageDetail_20' ) end [2025-01-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178076', 'tblTempVendorCDR_20' ) start [2025-01-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178076', 'tblTempVendorCDR_20' ) end [2025-01-05 05:27:18] Production.INFO: ProcessCDR(1,14178076,1,1,2) [2025-01-05 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178076', 'tblTempUsageDetail_20' ) start [2025-01-05 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178076', 'tblTempUsageDetail_20' ) end [2025-01-05 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:27:21] Production.INFO: ==7712== Releasing lock... [2025-01-05 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:28:05 [end_date_ymd] => 2025-01-05 05:28:05 [RateCDR] => 1 ) [2025-01-05 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:28:05' and `end` < '2025-01-05 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:28:18] Production.INFO: count ==143 [2025-01-05 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:28:05 - End Time 2025-01-05 05:28:05 [2025-01-05 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178081', 'tblTempUsageDetail_20' ) start [2025-01-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178081', 'tblTempUsageDetail_20' ) end [2025-01-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178081', 'tblTempVendorCDR_20' ) start [2025-01-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178081', 'tblTempVendorCDR_20' ) end [2025-01-05 05:28:18] Production.INFO: ProcessCDR(1,14178081,1,1,2) [2025-01-05 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178081', 'tblTempUsageDetail_20' ) start [2025-01-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178081', 'tblTempUsageDetail_20' ) end [2025-01-05 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:28:21] Production.INFO: ==7802== Releasing lock... [2025-01-05 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:29:04 [end_date_ymd] => 2025-01-05 05:29:04 [RateCDR] => 1 ) [2025-01-05 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:29:04' and `end` < '2025-01-05 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:29:17] Production.INFO: count ==143 [2025-01-05 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:29:04 - End Time 2025-01-05 05:29:04 [2025-01-05 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178086', 'tblTempUsageDetail_20' ) start [2025-01-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178086', 'tblTempUsageDetail_20' ) end [2025-01-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178086', 'tblTempVendorCDR_20' ) start [2025-01-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178086', 'tblTempVendorCDR_20' ) end [2025-01-05 05:29:17] Production.INFO: ProcessCDR(1,14178086,1,1,2) [2025-01-05 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178086', 'tblTempUsageDetail_20' ) start [2025-01-05 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178086', 'tblTempUsageDetail_20' ) end [2025-01-05 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:29:20] Production.INFO: ==7885== Releasing lock... [2025-01-05 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:30:05 [end_date_ymd] => 2025-01-05 05:30:05 [RateCDR] => 1 ) [2025-01-05 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:30:05' and `end` < '2025-01-05 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:30:18] Production.INFO: count ==137 [2025-01-05 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:30:05 - End Time 2025-01-05 05:30:05 [2025-01-05 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178092', 'tblTempUsageDetail_20' ) start [2025-01-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178092', 'tblTempUsageDetail_20' ) end [2025-01-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178092', 'tblTempVendorCDR_20' ) start [2025-01-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178092', 'tblTempVendorCDR_20' ) end [2025-01-05 05:30:18] Production.INFO: ProcessCDR(1,14178092,1,1,2) [2025-01-05 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178092', 'tblTempUsageDetail_20' ) start [2025-01-05 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178092', 'tblTempUsageDetail_20' ) end [2025-01-05 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:30:21] Production.INFO: ==7968== Releasing lock... [2025-01-05 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:31:04 [end_date_ymd] => 2025-01-05 05:31:04 [RateCDR] => 1 ) [2025-01-05 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:31:04' and `end` < '2025-01-05 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:31:18] Production.INFO: count ==129 [2025-01-05 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:31:04 - End Time 2025-01-05 05:31:04 [2025-01-05 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178097', 'tblTempUsageDetail_20' ) start [2025-01-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178097', 'tblTempUsageDetail_20' ) end [2025-01-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178097', 'tblTempVendorCDR_20' ) start [2025-01-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178097', 'tblTempVendorCDR_20' ) end [2025-01-05 05:31:18] Production.INFO: ProcessCDR(1,14178097,1,1,2) [2025-01-05 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178097', 'tblTempUsageDetail_20' ) start [2025-01-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178097', 'tblTempUsageDetail_20' ) end [2025-01-05 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:31:21] Production.INFO: ==8052== Releasing lock... [2025-01-05 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:32:05 [end_date_ymd] => 2025-01-05 05:32:05 [RateCDR] => 1 ) [2025-01-05 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:32:05' and `end` < '2025-01-05 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:32:19] Production.INFO: count ==129 [2025-01-05 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:32:05 - End Time 2025-01-05 05:32:05 [2025-01-05 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178102', 'tblTempUsageDetail_20' ) start [2025-01-05 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178102', 'tblTempUsageDetail_20' ) end [2025-01-05 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178102', 'tblTempVendorCDR_20' ) start [2025-01-05 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178102', 'tblTempVendorCDR_20' ) end [2025-01-05 05:32:19] Production.INFO: ProcessCDR(1,14178102,1,1,2) [2025-01-05 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178102', 'tblTempUsageDetail_20' ) start [2025-01-05 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178102', 'tblTempUsageDetail_20' ) end [2025-01-05 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:32:22] Production.INFO: ==8134== Releasing lock... [2025-01-05 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:33:04 [end_date_ymd] => 2025-01-05 05:33:04 [RateCDR] => 1 ) [2025-01-05 05:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:33:04' and `end` < '2025-01-05 05:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:33:17] Production.INFO: count ==128 [2025-01-05 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:33:04 - End Time 2025-01-05 05:33:04 [2025-01-05 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178107', 'tblTempUsageDetail_20' ) start [2025-01-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178107', 'tblTempUsageDetail_20' ) end [2025-01-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178107', 'tblTempVendorCDR_20' ) start [2025-01-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178107', 'tblTempVendorCDR_20' ) end [2025-01-05 05:33:17] Production.INFO: ProcessCDR(1,14178107,1,1,2) [2025-01-05 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178107', 'tblTempUsageDetail_20' ) start [2025-01-05 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178107', 'tblTempUsageDetail_20' ) end [2025-01-05 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:33:21] Production.INFO: ==8222== Releasing lock... [2025-01-05 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:34:05 [end_date_ymd] => 2025-01-05 05:34:05 [RateCDR] => 1 ) [2025-01-05 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:34:05' and `end` < '2025-01-05 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:34:18] Production.INFO: count ==128 [2025-01-05 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:34:05 - End Time 2025-01-05 05:34:05 [2025-01-05 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178112', 'tblTempUsageDetail_20' ) start [2025-01-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178112', 'tblTempUsageDetail_20' ) end [2025-01-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178112', 'tblTempVendorCDR_20' ) start [2025-01-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178112', 'tblTempVendorCDR_20' ) end [2025-01-05 05:34:18] Production.INFO: ProcessCDR(1,14178112,1,1,2) [2025-01-05 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178112', 'tblTempUsageDetail_20' ) start [2025-01-05 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178112', 'tblTempUsageDetail_20' ) end [2025-01-05 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:34:21] Production.INFO: ==8302== Releasing lock... [2025-01-05 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:35:05 [end_date_ymd] => 2025-01-05 05:35:05 [RateCDR] => 1 ) [2025-01-05 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:35:05' and `end` < '2025-01-05 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:35:19] Production.INFO: count ==128 [2025-01-05 05:35:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:35:05 - End Time 2025-01-05 05:35:05 [2025-01-05 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178117', 'tblTempUsageDetail_20' ) start [2025-01-05 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178117', 'tblTempUsageDetail_20' ) end [2025-01-05 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178117', 'tblTempVendorCDR_20' ) start [2025-01-05 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178117', 'tblTempVendorCDR_20' ) end [2025-01-05 05:35:19] Production.INFO: ProcessCDR(1,14178117,1,1,2) [2025-01-05 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178117', 'tblTempUsageDetail_20' ) start [2025-01-05 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178117', 'tblTempUsageDetail_20' ) end [2025-01-05 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:35:22] Production.INFO: ==8379== Releasing lock... [2025-01-05 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:36:05 [end_date_ymd] => 2025-01-05 05:36:05 [RateCDR] => 1 ) [2025-01-05 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:36:05' and `end` < '2025-01-05 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:36:18] Production.INFO: count ==127 [2025-01-05 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:36:05 - End Time 2025-01-05 05:36:05 [2025-01-05 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178122', 'tblTempUsageDetail_20' ) start [2025-01-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178122', 'tblTempUsageDetail_20' ) end [2025-01-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178122', 'tblTempVendorCDR_20' ) start [2025-01-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178122', 'tblTempVendorCDR_20' ) end [2025-01-05 05:36:18] Production.INFO: ProcessCDR(1,14178122,1,1,2) [2025-01-05 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178122', 'tblTempUsageDetail_20' ) start [2025-01-05 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178122', 'tblTempUsageDetail_20' ) end [2025-01-05 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:36:22] Production.INFO: ==8497== Releasing lock... [2025-01-05 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:37:05 [end_date_ymd] => 2025-01-05 05:37:05 [RateCDR] => 1 ) [2025-01-05 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:37:05' and `end` < '2025-01-05 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:37:17] Production.INFO: count ==127 [2025-01-05 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:37:05 - End Time 2025-01-05 05:37:05 [2025-01-05 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178127', 'tblTempUsageDetail_20' ) start [2025-01-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178127', 'tblTempUsageDetail_20' ) end [2025-01-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178127', 'tblTempVendorCDR_20' ) start [2025-01-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178127', 'tblTempVendorCDR_20' ) end [2025-01-05 05:37:17] Production.INFO: ProcessCDR(1,14178127,1,1,2) [2025-01-05 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178127', 'tblTempUsageDetail_20' ) start [2025-01-05 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178127', 'tblTempUsageDetail_20' ) end [2025-01-05 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:37:21] Production.INFO: ==8573== Releasing lock... [2025-01-05 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:38:05 [end_date_ymd] => 2025-01-05 05:38:05 [RateCDR] => 1 ) [2025-01-05 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:38:05' and `end` < '2025-01-05 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:38:18] Production.INFO: count ==127 [2025-01-05 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:38:05 - End Time 2025-01-05 05:38:05 [2025-01-05 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178132', 'tblTempUsageDetail_20' ) start [2025-01-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178132', 'tblTempUsageDetail_20' ) end [2025-01-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178132', 'tblTempVendorCDR_20' ) start [2025-01-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178132', 'tblTempVendorCDR_20' ) end [2025-01-05 05:38:18] Production.INFO: ProcessCDR(1,14178132,1,1,2) [2025-01-05 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178132', 'tblTempUsageDetail_20' ) start [2025-01-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178132', 'tblTempUsageDetail_20' ) end [2025-01-05 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:38:21] Production.INFO: ==8653== Releasing lock... [2025-01-05 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:39:06 [end_date_ymd] => 2025-01-05 05:39:06 [RateCDR] => 1 ) [2025-01-05 05:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:39:06' and `end` < '2025-01-05 05:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:39:20] Production.INFO: count ==127 [2025-01-05 05:39:20] Production.ERROR: pbx CDR StartTime 2025-01-05 02:39:06 - End Time 2025-01-05 05:39:06 [2025-01-05 05:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178137', 'tblTempUsageDetail_20' ) start [2025-01-05 05:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178137', 'tblTempUsageDetail_20' ) end [2025-01-05 05:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178137', 'tblTempVendorCDR_20' ) start [2025-01-05 05:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178137', 'tblTempVendorCDR_20' ) end [2025-01-05 05:39:20] Production.INFO: ProcessCDR(1,14178137,1,1,2) [2025-01-05 05:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178137', 'tblTempUsageDetail_20' ) start [2025-01-05 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178137', 'tblTempUsageDetail_20' ) end [2025-01-05 05:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:39:23] Production.INFO: ==8730== Releasing lock... [2025-01-05 05:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:39:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:40:06 [end_date_ymd] => 2025-01-05 05:40:06 [RateCDR] => 1 ) [2025-01-05 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:40:06' and `end` < '2025-01-05 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:40:19] Production.INFO: count ==116 [2025-01-05 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:40:06 - End Time 2025-01-05 05:40:06 [2025-01-05 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178143', 'tblTempUsageDetail_20' ) start [2025-01-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178143', 'tblTempUsageDetail_20' ) end [2025-01-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178143', 'tblTempVendorCDR_20' ) start [2025-01-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178143', 'tblTempVendorCDR_20' ) end [2025-01-05 05:40:19] Production.INFO: ProcessCDR(1,14178143,1,1,2) [2025-01-05 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178143', 'tblTempUsageDetail_20' ) start [2025-01-05 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178143', 'tblTempUsageDetail_20' ) end [2025-01-05 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:40:23] Production.INFO: ==8809== Releasing lock... [2025-01-05 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:41:04 [end_date_ymd] => 2025-01-05 05:41:04 [RateCDR] => 1 ) [2025-01-05 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:41:04' and `end` < '2025-01-05 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:41:17] Production.INFO: count ==110 [2025-01-05 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:41:04 - End Time 2025-01-05 05:41:04 [2025-01-05 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178148', 'tblTempUsageDetail_20' ) start [2025-01-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178148', 'tblTempUsageDetail_20' ) end [2025-01-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178148', 'tblTempVendorCDR_20' ) start [2025-01-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178148', 'tblTempVendorCDR_20' ) end [2025-01-05 05:41:17] Production.INFO: ProcessCDR(1,14178148,1,1,2) [2025-01-05 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178148', 'tblTempUsageDetail_20' ) start [2025-01-05 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178148', 'tblTempUsageDetail_20' ) end [2025-01-05 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:41:20] Production.INFO: ==8886== Releasing lock... [2025-01-05 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:42:05 [end_date_ymd] => 2025-01-05 05:42:05 [RateCDR] => 1 ) [2025-01-05 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:42:05' and `end` < '2025-01-05 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:42:18] Production.INFO: count ==109 [2025-01-05 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:42:05 - End Time 2025-01-05 05:42:05 [2025-01-05 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178153', 'tblTempUsageDetail_20' ) start [2025-01-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178153', 'tblTempUsageDetail_20' ) end [2025-01-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178153', 'tblTempVendorCDR_20' ) start [2025-01-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178153', 'tblTempVendorCDR_20' ) end [2025-01-05 05:42:18] Production.INFO: ProcessCDR(1,14178153,1,1,2) [2025-01-05 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178153', 'tblTempUsageDetail_20' ) start [2025-01-05 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178153', 'tblTempUsageDetail_20' ) end [2025-01-05 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:42:22] Production.INFO: ==8967== Releasing lock... [2025-01-05 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:43:05 [end_date_ymd] => 2025-01-05 05:43:05 [RateCDR] => 1 ) [2025-01-05 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:43:05' and `end` < '2025-01-05 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:43:19] Production.INFO: count ==109 [2025-01-05 05:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:43:05 - End Time 2025-01-05 05:43:05 [2025-01-05 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178158', 'tblTempUsageDetail_20' ) start [2025-01-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178158', 'tblTempUsageDetail_20' ) end [2025-01-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178158', 'tblTempVendorCDR_20' ) start [2025-01-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178158', 'tblTempVendorCDR_20' ) end [2025-01-05 05:43:19] Production.INFO: ProcessCDR(1,14178158,1,1,2) [2025-01-05 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178158', 'tblTempUsageDetail_20' ) start [2025-01-05 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178158', 'tblTempUsageDetail_20' ) end [2025-01-05 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:43:22] Production.INFO: ==9044== Releasing lock... [2025-01-05 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:44:05 [end_date_ymd] => 2025-01-05 05:44:05 [RateCDR] => 1 ) [2025-01-05 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:44:05' and `end` < '2025-01-05 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:44:18] Production.INFO: count ==109 [2025-01-05 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:44:05 - End Time 2025-01-05 05:44:05 [2025-01-05 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178163', 'tblTempUsageDetail_20' ) start [2025-01-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178163', 'tblTempUsageDetail_20' ) end [2025-01-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178163', 'tblTempVendorCDR_20' ) start [2025-01-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178163', 'tblTempVendorCDR_20' ) end [2025-01-05 05:44:18] Production.INFO: ProcessCDR(1,14178163,1,1,2) [2025-01-05 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178163', 'tblTempUsageDetail_20' ) start [2025-01-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178163', 'tblTempUsageDetail_20' ) end [2025-01-05 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:44:21] Production.INFO: ==9119== Releasing lock... [2025-01-05 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:45:05 [end_date_ymd] => 2025-01-05 05:45:05 [RateCDR] => 1 ) [2025-01-05 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:45:05' and `end` < '2025-01-05 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:45:19] Production.INFO: count ==107 [2025-01-05 05:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:45:05 - End Time 2025-01-05 05:45:05 [2025-01-05 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178168', 'tblTempUsageDetail_20' ) start [2025-01-05 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178168', 'tblTempUsageDetail_20' ) end [2025-01-05 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178168', 'tblTempVendorCDR_20' ) start [2025-01-05 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178168', 'tblTempVendorCDR_20' ) end [2025-01-05 05:45:19] Production.INFO: ProcessCDR(1,14178168,1,1,2) [2025-01-05 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178168', 'tblTempUsageDetail_20' ) start [2025-01-05 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178168', 'tblTempUsageDetail_20' ) end [2025-01-05 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:45:22] Production.INFO: ==9195== Releasing lock... [2025-01-05 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:46:05 [end_date_ymd] => 2025-01-05 05:46:05 [RateCDR] => 1 ) [2025-01-05 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:46:05' and `end` < '2025-01-05 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:46:18] Production.INFO: count ==106 [2025-01-05 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:46:05 - End Time 2025-01-05 05:46:05 [2025-01-05 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178173', 'tblTempUsageDetail_20' ) start [2025-01-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178173', 'tblTempUsageDetail_20' ) end [2025-01-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178173', 'tblTempVendorCDR_20' ) start [2025-01-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178173', 'tblTempVendorCDR_20' ) end [2025-01-05 05:46:18] Production.INFO: ProcessCDR(1,14178173,1,1,2) [2025-01-05 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178173', 'tblTempUsageDetail_20' ) start [2025-01-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178173', 'tblTempUsageDetail_20' ) end [2025-01-05 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:46:21] Production.INFO: ==9270== Releasing lock... [2025-01-05 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:47:05 [end_date_ymd] => 2025-01-05 05:47:05 [RateCDR] => 1 ) [2025-01-05 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:47:05' and `end` < '2025-01-05 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:47:19] Production.INFO: count ==106 [2025-01-05 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:47:05 - End Time 2025-01-05 05:47:05 [2025-01-05 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178178', 'tblTempUsageDetail_20' ) start [2025-01-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178178', 'tblTempUsageDetail_20' ) end [2025-01-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178178', 'tblTempVendorCDR_20' ) start [2025-01-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178178', 'tblTempVendorCDR_20' ) end [2025-01-05 05:47:19] Production.INFO: ProcessCDR(1,14178178,1,1,2) [2025-01-05 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178178', 'tblTempUsageDetail_20' ) start [2025-01-05 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178178', 'tblTempUsageDetail_20' ) end [2025-01-05 05:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:47:23] Production.INFO: ==9348== Releasing lock... [2025-01-05 05:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:47:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:48:05 [end_date_ymd] => 2025-01-05 05:48:05 [RateCDR] => 1 ) [2025-01-05 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:48:05' and `end` < '2025-01-05 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:48:18] Production.INFO: count ==106 [2025-01-05 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:48:05 - End Time 2025-01-05 05:48:05 [2025-01-05 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178183', 'tblTempUsageDetail_20' ) start [2025-01-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178183', 'tblTempUsageDetail_20' ) end [2025-01-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178183', 'tblTempVendorCDR_20' ) start [2025-01-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178183', 'tblTempVendorCDR_20' ) end [2025-01-05 05:48:18] Production.INFO: ProcessCDR(1,14178183,1,1,2) [2025-01-05 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178183', 'tblTempUsageDetail_20' ) start [2025-01-05 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178183', 'tblTempUsageDetail_20' ) end [2025-01-05 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:48:21] Production.INFO: ==9433== Releasing lock... [2025-01-05 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:49:05 [end_date_ymd] => 2025-01-05 05:49:05 [RateCDR] => 1 ) [2025-01-05 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:49:05' and `end` < '2025-01-05 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:49:18] Production.INFO: count ==106 [2025-01-05 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:49:05 - End Time 2025-01-05 05:49:05 [2025-01-05 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178188', 'tblTempUsageDetail_20' ) start [2025-01-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178188', 'tblTempUsageDetail_20' ) end [2025-01-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178188', 'tblTempVendorCDR_20' ) start [2025-01-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178188', 'tblTempVendorCDR_20' ) end [2025-01-05 05:49:18] Production.INFO: ProcessCDR(1,14178188,1,1,2) [2025-01-05 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178188', 'tblTempUsageDetail_20' ) start [2025-01-05 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178188', 'tblTempUsageDetail_20' ) end [2025-01-05 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:49:22] Production.INFO: ==9511== Releasing lock... [2025-01-05 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:50:05 [end_date_ymd] => 2025-01-05 05:50:05 [RateCDR] => 1 ) [2025-01-05 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:50:05' and `end` < '2025-01-05 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:50:19] Production.INFO: count ==98 [2025-01-05 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:50:05 - End Time 2025-01-05 05:50:05 [2025-01-05 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178194', 'tblTempUsageDetail_20' ) start [2025-01-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178194', 'tblTempUsageDetail_20' ) end [2025-01-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178194', 'tblTempVendorCDR_20' ) start [2025-01-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178194', 'tblTempVendorCDR_20' ) end [2025-01-05 05:50:19] Production.INFO: ProcessCDR(1,14178194,1,1,2) [2025-01-05 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178194', 'tblTempUsageDetail_20' ) start [2025-01-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178194', 'tblTempUsageDetail_20' ) end [2025-01-05 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:50:22] Production.INFO: ==9589== Releasing lock... [2025-01-05 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:51:05 [end_date_ymd] => 2025-01-05 05:51:05 [RateCDR] => 1 ) [2025-01-05 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:51:05' and `end` < '2025-01-05 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:51:20] Production.INFO: count ==98 [2025-01-05 05:51:20] Production.ERROR: pbx CDR StartTime 2025-01-05 02:51:05 - End Time 2025-01-05 05:51:05 [2025-01-05 05:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178199', 'tblTempUsageDetail_20' ) start [2025-01-05 05:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178199', 'tblTempUsageDetail_20' ) end [2025-01-05 05:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178199', 'tblTempVendorCDR_20' ) start [2025-01-05 05:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178199', 'tblTempVendorCDR_20' ) end [2025-01-05 05:51:20] Production.INFO: ProcessCDR(1,14178199,1,1,2) [2025-01-05 05:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178199', 'tblTempUsageDetail_20' ) start [2025-01-05 05:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178199', 'tblTempUsageDetail_20' ) end [2025-01-05 05:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:51:23] Production.INFO: ==9667== Releasing lock... [2025-01-05 05:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:51:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:52:05 [end_date_ymd] => 2025-01-05 05:52:05 [RateCDR] => 1 ) [2025-01-05 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:52:05' and `end` < '2025-01-05 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:52:17] Production.INFO: count ==97 [2025-01-05 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:52:05 - End Time 2025-01-05 05:52:05 [2025-01-05 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178204', 'tblTempUsageDetail_20' ) start [2025-01-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178204', 'tblTempUsageDetail_20' ) end [2025-01-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178204', 'tblTempVendorCDR_20' ) start [2025-01-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178204', 'tblTempVendorCDR_20' ) end [2025-01-05 05:52:17] Production.INFO: ProcessCDR(1,14178204,1,1,2) [2025-01-05 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178204', 'tblTempUsageDetail_20' ) start [2025-01-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178204', 'tblTempUsageDetail_20' ) end [2025-01-05 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:52:21] Production.INFO: ==9783== Releasing lock... [2025-01-05 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:53:04 [end_date_ymd] => 2025-01-05 05:53:04 [RateCDR] => 1 ) [2025-01-05 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:53:04' and `end` < '2025-01-05 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:53:19] Production.INFO: count ==97 [2025-01-05 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:53:04 - End Time 2025-01-05 05:53:04 [2025-01-05 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178209', 'tblTempUsageDetail_20' ) start [2025-01-05 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178209', 'tblTempUsageDetail_20' ) end [2025-01-05 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178209', 'tblTempVendorCDR_20' ) start [2025-01-05 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178209', 'tblTempVendorCDR_20' ) end [2025-01-05 05:53:19] Production.INFO: ProcessCDR(1,14178209,1,1,2) [2025-01-05 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178209', 'tblTempUsageDetail_20' ) start [2025-01-05 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178209', 'tblTempUsageDetail_20' ) end [2025-01-05 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:53:22] Production.INFO: ==9857== Releasing lock... [2025-01-05 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:54:05 [end_date_ymd] => 2025-01-05 05:54:05 [RateCDR] => 1 ) [2025-01-05 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:54:05' and `end` < '2025-01-05 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:54:17] Production.INFO: count ==97 [2025-01-05 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:54:05 - End Time 2025-01-05 05:54:05 [2025-01-05 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178214', 'tblTempUsageDetail_20' ) start [2025-01-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178214', 'tblTempUsageDetail_20' ) end [2025-01-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178214', 'tblTempVendorCDR_20' ) start [2025-01-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178214', 'tblTempVendorCDR_20' ) end [2025-01-05 05:54:17] Production.INFO: ProcessCDR(1,14178214,1,1,2) [2025-01-05 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178214', 'tblTempUsageDetail_20' ) start [2025-01-05 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178214', 'tblTempUsageDetail_20' ) end [2025-01-05 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:54:21] Production.INFO: ==9932== Releasing lock... [2025-01-05 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:55:05 [end_date_ymd] => 2025-01-05 05:55:05 [RateCDR] => 1 ) [2025-01-05 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:55:05' and `end` < '2025-01-05 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:55:18] Production.INFO: count ==97 [2025-01-05 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:55:05 - End Time 2025-01-05 05:55:05 [2025-01-05 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178219', 'tblTempUsageDetail_20' ) start [2025-01-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178219', 'tblTempUsageDetail_20' ) end [2025-01-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178219', 'tblTempVendorCDR_20' ) start [2025-01-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178219', 'tblTempVendorCDR_20' ) end [2025-01-05 05:55:18] Production.INFO: ProcessCDR(1,14178219,1,1,2) [2025-01-05 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178219', 'tblTempUsageDetail_20' ) start [2025-01-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178219', 'tblTempUsageDetail_20' ) end [2025-01-05 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:55:21] Production.INFO: ==10011== Releasing lock... [2025-01-05 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:56:05 [end_date_ymd] => 2025-01-05 05:56:05 [RateCDR] => 1 ) [2025-01-05 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:56:05' and `end` < '2025-01-05 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:56:18] Production.INFO: count ==97 [2025-01-05 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:56:05 - End Time 2025-01-05 05:56:05 [2025-01-05 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178224', 'tblTempUsageDetail_20' ) start [2025-01-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178224', 'tblTempUsageDetail_20' ) end [2025-01-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178224', 'tblTempVendorCDR_20' ) start [2025-01-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178224', 'tblTempVendorCDR_20' ) end [2025-01-05 05:56:18] Production.INFO: ProcessCDR(1,14178224,1,1,2) [2025-01-05 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178224', 'tblTempUsageDetail_20' ) start [2025-01-05 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178224', 'tblTempUsageDetail_20' ) end [2025-01-05 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:56:21] Production.INFO: ==10086== Releasing lock... [2025-01-05 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:57:05 [end_date_ymd] => 2025-01-05 05:57:05 [RateCDR] => 1 ) [2025-01-05 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:57:05' and `end` < '2025-01-05 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:57:17] Production.INFO: count ==97 [2025-01-05 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-05 02:57:05 - End Time 2025-01-05 05:57:05 [2025-01-05 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178229', 'tblTempUsageDetail_20' ) start [2025-01-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178229', 'tblTempUsageDetail_20' ) end [2025-01-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178229', 'tblTempVendorCDR_20' ) start [2025-01-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178229', 'tblTempVendorCDR_20' ) end [2025-01-05 05:57:17] Production.INFO: ProcessCDR(1,14178229,1,1,2) [2025-01-05 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178229', 'tblTempUsageDetail_20' ) start [2025-01-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178229', 'tblTempUsageDetail_20' ) end [2025-01-05 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:57:21] Production.INFO: ==10162== Releasing lock... [2025-01-05 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:58:05 [end_date_ymd] => 2025-01-05 05:58:05 [RateCDR] => 1 ) [2025-01-05 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:58:05' and `end` < '2025-01-05 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:58:18] Production.INFO: count ==97 [2025-01-05 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 02:58:05 - End Time 2025-01-05 05:58:05 [2025-01-05 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178234', 'tblTempUsageDetail_20' ) start [2025-01-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178234', 'tblTempUsageDetail_20' ) end [2025-01-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178234', 'tblTempVendorCDR_20' ) start [2025-01-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178234', 'tblTempVendorCDR_20' ) end [2025-01-05 05:58:18] Production.INFO: ProcessCDR(1,14178234,1,1,2) [2025-01-05 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178234', 'tblTempUsageDetail_20' ) start [2025-01-05 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178234', 'tblTempUsageDetail_20' ) end [2025-01-05 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:58:21] Production.INFO: ==10250== Releasing lock... [2025-01-05 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 02:59:05 [end_date_ymd] => 2025-01-05 05:59:05 [RateCDR] => 1 ) [2025-01-05 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 02:59:05' and `end` < '2025-01-05 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 05:59:19] Production.INFO: count ==97 [2025-01-05 05:59:19] Production.ERROR: pbx CDR StartTime 2025-01-05 02:59:05 - End Time 2025-01-05 05:59:05 [2025-01-05 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178239', 'tblTempUsageDetail_20' ) start [2025-01-05 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178239', 'tblTempUsageDetail_20' ) end [2025-01-05 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178239', 'tblTempVendorCDR_20' ) start [2025-01-05 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178239', 'tblTempVendorCDR_20' ) end [2025-01-05 05:59:19] Production.INFO: ProcessCDR(1,14178239,1,1,2) [2025-01-05 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178239', 'tblTempUsageDetail_20' ) start [2025-01-05 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178239', 'tblTempUsageDetail_20' ) end [2025-01-05 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 05:59:22] Production.INFO: ==10338== Releasing lock... [2025-01-05 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 05:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:00:06 [end_date_ymd] => 2025-01-05 06:00:06 [RateCDR] => 1 ) [2025-01-05 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:00:06' and `end` < '2025-01-05 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:00:20] Production.INFO: count ==89 [2025-01-05 06:00:20] Production.ERROR: pbx CDR StartTime 2025-01-05 03:00:06 - End Time 2025-01-05 06:00:06 [2025-01-05 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178244', 'tblTempUsageDetail_20' ) start [2025-01-05 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178244', 'tblTempUsageDetail_20' ) end [2025-01-05 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178244', 'tblTempVendorCDR_20' ) start [2025-01-05 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178244', 'tblTempVendorCDR_20' ) end [2025-01-05 06:00:20] Production.INFO: ProcessCDR(1,14178244,1,1,2) [2025-01-05 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178244', 'tblTempUsageDetail_20' ) start [2025-01-05 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178244', 'tblTempUsageDetail_20' ) end [2025-01-05 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:00:23] Production.INFO: ==10427== Releasing lock... [2025-01-05 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:01:05 [end_date_ymd] => 2025-01-05 06:01:05 [RateCDR] => 1 ) [2025-01-05 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:01:05' and `end` < '2025-01-05 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:01:18] Production.INFO: count ==73 [2025-01-05 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:01:05 - End Time 2025-01-05 06:01:05 [2025-01-05 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178250', 'tblTempUsageDetail_20' ) start [2025-01-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178250', 'tblTempUsageDetail_20' ) end [2025-01-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178250', 'tblTempVendorCDR_20' ) start [2025-01-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178250', 'tblTempVendorCDR_20' ) end [2025-01-05 06:01:18] Production.INFO: ProcessCDR(1,14178250,1,1,2) [2025-01-05 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178250', 'tblTempUsageDetail_20' ) start [2025-01-05 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178250', 'tblTempUsageDetail_20' ) end [2025-01-05 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:01:22] Production.INFO: ==10533== Releasing lock... [2025-01-05 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:02:05 [end_date_ymd] => 2025-01-05 06:02:05 [RateCDR] => 1 ) [2025-01-05 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:02:05' and `end` < '2025-01-05 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:02:19] Production.INFO: count ==73 [2025-01-05 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:02:05 - End Time 2025-01-05 06:02:05 [2025-01-05 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178255', 'tblTempUsageDetail_20' ) start [2025-01-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178255', 'tblTempUsageDetail_20' ) end [2025-01-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178255', 'tblTempVendorCDR_20' ) start [2025-01-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178255', 'tblTempVendorCDR_20' ) end [2025-01-05 06:02:19] Production.INFO: ProcessCDR(1,14178255,1,1,2) [2025-01-05 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178255', 'tblTempUsageDetail_20' ) start [2025-01-05 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178255', 'tblTempUsageDetail_20' ) end [2025-01-05 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:02:22] Production.INFO: ==10632== Releasing lock... [2025-01-05 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:03:05 [end_date_ymd] => 2025-01-05 06:03:05 [RateCDR] => 1 ) [2025-01-05 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:03:05' and `end` < '2025-01-05 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:03:18] Production.INFO: count ==69 [2025-01-05 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:03:05 - End Time 2025-01-05 06:03:05 [2025-01-05 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178260', 'tblTempUsageDetail_20' ) start [2025-01-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178260', 'tblTempUsageDetail_20' ) end [2025-01-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178260', 'tblTempVendorCDR_20' ) start [2025-01-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178260', 'tblTempVendorCDR_20' ) end [2025-01-05 06:03:18] Production.INFO: ProcessCDR(1,14178260,1,1,2) [2025-01-05 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178260', 'tblTempUsageDetail_20' ) start [2025-01-05 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178260', 'tblTempUsageDetail_20' ) end [2025-01-05 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:03:21] Production.INFO: ==10733== Releasing lock... [2025-01-05 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:04:05 [end_date_ymd] => 2025-01-05 06:04:05 [RateCDR] => 1 ) [2025-01-05 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:04:05' and `end` < '2025-01-05 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:04:19] Production.INFO: count ==68 [2025-01-05 06:04:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:04:05 - End Time 2025-01-05 06:04:05 [2025-01-05 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178265', 'tblTempUsageDetail_20' ) start [2025-01-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178265', 'tblTempUsageDetail_20' ) end [2025-01-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178265', 'tblTempVendorCDR_20' ) start [2025-01-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178265', 'tblTempVendorCDR_20' ) end [2025-01-05 06:04:19] Production.INFO: ProcessCDR(1,14178265,1,1,2) [2025-01-05 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178265', 'tblTempUsageDetail_20' ) start [2025-01-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178265', 'tblTempUsageDetail_20' ) end [2025-01-05 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:04:22] Production.INFO: ==10837== Releasing lock... [2025-01-05 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:05:05 [end_date_ymd] => 2025-01-05 06:05:05 [RateCDR] => 1 ) [2025-01-05 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:05:05' and `end` < '2025-01-05 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:05:18] Production.INFO: count ==68 [2025-01-05 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:05:05 - End Time 2025-01-05 06:05:05 [2025-01-05 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178270', 'tblTempUsageDetail_20' ) start [2025-01-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178270', 'tblTempUsageDetail_20' ) end [2025-01-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178270', 'tblTempVendorCDR_20' ) start [2025-01-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178270', 'tblTempVendorCDR_20' ) end [2025-01-05 06:05:18] Production.INFO: ProcessCDR(1,14178270,1,1,2) [2025-01-05 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178270', 'tblTempUsageDetail_20' ) start [2025-01-05 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178270', 'tblTempUsageDetail_20' ) end [2025-01-05 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:05:21] Production.INFO: ==10940== Releasing lock... [2025-01-05 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:06:06 [end_date_ymd] => 2025-01-05 06:06:06 [RateCDR] => 1 ) [2025-01-05 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:06:06' and `end` < '2025-01-05 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:06:19] Production.INFO: count ==68 [2025-01-05 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:06:06 - End Time 2025-01-05 06:06:06 [2025-01-05 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178275', 'tblTempUsageDetail_20' ) start [2025-01-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178275', 'tblTempUsageDetail_20' ) end [2025-01-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178275', 'tblTempVendorCDR_20' ) start [2025-01-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178275', 'tblTempVendorCDR_20' ) end [2025-01-05 06:06:19] Production.INFO: ProcessCDR(1,14178275,1,1,2) [2025-01-05 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178275', 'tblTempUsageDetail_20' ) start [2025-01-05 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178275', 'tblTempUsageDetail_20' ) end [2025-01-05 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:06:22] Production.INFO: ==11041== Releasing lock... [2025-01-05 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:07:04 [end_date_ymd] => 2025-01-05 06:07:04 [RateCDR] => 1 ) [2025-01-05 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:07:04' and `end` < '2025-01-05 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:07:18] Production.INFO: count ==68 [2025-01-05 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:07:04 - End Time 2025-01-05 06:07:04 [2025-01-05 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178280', 'tblTempUsageDetail_20' ) start [2025-01-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178280', 'tblTempUsageDetail_20' ) end [2025-01-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178280', 'tblTempVendorCDR_20' ) start [2025-01-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178280', 'tblTempVendorCDR_20' ) end [2025-01-05 06:07:18] Production.INFO: ProcessCDR(1,14178280,1,1,2) [2025-01-05 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178280', 'tblTempUsageDetail_20' ) start [2025-01-05 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178280', 'tblTempUsageDetail_20' ) end [2025-01-05 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:07:21] Production.INFO: ==11183== Releasing lock... [2025-01-05 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:08:05 [end_date_ymd] => 2025-01-05 06:08:05 [RateCDR] => 1 ) [2025-01-05 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:08:05' and `end` < '2025-01-05 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:08:19] Production.INFO: count ==68 [2025-01-05 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:08:05 - End Time 2025-01-05 06:08:05 [2025-01-05 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178285', 'tblTempUsageDetail_20' ) start [2025-01-05 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178285', 'tblTempUsageDetail_20' ) end [2025-01-05 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178285', 'tblTempVendorCDR_20' ) start [2025-01-05 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178285', 'tblTempVendorCDR_20' ) end [2025-01-05 06:08:19] Production.INFO: ProcessCDR(1,14178285,1,1,2) [2025-01-05 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178285', 'tblTempUsageDetail_20' ) start [2025-01-05 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178285', 'tblTempUsageDetail_20' ) end [2025-01-05 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:08:22] Production.INFO: ==11284== Releasing lock... [2025-01-05 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:09:05 [end_date_ymd] => 2025-01-05 06:09:05 [RateCDR] => 1 ) [2025-01-05 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:09:05' and `end` < '2025-01-05 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:09:18] Production.INFO: count ==68 [2025-01-05 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:09:05 - End Time 2025-01-05 06:09:05 [2025-01-05 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178290', 'tblTempUsageDetail_20' ) start [2025-01-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178290', 'tblTempUsageDetail_20' ) end [2025-01-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178290', 'tblTempVendorCDR_20' ) start [2025-01-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178290', 'tblTempVendorCDR_20' ) end [2025-01-05 06:09:18] Production.INFO: ProcessCDR(1,14178290,1,1,2) [2025-01-05 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178290', 'tblTempUsageDetail_20' ) start [2025-01-05 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178290', 'tblTempUsageDetail_20' ) end [2025-01-05 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:09:21] Production.INFO: ==11402== Releasing lock... [2025-01-05 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:10:06 [end_date_ymd] => 2025-01-05 06:10:06 [RateCDR] => 1 ) [2025-01-05 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:10:06' and `end` < '2025-01-05 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:10:18] Production.INFO: count ==58 [2025-01-05 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:10:06 - End Time 2025-01-05 06:10:06 [2025-01-05 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178296', 'tblTempUsageDetail_20' ) start [2025-01-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178296', 'tblTempUsageDetail_20' ) end [2025-01-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178296', 'tblTempVendorCDR_20' ) start [2025-01-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178296', 'tblTempVendorCDR_20' ) end [2025-01-05 06:10:18] Production.INFO: ProcessCDR(1,14178296,1,1,2) [2025-01-05 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178296', 'tblTempUsageDetail_20' ) start [2025-01-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178296', 'tblTempUsageDetail_20' ) end [2025-01-05 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:10:22] Production.INFO: ==11536== Releasing lock... [2025-01-05 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:11:04 [end_date_ymd] => 2025-01-05 06:11:04 [RateCDR] => 1 ) [2025-01-05 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:11:04' and `end` < '2025-01-05 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:11:18] Production.INFO: count ==56 [2025-01-05 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:11:04 - End Time 2025-01-05 06:11:04 [2025-01-05 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178301', 'tblTempUsageDetail_20' ) start [2025-01-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178301', 'tblTempUsageDetail_20' ) end [2025-01-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178301', 'tblTempVendorCDR_20' ) start [2025-01-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178301', 'tblTempVendorCDR_20' ) end [2025-01-05 06:11:18] Production.INFO: ProcessCDR(1,14178301,1,1,2) [2025-01-05 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178301', 'tblTempUsageDetail_20' ) start [2025-01-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178301', 'tblTempUsageDetail_20' ) end [2025-01-05 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:11:21] Production.INFO: ==11676== Releasing lock... [2025-01-05 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:12:05 [end_date_ymd] => 2025-01-05 06:12:05 [RateCDR] => 1 ) [2025-01-05 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:12:05' and `end` < '2025-01-05 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:12:19] Production.INFO: count ==56 [2025-01-05 06:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:12:05 - End Time 2025-01-05 06:12:05 [2025-01-05 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178306', 'tblTempUsageDetail_20' ) start [2025-01-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178306', 'tblTempUsageDetail_20' ) end [2025-01-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178306', 'tblTempVendorCDR_20' ) start [2025-01-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178306', 'tblTempVendorCDR_20' ) end [2025-01-05 06:12:19] Production.INFO: ProcessCDR(1,14178306,1,1,2) [2025-01-05 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178306', 'tblTempUsageDetail_20' ) start [2025-01-05 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178306', 'tblTempUsageDetail_20' ) end [2025-01-05 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:12:22] Production.INFO: ==11806== Releasing lock... [2025-01-05 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:13:05 [end_date_ymd] => 2025-01-05 06:13:05 [RateCDR] => 1 ) [2025-01-05 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:13:05' and `end` < '2025-01-05 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:13:18] Production.INFO: count ==56 [2025-01-05 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:13:05 - End Time 2025-01-05 06:13:05 [2025-01-05 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178308', 'tblTempUsageDetail_20' ) start [2025-01-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178308', 'tblTempUsageDetail_20' ) end [2025-01-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178308', 'tblTempVendorCDR_20' ) start [2025-01-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178308', 'tblTempVendorCDR_20' ) end [2025-01-05 06:13:18] Production.INFO: ProcessCDR(1,14178308,1,1,2) [2025-01-05 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178308', 'tblTempUsageDetail_20' ) start [2025-01-05 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178308', 'tblTempUsageDetail_20' ) end [2025-01-05 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:13:21] Production.INFO: ==11940== Releasing lock... [2025-01-05 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:14:05 [end_date_ymd] => 2025-01-05 06:14:05 [RateCDR] => 1 ) [2025-01-05 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:14:05' and `end` < '2025-01-05 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:14:19] Production.INFO: count ==56 [2025-01-05 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:14:05 - End Time 2025-01-05 06:14:05 [2025-01-05 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178316', 'tblTempUsageDetail_20' ) start [2025-01-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178316', 'tblTempUsageDetail_20' ) end [2025-01-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178316', 'tblTempVendorCDR_20' ) start [2025-01-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178316', 'tblTempVendorCDR_20' ) end [2025-01-05 06:14:19] Production.INFO: ProcessCDR(1,14178316,1,1,2) [2025-01-05 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178316', 'tblTempUsageDetail_20' ) start [2025-01-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178316', 'tblTempUsageDetail_20' ) end [2025-01-05 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:14:22] Production.INFO: ==12113== Releasing lock... [2025-01-05 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:15:05 [end_date_ymd] => 2025-01-05 06:15:05 [RateCDR] => 1 ) [2025-01-05 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:15:05' and `end` < '2025-01-05 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:15:19] Production.INFO: count ==56 [2025-01-05 06:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:15:05 - End Time 2025-01-05 06:15:05 [2025-01-05 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178321', 'tblTempUsageDetail_20' ) start [2025-01-05 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178321', 'tblTempUsageDetail_20' ) end [2025-01-05 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178321', 'tblTempVendorCDR_20' ) start [2025-01-05 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178321', 'tblTempVendorCDR_20' ) end [2025-01-05 06:15:19] Production.INFO: ProcessCDR(1,14178321,1,1,2) [2025-01-05 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178321', 'tblTempUsageDetail_20' ) start [2025-01-05 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178321', 'tblTempUsageDetail_20' ) end [2025-01-05 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:15:22] Production.INFO: ==12277== Releasing lock... [2025-01-05 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:16:05 [end_date_ymd] => 2025-01-05 06:16:05 [RateCDR] => 1 ) [2025-01-05 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:16:05' and `end` < '2025-01-05 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:16:18] Production.INFO: count ==56 [2025-01-05 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:16:05 - End Time 2025-01-05 06:16:05 [2025-01-05 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178326', 'tblTempUsageDetail_20' ) start [2025-01-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178326', 'tblTempUsageDetail_20' ) end [2025-01-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178326', 'tblTempVendorCDR_20' ) start [2025-01-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178326', 'tblTempVendorCDR_20' ) end [2025-01-05 06:16:18] Production.INFO: ProcessCDR(1,14178326,1,1,2) [2025-01-05 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178326', 'tblTempUsageDetail_20' ) start [2025-01-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178326', 'tblTempUsageDetail_20' ) end [2025-01-05 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:16:21] Production.INFO: ==12438== Releasing lock... [2025-01-05 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:17:05 [end_date_ymd] => 2025-01-05 06:17:05 [RateCDR] => 1 ) [2025-01-05 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:17:05' and `end` < '2025-01-05 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:17:18] Production.INFO: count ==56 [2025-01-05 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:17:05 - End Time 2025-01-05 06:17:05 [2025-01-05 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178331', 'tblTempUsageDetail_20' ) start [2025-01-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178331', 'tblTempUsageDetail_20' ) end [2025-01-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178331', 'tblTempVendorCDR_20' ) start [2025-01-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178331', 'tblTempVendorCDR_20' ) end [2025-01-05 06:17:18] Production.INFO: ProcessCDR(1,14178331,1,1,2) [2025-01-05 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178331', 'tblTempUsageDetail_20' ) start [2025-01-05 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178331', 'tblTempUsageDetail_20' ) end [2025-01-05 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:17:22] Production.INFO: ==12606== Releasing lock... [2025-01-05 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:18:05 [end_date_ymd] => 2025-01-05 06:18:05 [RateCDR] => 1 ) [2025-01-05 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:18:05' and `end` < '2025-01-05 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:18:18] Production.INFO: count ==56 [2025-01-05 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:18:05 - End Time 2025-01-05 06:18:05 [2025-01-05 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178336', 'tblTempUsageDetail_20' ) start [2025-01-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178336', 'tblTempUsageDetail_20' ) end [2025-01-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178336', 'tblTempVendorCDR_20' ) start [2025-01-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178336', 'tblTempVendorCDR_20' ) end [2025-01-05 06:18:18] Production.INFO: ProcessCDR(1,14178336,1,1,2) [2025-01-05 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178336', 'tblTempUsageDetail_20' ) start [2025-01-05 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178336', 'tblTempUsageDetail_20' ) end [2025-01-05 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:18:22] Production.INFO: ==12743== Releasing lock... [2025-01-05 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:19:05 [end_date_ymd] => 2025-01-05 06:19:05 [RateCDR] => 1 ) [2025-01-05 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:19:05' and `end` < '2025-01-05 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:19:19] Production.INFO: count ==56 [2025-01-05 06:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:19:05 - End Time 2025-01-05 06:19:05 [2025-01-05 06:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178341', 'tblTempUsageDetail_20' ) start [2025-01-05 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178341', 'tblTempUsageDetail_20' ) end [2025-01-05 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178341', 'tblTempVendorCDR_20' ) start [2025-01-05 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178341', 'tblTempVendorCDR_20' ) end [2025-01-05 06:19:19] Production.INFO: ProcessCDR(1,14178341,1,1,2) [2025-01-05 06:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178341', 'tblTempUsageDetail_20' ) start [2025-01-05 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178341', 'tblTempUsageDetail_20' ) end [2025-01-05 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:19:22] Production.INFO: ==12878== Releasing lock... [2025-01-05 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:20:05 [end_date_ymd] => 2025-01-05 06:20:05 [RateCDR] => 1 ) [2025-01-05 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:20:05' and `end` < '2025-01-05 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:20:18] Production.INFO: count ==56 [2025-01-05 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:20:05 - End Time 2025-01-05 06:20:05 [2025-01-05 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178346', 'tblTempUsageDetail_20' ) start [2025-01-05 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178346', 'tblTempUsageDetail_20' ) end [2025-01-05 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178346', 'tblTempVendorCDR_20' ) start [2025-01-05 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178346', 'tblTempVendorCDR_20' ) end [2025-01-05 06:20:18] Production.INFO: ProcessCDR(1,14178346,1,1,2) [2025-01-05 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178346', 'tblTempUsageDetail_20' ) start [2025-01-05 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178346', 'tblTempUsageDetail_20' ) end [2025-01-05 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:20:21] Production.INFO: ==13014== Releasing lock... [2025-01-05 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:21:05 [end_date_ymd] => 2025-01-05 06:21:05 [RateCDR] => 1 ) [2025-01-05 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:21:05' and `end` < '2025-01-05 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:21:19] Production.INFO: count ==56 [2025-01-05 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:21:05 - End Time 2025-01-05 06:21:05 [2025-01-05 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178352', 'tblTempUsageDetail_20' ) start [2025-01-05 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178352', 'tblTempUsageDetail_20' ) end [2025-01-05 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178352', 'tblTempVendorCDR_20' ) start [2025-01-05 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178352', 'tblTempVendorCDR_20' ) end [2025-01-05 06:21:19] Production.INFO: ProcessCDR(1,14178352,1,1,2) [2025-01-05 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178352', 'tblTempUsageDetail_20' ) start [2025-01-05 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178352', 'tblTempUsageDetail_20' ) end [2025-01-05 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:21:22] Production.INFO: ==13156== Releasing lock... [2025-01-05 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:22:05 [end_date_ymd] => 2025-01-05 06:22:05 [RateCDR] => 1 ) [2025-01-05 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:22:05' and `end` < '2025-01-05 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:22:18] Production.INFO: count ==56 [2025-01-05 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:22:05 - End Time 2025-01-05 06:22:05 [2025-01-05 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178357', 'tblTempUsageDetail_20' ) start [2025-01-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178357', 'tblTempUsageDetail_20' ) end [2025-01-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178357', 'tblTempVendorCDR_20' ) start [2025-01-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178357', 'tblTempVendorCDR_20' ) end [2025-01-05 06:22:18] Production.INFO: ProcessCDR(1,14178357,1,1,2) [2025-01-05 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178357', 'tblTempUsageDetail_20' ) start [2025-01-05 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178357', 'tblTempUsageDetail_20' ) end [2025-01-05 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:22:21] Production.INFO: ==13291== Releasing lock... [2025-01-05 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:23:05 [end_date_ymd] => 2025-01-05 06:23:05 [RateCDR] => 1 ) [2025-01-05 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:23:05' and `end` < '2025-01-05 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:23:19] Production.INFO: count ==56 [2025-01-05 06:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:23:05 - End Time 2025-01-05 06:23:05 [2025-01-05 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178362', 'tblTempUsageDetail_20' ) start [2025-01-05 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178362', 'tblTempUsageDetail_20' ) end [2025-01-05 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178362', 'tblTempVendorCDR_20' ) start [2025-01-05 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178362', 'tblTempVendorCDR_20' ) end [2025-01-05 06:23:19] Production.INFO: ProcessCDR(1,14178362,1,1,2) [2025-01-05 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178362', 'tblTempUsageDetail_20' ) start [2025-01-05 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178362', 'tblTempUsageDetail_20' ) end [2025-01-05 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:23:22] Production.INFO: ==13463== Releasing lock... [2025-01-05 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:24:06 [end_date_ymd] => 2025-01-05 06:24:06 [RateCDR] => 1 ) [2025-01-05 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:24:06' and `end` < '2025-01-05 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:24:18] Production.INFO: count ==56 [2025-01-05 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:24:06 - End Time 2025-01-05 06:24:06 [2025-01-05 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178367', 'tblTempUsageDetail_20' ) start [2025-01-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178367', 'tblTempUsageDetail_20' ) end [2025-01-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178367', 'tblTempVendorCDR_20' ) start [2025-01-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178367', 'tblTempVendorCDR_20' ) end [2025-01-05 06:24:18] Production.INFO: ProcessCDR(1,14178367,1,1,2) [2025-01-05 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178367', 'tblTempUsageDetail_20' ) start [2025-01-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178367', 'tblTempUsageDetail_20' ) end [2025-01-05 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:24:22] Production.INFO: ==13592== Releasing lock... [2025-01-05 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:25:04 [end_date_ymd] => 2025-01-05 06:25:04 [RateCDR] => 1 ) [2025-01-05 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:25:04' and `end` < '2025-01-05 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:25:17] Production.INFO: count ==56 [2025-01-05 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:25:04 - End Time 2025-01-05 06:25:04 [2025-01-05 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178372', 'tblTempUsageDetail_20' ) start [2025-01-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178372', 'tblTempUsageDetail_20' ) end [2025-01-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178372', 'tblTempVendorCDR_20' ) start [2025-01-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178372', 'tblTempVendorCDR_20' ) end [2025-01-05 06:25:17] Production.INFO: ProcessCDR(1,14178372,1,1,2) [2025-01-05 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178372', 'tblTempUsageDetail_20' ) start [2025-01-05 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178372', 'tblTempUsageDetail_20' ) end [2025-01-05 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:25:20] Production.INFO: ==13694== Releasing lock... [2025-01-05 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:26:05 [end_date_ymd] => 2025-01-05 06:26:05 [RateCDR] => 1 ) [2025-01-05 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:26:05' and `end` < '2025-01-05 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:26:18] Production.INFO: count ==55 [2025-01-05 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:26:05 - End Time 2025-01-05 06:26:05 [2025-01-05 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178377', 'tblTempUsageDetail_20' ) start [2025-01-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178377', 'tblTempUsageDetail_20' ) end [2025-01-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178377', 'tblTempVendorCDR_20' ) start [2025-01-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178377', 'tblTempVendorCDR_20' ) end [2025-01-05 06:26:18] Production.INFO: ProcessCDR(1,14178377,1,1,2) [2025-01-05 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178377', 'tblTempUsageDetail_20' ) start [2025-01-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178377', 'tblTempUsageDetail_20' ) end [2025-01-05 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:26:21] Production.INFO: ==13805== Releasing lock... [2025-01-05 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:27:04 [end_date_ymd] => 2025-01-05 06:27:04 [RateCDR] => 1 ) [2025-01-05 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:27:04' and `end` < '2025-01-05 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:27:17] Production.INFO: count ==55 [2025-01-05 06:27:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:27:04 - End Time 2025-01-05 06:27:04 [2025-01-05 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178382', 'tblTempUsageDetail_20' ) start [2025-01-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178382', 'tblTempUsageDetail_20' ) end [2025-01-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178382', 'tblTempVendorCDR_20' ) start [2025-01-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178382', 'tblTempVendorCDR_20' ) end [2025-01-05 06:27:17] Production.INFO: ProcessCDR(1,14178382,1,1,2) [2025-01-05 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178382', 'tblTempUsageDetail_20' ) start [2025-01-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178382', 'tblTempUsageDetail_20' ) end [2025-01-05 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:27:20] Production.INFO: ==13896== Releasing lock... [2025-01-05 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:27:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:28:05 [end_date_ymd] => 2025-01-05 06:28:05 [RateCDR] => 1 ) [2025-01-05 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:28:05' and `end` < '2025-01-05 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:28:17] Production.INFO: count ==54 [2025-01-05 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:28:05 - End Time 2025-01-05 06:28:05 [2025-01-05 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178387', 'tblTempUsageDetail_20' ) start [2025-01-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178387', 'tblTempUsageDetail_20' ) end [2025-01-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178387', 'tblTempVendorCDR_20' ) start [2025-01-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178387', 'tblTempVendorCDR_20' ) end [2025-01-05 06:28:17] Production.INFO: ProcessCDR(1,14178387,1,1,2) [2025-01-05 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178387', 'tblTempUsageDetail_20' ) start [2025-01-05 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178387', 'tblTempUsageDetail_20' ) end [2025-01-05 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:28:20] Production.INFO: ==13996== Releasing lock... [2025-01-05 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:29:04 [end_date_ymd] => 2025-01-05 06:29:04 [RateCDR] => 1 ) [2025-01-05 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:29:04' and `end` < '2025-01-05 06:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:29:18] Production.INFO: count ==54 [2025-01-05 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:29:04 - End Time 2025-01-05 06:29:04 [2025-01-05 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178392', 'tblTempUsageDetail_20' ) start [2025-01-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178392', 'tblTempUsageDetail_20' ) end [2025-01-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178392', 'tblTempVendorCDR_20' ) start [2025-01-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178392', 'tblTempVendorCDR_20' ) end [2025-01-05 06:29:18] Production.INFO: ProcessCDR(1,14178392,1,1,2) [2025-01-05 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178392', 'tblTempUsageDetail_20' ) start [2025-01-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178392', 'tblTempUsageDetail_20' ) end [2025-01-05 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:29:21] Production.INFO: ==14099== Releasing lock... [2025-01-05 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:30:06 [end_date_ymd] => 2025-01-05 06:30:06 [RateCDR] => 1 ) [2025-01-05 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:30:06' and `end` < '2025-01-05 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:30:19] Production.INFO: count ==48 [2025-01-05 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:30:06 - End Time 2025-01-05 06:30:06 [2025-01-05 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178398', 'tblTempUsageDetail_20' ) start [2025-01-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178398', 'tblTempUsageDetail_20' ) end [2025-01-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178398', 'tblTempVendorCDR_20' ) start [2025-01-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178398', 'tblTempVendorCDR_20' ) end [2025-01-05 06:30:19] Production.INFO: ProcessCDR(1,14178398,1,1,2) [2025-01-05 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178398', 'tblTempUsageDetail_20' ) start [2025-01-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178398', 'tblTempUsageDetail_20' ) end [2025-01-05 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:30:22] Production.INFO: ==14205== Releasing lock... [2025-01-05 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:31:04 [end_date_ymd] => 2025-01-05 06:31:04 [RateCDR] => 1 ) [2025-01-05 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:31:04' and `end` < '2025-01-05 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:31:17] Production.INFO: count ==47 [2025-01-05 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:31:04 - End Time 2025-01-05 06:31:04 [2025-01-05 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178400', 'tblTempUsageDetail_20' ) start [2025-01-05 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178400', 'tblTempUsageDetail_20' ) end [2025-01-05 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178400', 'tblTempVendorCDR_20' ) start [2025-01-05 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178400', 'tblTempVendorCDR_20' ) end [2025-01-05 06:31:17] Production.INFO: ProcessCDR(1,14178400,1,1,2) [2025-01-05 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178400', 'tblTempUsageDetail_20' ) start [2025-01-05 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178400', 'tblTempUsageDetail_20' ) end [2025-01-05 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:31:20] Production.INFO: ==14307== Releasing lock... [2025-01-05 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:31:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:32:04 [end_date_ymd] => 2025-01-05 06:32:04 [RateCDR] => 1 ) [2025-01-05 06:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:32:04' and `end` < '2025-01-05 06:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:32:18] Production.INFO: count ==47 [2025-01-05 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:32:04 - End Time 2025-01-05 06:32:04 [2025-01-05 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178408', 'tblTempUsageDetail_20' ) start [2025-01-05 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178408', 'tblTempUsageDetail_20' ) end [2025-01-05 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178408', 'tblTempVendorCDR_20' ) start [2025-01-05 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178408', 'tblTempVendorCDR_20' ) end [2025-01-05 06:32:18] Production.INFO: ProcessCDR(1,14178408,1,1,2) [2025-01-05 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178408', 'tblTempUsageDetail_20' ) start [2025-01-05 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178408', 'tblTempUsageDetail_20' ) end [2025-01-05 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:32:21] Production.INFO: ==14415== Releasing lock... [2025-01-05 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:33:05 [end_date_ymd] => 2025-01-05 06:33:05 [RateCDR] => 1 ) [2025-01-05 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:33:05' and `end` < '2025-01-05 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:33:19] Production.INFO: count ==47 [2025-01-05 06:33:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:33:05 - End Time 2025-01-05 06:33:05 [2025-01-05 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178413', 'tblTempUsageDetail_20' ) start [2025-01-05 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178413', 'tblTempUsageDetail_20' ) end [2025-01-05 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178413', 'tblTempVendorCDR_20' ) start [2025-01-05 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178413', 'tblTempVendorCDR_20' ) end [2025-01-05 06:33:19] Production.INFO: ProcessCDR(1,14178413,1,1,2) [2025-01-05 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178413', 'tblTempUsageDetail_20' ) start [2025-01-05 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178413', 'tblTempUsageDetail_20' ) end [2025-01-05 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:33:22] Production.INFO: ==14511== Releasing lock... [2025-01-05 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:34:04 [end_date_ymd] => 2025-01-05 06:34:04 [RateCDR] => 1 ) [2025-01-05 06:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:34:04' and `end` < '2025-01-05 06:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:34:18] Production.INFO: count ==47 [2025-01-05 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:34:04 - End Time 2025-01-05 06:34:04 [2025-01-05 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178418', 'tblTempUsageDetail_20' ) start [2025-01-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178418', 'tblTempUsageDetail_20' ) end [2025-01-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178418', 'tblTempVendorCDR_20' ) start [2025-01-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178418', 'tblTempVendorCDR_20' ) end [2025-01-05 06:34:18] Production.INFO: ProcessCDR(1,14178418,1,1,2) [2025-01-05 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178418', 'tblTempUsageDetail_20' ) start [2025-01-05 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178418', 'tblTempUsageDetail_20' ) end [2025-01-05 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:34:21] Production.INFO: ==14603== Releasing lock... [2025-01-05 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:35:05 [end_date_ymd] => 2025-01-05 06:35:05 [RateCDR] => 1 ) [2025-01-05 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:35:05' and `end` < '2025-01-05 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:35:19] Production.INFO: count ==47 [2025-01-05 06:35:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:35:05 - End Time 2025-01-05 06:35:05 [2025-01-05 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178423', 'tblTempUsageDetail_20' ) start [2025-01-05 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178423', 'tblTempUsageDetail_20' ) end [2025-01-05 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178423', 'tblTempVendorCDR_20' ) start [2025-01-05 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178423', 'tblTempVendorCDR_20' ) end [2025-01-05 06:35:19] Production.INFO: ProcessCDR(1,14178423,1,1,2) [2025-01-05 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178423', 'tblTempUsageDetail_20' ) start [2025-01-05 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178423', 'tblTempUsageDetail_20' ) end [2025-01-05 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:35:22] Production.INFO: ==14704== Releasing lock... [2025-01-05 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:35:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:36:05 [end_date_ymd] => 2025-01-05 06:36:05 [RateCDR] => 1 ) [2025-01-05 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:36:05' and `end` < '2025-01-05 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:36:18] Production.INFO: count ==47 [2025-01-05 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:36:05 - End Time 2025-01-05 06:36:05 [2025-01-05 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178428', 'tblTempUsageDetail_20' ) start [2025-01-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178428', 'tblTempUsageDetail_20' ) end [2025-01-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178428', 'tblTempVendorCDR_20' ) start [2025-01-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178428', 'tblTempVendorCDR_20' ) end [2025-01-05 06:36:18] Production.INFO: ProcessCDR(1,14178428,1,1,2) [2025-01-05 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178428', 'tblTempUsageDetail_20' ) start [2025-01-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178428', 'tblTempUsageDetail_20' ) end [2025-01-05 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:36:21] Production.INFO: ==14810== Releasing lock... [2025-01-05 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:37:05 [end_date_ymd] => 2025-01-05 06:37:05 [RateCDR] => 1 ) [2025-01-05 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:37:05' and `end` < '2025-01-05 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:37:18] Production.INFO: count ==46 [2025-01-05 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:37:05 - End Time 2025-01-05 06:37:05 [2025-01-05 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178433', 'tblTempUsageDetail_20' ) start [2025-01-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178433', 'tblTempUsageDetail_20' ) end [2025-01-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178433', 'tblTempVendorCDR_20' ) start [2025-01-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178433', 'tblTempVendorCDR_20' ) end [2025-01-05 06:37:18] Production.INFO: ProcessCDR(1,14178433,1,1,2) [2025-01-05 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178433', 'tblTempUsageDetail_20' ) start [2025-01-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178433', 'tblTempUsageDetail_20' ) end [2025-01-05 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:37:22] Production.INFO: ==14903== Releasing lock... [2025-01-05 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:38:04 [end_date_ymd] => 2025-01-05 06:38:04 [RateCDR] => 1 ) [2025-01-05 06:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:38:04' and `end` < '2025-01-05 06:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:38:18] Production.INFO: count ==46 [2025-01-05 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:38:04 - End Time 2025-01-05 06:38:04 [2025-01-05 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178438', 'tblTempUsageDetail_20' ) start [2025-01-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178438', 'tblTempUsageDetail_20' ) end [2025-01-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178438', 'tblTempVendorCDR_20' ) start [2025-01-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178438', 'tblTempVendorCDR_20' ) end [2025-01-05 06:38:18] Production.INFO: ProcessCDR(1,14178438,1,1,2) [2025-01-05 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178438', 'tblTempUsageDetail_20' ) start [2025-01-05 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178438', 'tblTempUsageDetail_20' ) end [2025-01-05 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:38:21] Production.INFO: ==15039== Releasing lock... [2025-01-05 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:39:05 [end_date_ymd] => 2025-01-05 06:39:05 [RateCDR] => 1 ) [2025-01-05 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:39:05' and `end` < '2025-01-05 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:39:18] Production.INFO: count ==46 [2025-01-05 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:39:05 - End Time 2025-01-05 06:39:05 [2025-01-05 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178443', 'tblTempUsageDetail_20' ) start [2025-01-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178443', 'tblTempUsageDetail_20' ) end [2025-01-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178443', 'tblTempVendorCDR_20' ) start [2025-01-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178443', 'tblTempVendorCDR_20' ) end [2025-01-05 06:39:18] Production.INFO: ProcessCDR(1,14178443,1,1,2) [2025-01-05 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178443', 'tblTempUsageDetail_20' ) start [2025-01-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178443', 'tblTempUsageDetail_20' ) end [2025-01-05 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:39:22] Production.INFO: ==15134== Releasing lock... [2025-01-05 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:40:06 [end_date_ymd] => 2025-01-05 06:40:06 [RateCDR] => 1 ) [2025-01-05 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:40:06' and `end` < '2025-01-05 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:40:19] Production.INFO: count ==46 [2025-01-05 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:40:06 - End Time 2025-01-05 06:40:06 [2025-01-05 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178448', 'tblTempUsageDetail_20' ) start [2025-01-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178448', 'tblTempUsageDetail_20' ) end [2025-01-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178448', 'tblTempVendorCDR_20' ) start [2025-01-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178448', 'tblTempVendorCDR_20' ) end [2025-01-05 06:40:19] Production.INFO: ProcessCDR(1,14178448,1,1,2) [2025-01-05 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178448', 'tblTempUsageDetail_20' ) start [2025-01-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178448', 'tblTempUsageDetail_20' ) end [2025-01-05 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:40:22] Production.INFO: ==15223== Releasing lock... [2025-01-05 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:41:05 [end_date_ymd] => 2025-01-05 06:41:05 [RateCDR] => 1 ) [2025-01-05 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:41:05' and `end` < '2025-01-05 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:41:19] Production.INFO: count ==46 [2025-01-05 06:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:41:05 - End Time 2025-01-05 06:41:05 [2025-01-05 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178454', 'tblTempUsageDetail_20' ) start [2025-01-05 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178454', 'tblTempUsageDetail_20' ) end [2025-01-05 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178454', 'tblTempVendorCDR_20' ) start [2025-01-05 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178454', 'tblTempVendorCDR_20' ) end [2025-01-05 06:41:19] Production.INFO: ProcessCDR(1,14178454,1,1,2) [2025-01-05 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178454', 'tblTempUsageDetail_20' ) start [2025-01-05 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178454', 'tblTempUsageDetail_20' ) end [2025-01-05 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:41:22] Production.INFO: ==15317== Releasing lock... [2025-01-05 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:42:05 [end_date_ymd] => 2025-01-05 06:42:05 [RateCDR] => 1 ) [2025-01-05 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:42:05' and `end` < '2025-01-05 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:42:18] Production.INFO: count ==46 [2025-01-05 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:42:05 - End Time 2025-01-05 06:42:05 [2025-01-05 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178459', 'tblTempUsageDetail_20' ) start [2025-01-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178459', 'tblTempUsageDetail_20' ) end [2025-01-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178459', 'tblTempVendorCDR_20' ) start [2025-01-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178459', 'tblTempVendorCDR_20' ) end [2025-01-05 06:42:18] Production.INFO: ProcessCDR(1,14178459,1,1,2) [2025-01-05 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178459', 'tblTempUsageDetail_20' ) start [2025-01-05 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178459', 'tblTempUsageDetail_20' ) end [2025-01-05 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:42:22] Production.INFO: ==15404== Releasing lock... [2025-01-05 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:43:05 [end_date_ymd] => 2025-01-05 06:43:05 [RateCDR] => 1 ) [2025-01-05 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:43:05' and `end` < '2025-01-05 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:43:19] Production.INFO: count ==46 [2025-01-05 06:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:43:05 - End Time 2025-01-05 06:43:05 [2025-01-05 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178464', 'tblTempUsageDetail_20' ) start [2025-01-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178464', 'tblTempUsageDetail_20' ) end [2025-01-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178464', 'tblTempVendorCDR_20' ) start [2025-01-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178464', 'tblTempVendorCDR_20' ) end [2025-01-05 06:43:19] Production.INFO: ProcessCDR(1,14178464,1,1,2) [2025-01-05 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178464', 'tblTempUsageDetail_20' ) start [2025-01-05 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178464', 'tblTempUsageDetail_20' ) end [2025-01-05 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:43:22] Production.INFO: ==15499== Releasing lock... [2025-01-05 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:44:05 [end_date_ymd] => 2025-01-05 06:44:05 [RateCDR] => 1 ) [2025-01-05 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:44:05' and `end` < '2025-01-05 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:44:18] Production.INFO: count ==46 [2025-01-05 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:44:05 - End Time 2025-01-05 06:44:05 [2025-01-05 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178469', 'tblTempUsageDetail_20' ) start [2025-01-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178469', 'tblTempUsageDetail_20' ) end [2025-01-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178469', 'tblTempVendorCDR_20' ) start [2025-01-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178469', 'tblTempVendorCDR_20' ) end [2025-01-05 06:44:18] Production.INFO: ProcessCDR(1,14178469,1,1,2) [2025-01-05 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178469', 'tblTempUsageDetail_20' ) start [2025-01-05 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178469', 'tblTempUsageDetail_20' ) end [2025-01-05 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:44:21] Production.INFO: ==15586== Releasing lock... [2025-01-05 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:45:05 [end_date_ymd] => 2025-01-05 06:45:05 [RateCDR] => 1 ) [2025-01-05 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:45:05' and `end` < '2025-01-05 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:45:18] Production.INFO: count ==46 [2025-01-05 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:45:05 - End Time 2025-01-05 06:45:05 [2025-01-05 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178474', 'tblTempUsageDetail_20' ) start [2025-01-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178474', 'tblTempUsageDetail_20' ) end [2025-01-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178474', 'tblTempVendorCDR_20' ) start [2025-01-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178474', 'tblTempVendorCDR_20' ) end [2025-01-05 06:45:18] Production.INFO: ProcessCDR(1,14178474,1,1,2) [2025-01-05 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178474', 'tblTempUsageDetail_20' ) start [2025-01-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178474', 'tblTempUsageDetail_20' ) end [2025-01-05 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:45:22] Production.INFO: ==15675== Releasing lock... [2025-01-05 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:46:05 [end_date_ymd] => 2025-01-05 06:46:05 [RateCDR] => 1 ) [2025-01-05 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:46:05' and `end` < '2025-01-05 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:46:17] Production.INFO: count ==46 [2025-01-05 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:46:05 - End Time 2025-01-05 06:46:05 [2025-01-05 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178479', 'tblTempUsageDetail_20' ) start [2025-01-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178479', 'tblTempUsageDetail_20' ) end [2025-01-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178479', 'tblTempVendorCDR_20' ) start [2025-01-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178479', 'tblTempVendorCDR_20' ) end [2025-01-05 06:46:17] Production.INFO: ProcessCDR(1,14178479,1,1,2) [2025-01-05 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178479', 'tblTempUsageDetail_20' ) start [2025-01-05 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178479', 'tblTempUsageDetail_20' ) end [2025-01-05 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:46:20] Production.INFO: ==15767== Releasing lock... [2025-01-05 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:46:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:47:05 [end_date_ymd] => 2025-01-05 06:47:05 [RateCDR] => 1 ) [2025-01-05 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:47:05' and `end` < '2025-01-05 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:47:19] Production.INFO: count ==46 [2025-01-05 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:47:05 - End Time 2025-01-05 06:47:05 [2025-01-05 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178484', 'tblTempUsageDetail_20' ) start [2025-01-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178484', 'tblTempUsageDetail_20' ) end [2025-01-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178484', 'tblTempVendorCDR_20' ) start [2025-01-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178484', 'tblTempVendorCDR_20' ) end [2025-01-05 06:47:19] Production.INFO: ProcessCDR(1,14178484,1,1,2) [2025-01-05 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178484', 'tblTempUsageDetail_20' ) start [2025-01-05 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178484', 'tblTempUsageDetail_20' ) end [2025-01-05 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:47:22] Production.INFO: ==15878== Releasing lock... [2025-01-05 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:48:04 [end_date_ymd] => 2025-01-05 06:48:04 [RateCDR] => 1 ) [2025-01-05 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:48:04' and `end` < '2025-01-05 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:48:17] Production.INFO: count ==46 [2025-01-05 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:48:04 - End Time 2025-01-05 06:48:04 [2025-01-05 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178489', 'tblTempUsageDetail_20' ) start [2025-01-05 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178489', 'tblTempUsageDetail_20' ) end [2025-01-05 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178489', 'tblTempVendorCDR_20' ) start [2025-01-05 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178489', 'tblTempVendorCDR_20' ) end [2025-01-05 06:48:17] Production.INFO: ProcessCDR(1,14178489,1,1,2) [2025-01-05 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178489', 'tblTempUsageDetail_20' ) start [2025-01-05 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178489', 'tblTempUsageDetail_20' ) end [2025-01-05 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:48:20] Production.INFO: ==15992== Releasing lock... [2025-01-05 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:48:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:49:05 [end_date_ymd] => 2025-01-05 06:49:05 [RateCDR] => 1 ) [2025-01-05 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:49:05' and `end` < '2025-01-05 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:49:18] Production.INFO: count ==46 [2025-01-05 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:49:05 - End Time 2025-01-05 06:49:05 [2025-01-05 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178494', 'tblTempUsageDetail_20' ) start [2025-01-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178494', 'tblTempUsageDetail_20' ) end [2025-01-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178494', 'tblTempVendorCDR_20' ) start [2025-01-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178494', 'tblTempVendorCDR_20' ) end [2025-01-05 06:49:18] Production.INFO: ProcessCDR(1,14178494,1,1,2) [2025-01-05 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178494', 'tblTempUsageDetail_20' ) start [2025-01-05 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178494', 'tblTempUsageDetail_20' ) end [2025-01-05 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:49:21] Production.INFO: ==16104== Releasing lock... [2025-01-05 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:50:05 [end_date_ymd] => 2025-01-05 06:50:05 [RateCDR] => 1 ) [2025-01-05 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:50:05' and `end` < '2025-01-05 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:50:19] Production.INFO: count ==40 [2025-01-05 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:50:05 - End Time 2025-01-05 06:50:05 [2025-01-05 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178500', 'tblTempUsageDetail_20' ) start [2025-01-05 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178500', 'tblTempUsageDetail_20' ) end [2025-01-05 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178500', 'tblTempVendorCDR_20' ) start [2025-01-05 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178500', 'tblTempVendorCDR_20' ) end [2025-01-05 06:50:19] Production.INFO: ProcessCDR(1,14178500,1,1,2) [2025-01-05 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178500', 'tblTempUsageDetail_20' ) start [2025-01-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178500', 'tblTempUsageDetail_20' ) end [2025-01-05 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:50:22] Production.INFO: ==16221== Releasing lock... [2025-01-05 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:51:05 [end_date_ymd] => 2025-01-05 06:51:05 [RateCDR] => 1 ) [2025-01-05 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:51:05' and `end` < '2025-01-05 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:51:18] Production.INFO: count ==38 [2025-01-05 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:51:05 - End Time 2025-01-05 06:51:05 [2025-01-05 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178505', 'tblTempUsageDetail_20' ) start [2025-01-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178505', 'tblTempUsageDetail_20' ) end [2025-01-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178505', 'tblTempVendorCDR_20' ) start [2025-01-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178505', 'tblTempVendorCDR_20' ) end [2025-01-05 06:51:18] Production.INFO: ProcessCDR(1,14178505,1,1,2) [2025-01-05 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178505', 'tblTempUsageDetail_20' ) start [2025-01-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178505', 'tblTempUsageDetail_20' ) end [2025-01-05 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:51:21] Production.INFO: ==16334== Releasing lock... [2025-01-05 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:52:04 [end_date_ymd] => 2025-01-05 06:52:04 [RateCDR] => 1 ) [2025-01-05 06:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:52:04' and `end` < '2025-01-05 06:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:52:18] Production.INFO: count ==37 [2025-01-05 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:52:04 - End Time 2025-01-05 06:52:04 [2025-01-05 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178510', 'tblTempUsageDetail_20' ) start [2025-01-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178510', 'tblTempUsageDetail_20' ) end [2025-01-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178510', 'tblTempVendorCDR_20' ) start [2025-01-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178510', 'tblTempVendorCDR_20' ) end [2025-01-05 06:52:18] Production.INFO: ProcessCDR(1,14178510,1,1,2) [2025-01-05 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178510', 'tblTempUsageDetail_20' ) start [2025-01-05 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178510', 'tblTempUsageDetail_20' ) end [2025-01-05 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:52:21] Production.INFO: ==16444== Releasing lock... [2025-01-05 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:53:05 [end_date_ymd] => 2025-01-05 06:53:05 [RateCDR] => 1 ) [2025-01-05 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:53:05' and `end` < '2025-01-05 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:53:18] Production.INFO: count ==37 [2025-01-05 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:53:05 - End Time 2025-01-05 06:53:05 [2025-01-05 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178515', 'tblTempUsageDetail_20' ) start [2025-01-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178515', 'tblTempUsageDetail_20' ) end [2025-01-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178515', 'tblTempVendorCDR_20' ) start [2025-01-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178515', 'tblTempVendorCDR_20' ) end [2025-01-05 06:53:18] Production.INFO: ProcessCDR(1,14178515,1,1,2) [2025-01-05 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178515', 'tblTempUsageDetail_20' ) start [2025-01-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178515', 'tblTempUsageDetail_20' ) end [2025-01-05 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:53:21] Production.INFO: ==16553== Releasing lock... [2025-01-05 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:54:05 [end_date_ymd] => 2025-01-05 06:54:05 [RateCDR] => 1 ) [2025-01-05 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:54:05' and `end` < '2025-01-05 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:54:18] Production.INFO: count ==36 [2025-01-05 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:54:05 - End Time 2025-01-05 06:54:05 [2025-01-05 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178520', 'tblTempUsageDetail_20' ) start [2025-01-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178520', 'tblTempUsageDetail_20' ) end [2025-01-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178520', 'tblTempVendorCDR_20' ) start [2025-01-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178520', 'tblTempVendorCDR_20' ) end [2025-01-05 06:54:18] Production.INFO: ProcessCDR(1,14178520,1,1,2) [2025-01-05 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178520', 'tblTempUsageDetail_20' ) start [2025-01-05 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178520', 'tblTempUsageDetail_20' ) end [2025-01-05 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:54:21] Production.INFO: ==16696== Releasing lock... [2025-01-05 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:54:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:55:05 [end_date_ymd] => 2025-01-05 06:55:05 [RateCDR] => 1 ) [2025-01-05 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:55:05' and `end` < '2025-01-05 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:55:18] Production.INFO: count ==36 [2025-01-05 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:55:05 - End Time 2025-01-05 06:55:05 [2025-01-05 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178525', 'tblTempUsageDetail_20' ) start [2025-01-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178525', 'tblTempUsageDetail_20' ) end [2025-01-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178525', 'tblTempVendorCDR_20' ) start [2025-01-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178525', 'tblTempVendorCDR_20' ) end [2025-01-05 06:55:18] Production.INFO: ProcessCDR(1,14178525,1,1,2) [2025-01-05 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178525', 'tblTempUsageDetail_20' ) start [2025-01-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178525', 'tblTempUsageDetail_20' ) end [2025-01-05 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:55:21] Production.INFO: ==16801== Releasing lock... [2025-01-05 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:55:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:56:05 [end_date_ymd] => 2025-01-05 06:56:05 [RateCDR] => 1 ) [2025-01-05 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:56:05' and `end` < '2025-01-05 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:56:19] Production.INFO: count ==35 [2025-01-05 06:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 03:56:05 - End Time 2025-01-05 06:56:05 [2025-01-05 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178530', 'tblTempUsageDetail_20' ) start [2025-01-05 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178530', 'tblTempUsageDetail_20' ) end [2025-01-05 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178530', 'tblTempVendorCDR_20' ) start [2025-01-05 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178530', 'tblTempVendorCDR_20' ) end [2025-01-05 06:56:19] Production.INFO: ProcessCDR(1,14178530,1,1,2) [2025-01-05 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178530', 'tblTempUsageDetail_20' ) start [2025-01-05 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178530', 'tblTempUsageDetail_20' ) end [2025-01-05 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:56:22] Production.INFO: ==16909== Releasing lock... [2025-01-05 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:56:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:57:05 [end_date_ymd] => 2025-01-05 06:57:05 [RateCDR] => 1 ) [2025-01-05 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:57:05' and `end` < '2025-01-05 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:57:18] Production.INFO: count ==35 [2025-01-05 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:57:05 - End Time 2025-01-05 06:57:05 [2025-01-05 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178535', 'tblTempUsageDetail_20' ) start [2025-01-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178535', 'tblTempUsageDetail_20' ) end [2025-01-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178535', 'tblTempVendorCDR_20' ) start [2025-01-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178535', 'tblTempVendorCDR_20' ) end [2025-01-05 06:57:18] Production.INFO: ProcessCDR(1,14178535,1,1,2) [2025-01-05 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178535', 'tblTempUsageDetail_20' ) start [2025-01-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178535', 'tblTempUsageDetail_20' ) end [2025-01-05 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:57:21] Production.INFO: ==17015== Releasing lock... [2025-01-05 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:58:06 [end_date_ymd] => 2025-01-05 06:58:06 [RateCDR] => 1 ) [2025-01-05 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:58:06' and `end` < '2025-01-05 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:58:18] Production.INFO: count ==34 [2025-01-05 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 03:58:06 - End Time 2025-01-05 06:58:06 [2025-01-05 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178540', 'tblTempUsageDetail_20' ) start [2025-01-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178540', 'tblTempUsageDetail_20' ) end [2025-01-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178540', 'tblTempVendorCDR_20' ) start [2025-01-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178540', 'tblTempVendorCDR_20' ) end [2025-01-05 06:58:18] Production.INFO: ProcessCDR(1,14178540,1,1,2) [2025-01-05 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178540', 'tblTempUsageDetail_20' ) start [2025-01-05 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178540', 'tblTempUsageDetail_20' ) end [2025-01-05 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:58:21] Production.INFO: ==17123== Releasing lock... [2025-01-05 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 03:59:05 [end_date_ymd] => 2025-01-05 06:59:05 [RateCDR] => 1 ) [2025-01-05 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 03:59:05' and `end` < '2025-01-05 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 06:59:17] Production.INFO: count ==36 [2025-01-05 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-05 03:59:05 - End Time 2025-01-05 06:59:05 [2025-01-05 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178545', 'tblTempUsageDetail_20' ) start [2025-01-05 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178545', 'tblTempUsageDetail_20' ) end [2025-01-05 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178545', 'tblTempVendorCDR_20' ) start [2025-01-05 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178545', 'tblTempVendorCDR_20' ) end [2025-01-05 06:59:17] Production.INFO: ProcessCDR(1,14178545,1,1,2) [2025-01-05 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178545', 'tblTempUsageDetail_20' ) start [2025-01-05 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178545', 'tblTempUsageDetail_20' ) end [2025-01-05 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 06:59:21] Production.INFO: ==17226== Releasing lock... [2025-01-05 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:00:06 [end_date_ymd] => 2025-01-05 07:00:06 [RateCDR] => 1 ) [2025-01-05 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:00:06' and `end` < '2025-01-05 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:00:18] Production.INFO: count ==29 [2025-01-05 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:00:06 - End Time 2025-01-05 07:00:06 [2025-01-05 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178551', 'tblTempUsageDetail_20' ) start [2025-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178551', 'tblTempUsageDetail_20' ) end [2025-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178551', 'tblTempVendorCDR_20' ) start [2025-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178551', 'tblTempVendorCDR_20' ) end [2025-01-05 07:00:18] Production.INFO: ProcessCDR(1,14178551,1,1,2) [2025-01-05 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178551', 'tblTempUsageDetail_20' ) start [2025-01-05 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178551', 'tblTempUsageDetail_20' ) end [2025-01-05 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:00:21] Production.INFO: ==17333== Releasing lock... [2025-01-05 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:01:04 [end_date_ymd] => 2025-01-05 07:01:04 [RateCDR] => 1 ) [2025-01-05 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:01:04' and `end` < '2025-01-05 07:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:01:20] Production.INFO: count ==23 [2025-01-05 07:01:20] Production.ERROR: pbx CDR StartTime 2025-01-05 04:01:04 - End Time 2025-01-05 07:01:04 [2025-01-05 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178556', 'tblTempUsageDetail_20' ) start [2025-01-05 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178556', 'tblTempUsageDetail_20' ) end [2025-01-05 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178556', 'tblTempVendorCDR_20' ) start [2025-01-05 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178556', 'tblTempVendorCDR_20' ) end [2025-01-05 07:01:20] Production.INFO: ProcessCDR(1,14178556,1,1,2) [2025-01-05 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178556', 'tblTempUsageDetail_20' ) start [2025-01-05 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178556', 'tblTempUsageDetail_20' ) end [2025-01-05 07:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:01:23] Production.INFO: ==17455== Releasing lock... [2025-01-05 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:02:05 [end_date_ymd] => 2025-01-05 07:02:05 [RateCDR] => 1 ) [2025-01-05 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:02:05' and `end` < '2025-01-05 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:02:19] Production.INFO: count ==22 [2025-01-05 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:02:05 - End Time 2025-01-05 07:02:05 [2025-01-05 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178561', 'tblTempUsageDetail_20' ) start [2025-01-05 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178561', 'tblTempUsageDetail_20' ) end [2025-01-05 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178561', 'tblTempVendorCDR_20' ) start [2025-01-05 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178561', 'tblTempVendorCDR_20' ) end [2025-01-05 07:02:19] Production.INFO: ProcessCDR(1,14178561,1,1,2) [2025-01-05 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178561', 'tblTempUsageDetail_20' ) start [2025-01-05 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178561', 'tblTempUsageDetail_20' ) end [2025-01-05 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:02:22] Production.INFO: ==17645== Releasing lock... [2025-01-05 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:03:05 [end_date_ymd] => 2025-01-05 07:03:05 [RateCDR] => 1 ) [2025-01-05 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:03:05' and `end` < '2025-01-05 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:03:19] Production.INFO: count ==22 [2025-01-05 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:03:05 - End Time 2025-01-05 07:03:05 [2025-01-05 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178566', 'tblTempUsageDetail_20' ) start [2025-01-05 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178566', 'tblTempUsageDetail_20' ) end [2025-01-05 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178566', 'tblTempVendorCDR_20' ) start [2025-01-05 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178566', 'tblTempVendorCDR_20' ) end [2025-01-05 07:03:19] Production.INFO: ProcessCDR(1,14178566,1,1,2) [2025-01-05 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178566', 'tblTempUsageDetail_20' ) start [2025-01-05 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178566', 'tblTempUsageDetail_20' ) end [2025-01-05 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:03:22] Production.INFO: ==17752== Releasing lock... [2025-01-05 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:04:05 [end_date_ymd] => 2025-01-05 07:04:05 [RateCDR] => 1 ) [2025-01-05 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:04:05' and `end` < '2025-01-05 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:04:18] Production.INFO: count ==21 [2025-01-05 07:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:04:05 - End Time 2025-01-05 07:04:05 [2025-01-05 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178571', 'tblTempUsageDetail_20' ) start [2025-01-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178571', 'tblTempUsageDetail_20' ) end [2025-01-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178571', 'tblTempVendorCDR_20' ) start [2025-01-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178571', 'tblTempVendorCDR_20' ) end [2025-01-05 07:04:18] Production.INFO: ProcessCDR(1,14178571,1,1,2) [2025-01-05 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178571', 'tblTempUsageDetail_20' ) start [2025-01-05 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178571', 'tblTempUsageDetail_20' ) end [2025-01-05 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:04:21] Production.INFO: ==17851== Releasing lock... [2025-01-05 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:05:04 [end_date_ymd] => 2025-01-05 07:05:04 [RateCDR] => 1 ) [2025-01-05 07:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:05:04' and `end` < '2025-01-05 07:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:05:22] Production.INFO: count ==21 [2025-01-05 07:05:22] Production.ERROR: pbx CDR StartTime 2025-01-05 04:05:04 - End Time 2025-01-05 07:05:04 [2025-01-05 07:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178572', 'tblTempUsageDetail_20' ) start [2025-01-05 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178572', 'tblTempUsageDetail_20' ) end [2025-01-05 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178572', 'tblTempVendorCDR_20' ) start [2025-01-05 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178572', 'tblTempVendorCDR_20' ) end [2025-01-05 07:05:22] Production.INFO: ProcessCDR(1,14178572,1,1,2) [2025-01-05 07:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178572', 'tblTempUsageDetail_20' ) start [2025-01-05 07:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178572', 'tblTempUsageDetail_20' ) end [2025-01-05 07:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:05:26] Production.INFO: ==18004== Releasing lock... [2025-01-05 07:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:05:26] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:06:05 [end_date_ymd] => 2025-01-05 07:06:05 [RateCDR] => 1 ) [2025-01-05 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:06:05' and `end` < '2025-01-05 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:06:18] Production.INFO: count ==21 [2025-01-05 07:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:06:05 - End Time 2025-01-05 07:06:05 [2025-01-05 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178581', 'tblTempUsageDetail_20' ) start [2025-01-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178581', 'tblTempUsageDetail_20' ) end [2025-01-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178581', 'tblTempVendorCDR_20' ) start [2025-01-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178581', 'tblTempVendorCDR_20' ) end [2025-01-05 07:06:18] Production.INFO: ProcessCDR(1,14178581,1,1,2) [2025-01-05 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178581', 'tblTempUsageDetail_20' ) start [2025-01-05 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178581', 'tblTempUsageDetail_20' ) end [2025-01-05 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:06:21] Production.INFO: ==18082== Releasing lock... [2025-01-05 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:06:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:07:05 [end_date_ymd] => 2025-01-05 07:07:05 [RateCDR] => 1 ) [2025-01-05 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:07:05' and `end` < '2025-01-05 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:07:18] Production.INFO: count ==21 [2025-01-05 07:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:07:05 - End Time 2025-01-05 07:07:05 [2025-01-05 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178586', 'tblTempUsageDetail_20' ) start [2025-01-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178586', 'tblTempUsageDetail_20' ) end [2025-01-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178586', 'tblTempVendorCDR_20' ) start [2025-01-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178586', 'tblTempVendorCDR_20' ) end [2025-01-05 07:07:18] Production.INFO: ProcessCDR(1,14178586,1,1,2) [2025-01-05 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178586', 'tblTempUsageDetail_20' ) start [2025-01-05 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178586', 'tblTempUsageDetail_20' ) end [2025-01-05 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:07:22] Production.INFO: ==18167== Releasing lock... [2025-01-05 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:08:06 [end_date_ymd] => 2025-01-05 07:08:06 [RateCDR] => 1 ) [2025-01-05 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:08:06' and `end` < '2025-01-05 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:08:20] Production.INFO: count ==21 [2025-01-05 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-05 04:08:06 - End Time 2025-01-05 07:08:06 [2025-01-05 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178591', 'tblTempUsageDetail_20' ) start [2025-01-05 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178591', 'tblTempUsageDetail_20' ) end [2025-01-05 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178591', 'tblTempVendorCDR_20' ) start [2025-01-05 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178591', 'tblTempVendorCDR_20' ) end [2025-01-05 07:08:20] Production.INFO: ProcessCDR(1,14178591,1,1,2) [2025-01-05 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178591', 'tblTempUsageDetail_20' ) start [2025-01-05 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178591', 'tblTempUsageDetail_20' ) end [2025-01-05 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:08:23] Production.INFO: ==18287== Releasing lock... [2025-01-05 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:08:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:09:05 [end_date_ymd] => 2025-01-05 07:09:05 [RateCDR] => 1 ) [2025-01-05 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:09:05' and `end` < '2025-01-05 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:09:18] Production.INFO: count ==21 [2025-01-05 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:09:05 - End Time 2025-01-05 07:09:05 [2025-01-05 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178596', 'tblTempUsageDetail_20' ) start [2025-01-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178596', 'tblTempUsageDetail_20' ) end [2025-01-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178596', 'tblTempVendorCDR_20' ) start [2025-01-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178596', 'tblTempVendorCDR_20' ) end [2025-01-05 07:09:18] Production.INFO: ProcessCDR(1,14178596,1,1,2) [2025-01-05 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178596', 'tblTempUsageDetail_20' ) start [2025-01-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178596', 'tblTempUsageDetail_20' ) end [2025-01-05 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:09:21] Production.INFO: ==18408== Releasing lock... [2025-01-05 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:10:06 [end_date_ymd] => 2025-01-05 07:10:06 [RateCDR] => 1 ) [2025-01-05 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:10:06' and `end` < '2025-01-05 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:10:20] Production.INFO: count ==21 [2025-01-05 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-05 04:10:06 - End Time 2025-01-05 07:10:06 [2025-01-05 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178601', 'tblTempUsageDetail_20' ) start [2025-01-05 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178601', 'tblTempUsageDetail_20' ) end [2025-01-05 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178601', 'tblTempVendorCDR_20' ) start [2025-01-05 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178601', 'tblTempVendorCDR_20' ) end [2025-01-05 07:10:20] Production.INFO: ProcessCDR(1,14178601,1,1,2) [2025-01-05 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178601', 'tblTempUsageDetail_20' ) start [2025-01-05 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178601', 'tblTempUsageDetail_20' ) end [2025-01-05 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:10:23] Production.INFO: ==18534== Releasing lock... [2025-01-05 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:11:04 [end_date_ymd] => 2025-01-05 07:11:04 [RateCDR] => 1 ) [2025-01-05 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:11:04' and `end` < '2025-01-05 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:11:19] Production.INFO: count ==21 [2025-01-05 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:11:04 - End Time 2025-01-05 07:11:04 [2025-01-05 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178607', 'tblTempUsageDetail_20' ) start [2025-01-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178607', 'tblTempUsageDetail_20' ) end [2025-01-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178607', 'tblTempVendorCDR_20' ) start [2025-01-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178607', 'tblTempVendorCDR_20' ) end [2025-01-05 07:11:19] Production.INFO: ProcessCDR(1,14178607,1,1,2) [2025-01-05 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178607', 'tblTempUsageDetail_20' ) start [2025-01-05 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178607', 'tblTempUsageDetail_20' ) end [2025-01-05 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:11:22] Production.INFO: ==18624== Releasing lock... [2025-01-05 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:12:05 [end_date_ymd] => 2025-01-05 07:12:05 [RateCDR] => 1 ) [2025-01-05 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:12:05' and `end` < '2025-01-05 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:12:20] Production.INFO: count ==21 [2025-01-05 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-05 04:12:05 - End Time 2025-01-05 07:12:05 [2025-01-05 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178612', 'tblTempUsageDetail_20' ) start [2025-01-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178612', 'tblTempUsageDetail_20' ) end [2025-01-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178612', 'tblTempVendorCDR_20' ) start [2025-01-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178612', 'tblTempVendorCDR_20' ) end [2025-01-05 07:12:20] Production.INFO: ProcessCDR(1,14178612,1,1,2) [2025-01-05 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178612', 'tblTempUsageDetail_20' ) start [2025-01-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178612', 'tblTempUsageDetail_20' ) end [2025-01-05 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:12:23] Production.INFO: ==18794== Releasing lock... [2025-01-05 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:12:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:13:05 [end_date_ymd] => 2025-01-05 07:13:05 [RateCDR] => 1 ) [2025-01-05 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:13:05' and `end` < '2025-01-05 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:13:19] Production.INFO: count ==21 [2025-01-05 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:13:05 - End Time 2025-01-05 07:13:05 [2025-01-05 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178617', 'tblTempUsageDetail_20' ) start [2025-01-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178617', 'tblTempUsageDetail_20' ) end [2025-01-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178617', 'tblTempVendorCDR_20' ) start [2025-01-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178617', 'tblTempVendorCDR_20' ) end [2025-01-05 07:13:19] Production.INFO: ProcessCDR(1,14178617,1,1,2) [2025-01-05 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178617', 'tblTempUsageDetail_20' ) start [2025-01-05 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178617', 'tblTempUsageDetail_20' ) end [2025-01-05 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:13:22] Production.INFO: ==18880== Releasing lock... [2025-01-05 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:13:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:14:05 [end_date_ymd] => 2025-01-05 07:14:05 [RateCDR] => 1 ) [2025-01-05 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:14:05' and `end` < '2025-01-05 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:14:19] Production.INFO: count ==21 [2025-01-05 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:14:05 - End Time 2025-01-05 07:14:05 [2025-01-05 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178622', 'tblTempUsageDetail_20' ) start [2025-01-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178622', 'tblTempUsageDetail_20' ) end [2025-01-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178622', 'tblTempVendorCDR_20' ) start [2025-01-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178622', 'tblTempVendorCDR_20' ) end [2025-01-05 07:14:19] Production.INFO: ProcessCDR(1,14178622,1,1,2) [2025-01-05 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178622', 'tblTempUsageDetail_20' ) start [2025-01-05 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178622', 'tblTempUsageDetail_20' ) end [2025-01-05 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:14:22] Production.INFO: ==18969== Releasing lock... [2025-01-05 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:14:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:15:04 [end_date_ymd] => 2025-01-05 07:15:04 [RateCDR] => 1 ) [2025-01-05 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:15:04' and `end` < '2025-01-05 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:15:19] Production.INFO: count ==21 [2025-01-05 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:15:04 - End Time 2025-01-05 07:15:04 [2025-01-05 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178627', 'tblTempUsageDetail_20' ) start [2025-01-05 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178627', 'tblTempUsageDetail_20' ) end [2025-01-05 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178627', 'tblTempVendorCDR_20' ) start [2025-01-05 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178627', 'tblTempVendorCDR_20' ) end [2025-01-05 07:15:19] Production.INFO: ProcessCDR(1,14178627,1,1,2) [2025-01-05 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178627', 'tblTempUsageDetail_20' ) start [2025-01-05 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178627', 'tblTempUsageDetail_20' ) end [2025-01-05 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:15:22] Production.INFO: ==19132== Releasing lock... [2025-01-05 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:15:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:16:05 [end_date_ymd] => 2025-01-05 07:16:05 [RateCDR] => 1 ) [2025-01-05 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:16:05' and `end` < '2025-01-05 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:16:19] Production.INFO: count ==21 [2025-01-05 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:16:05 - End Time 2025-01-05 07:16:05 [2025-01-05 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178632', 'tblTempUsageDetail_20' ) start [2025-01-05 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178632', 'tblTempUsageDetail_20' ) end [2025-01-05 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178632', 'tblTempVendorCDR_20' ) start [2025-01-05 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178632', 'tblTempVendorCDR_20' ) end [2025-01-05 07:16:19] Production.INFO: ProcessCDR(1,14178632,1,1,2) [2025-01-05 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178632', 'tblTempUsageDetail_20' ) start [2025-01-05 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178632', 'tblTempUsageDetail_20' ) end [2025-01-05 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:16:22] Production.INFO: ==19226== Releasing lock... [2025-01-05 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:16:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:17:05 [end_date_ymd] => 2025-01-05 07:17:05 [RateCDR] => 1 ) [2025-01-05 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:17:05' and `end` < '2025-01-05 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:17:19] Production.INFO: count ==21 [2025-01-05 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:17:05 - End Time 2025-01-05 07:17:05 [2025-01-05 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178637', 'tblTempUsageDetail_20' ) start [2025-01-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178637', 'tblTempUsageDetail_20' ) end [2025-01-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178637', 'tblTempVendorCDR_20' ) start [2025-01-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178637', 'tblTempVendorCDR_20' ) end [2025-01-05 07:17:19] Production.INFO: ProcessCDR(1,14178637,1,1,2) [2025-01-05 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178637', 'tblTempUsageDetail_20' ) start [2025-01-05 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178637', 'tblTempUsageDetail_20' ) end [2025-01-05 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:17:22] Production.INFO: ==19314== Releasing lock... [2025-01-05 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:18:05 [end_date_ymd] => 2025-01-05 07:18:05 [RateCDR] => 1 ) [2025-01-05 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:18:05' and `end` < '2025-01-05 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:18:20] Production.INFO: count ==21 [2025-01-05 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-05 04:18:05 - End Time 2025-01-05 07:18:05 [2025-01-05 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178642', 'tblTempUsageDetail_20' ) start [2025-01-05 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178642', 'tblTempUsageDetail_20' ) end [2025-01-05 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178642', 'tblTempVendorCDR_20' ) start [2025-01-05 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178642', 'tblTempVendorCDR_20' ) end [2025-01-05 07:18:20] Production.INFO: ProcessCDR(1,14178642,1,1,2) [2025-01-05 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178642', 'tblTempUsageDetail_20' ) start [2025-01-05 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178642', 'tblTempUsageDetail_20' ) end [2025-01-05 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:18:23] Production.INFO: ==19405== Releasing lock... [2025-01-05 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:18:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:19:04 [end_date_ymd] => 2025-01-05 07:19:04 [RateCDR] => 1 ) [2025-01-05 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:19:04' and `end` < '2025-01-05 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:19:18] Production.INFO: count ==21 [2025-01-05 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:19:04 - End Time 2025-01-05 07:19:04 [2025-01-05 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178647', 'tblTempUsageDetail_20' ) start [2025-01-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178647', 'tblTempUsageDetail_20' ) end [2025-01-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178647', 'tblTempVendorCDR_20' ) start [2025-01-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178647', 'tblTempVendorCDR_20' ) end [2025-01-05 07:19:18] Production.INFO: ProcessCDR(1,14178647,1,1,2) [2025-01-05 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178647', 'tblTempUsageDetail_20' ) start [2025-01-05 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178647', 'tblTempUsageDetail_20' ) end [2025-01-05 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:19:21] Production.INFO: ==19509== Releasing lock... [2025-01-05 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:20:05 [end_date_ymd] => 2025-01-05 07:20:05 [RateCDR] => 1 ) [2025-01-05 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:20:05' and `end` < '2025-01-05 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:20:18] Production.INFO: count ==21 [2025-01-05 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:20:05 - End Time 2025-01-05 07:20:05 [2025-01-05 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178653', 'tblTempUsageDetail_20' ) start [2025-01-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178653', 'tblTempUsageDetail_20' ) end [2025-01-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178653', 'tblTempVendorCDR_20' ) start [2025-01-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178653', 'tblTempVendorCDR_20' ) end [2025-01-05 07:20:18] Production.INFO: ProcessCDR(1,14178653,1,1,2) [2025-01-05 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178653', 'tblTempUsageDetail_20' ) start [2025-01-05 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178653', 'tblTempUsageDetail_20' ) end [2025-01-05 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:20:21] Production.INFO: ==19602== Releasing lock... [2025-01-05 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:21:05 [end_date_ymd] => 2025-01-05 07:21:05 [RateCDR] => 1 ) [2025-01-05 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:21:05' and `end` < '2025-01-05 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:21:18] Production.INFO: count ==21 [2025-01-05 07:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:21:05 - End Time 2025-01-05 07:21:05 [2025-01-05 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178658', 'tblTempUsageDetail_20' ) start [2025-01-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178658', 'tblTempUsageDetail_20' ) end [2025-01-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178658', 'tblTempVendorCDR_20' ) start [2025-01-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178658', 'tblTempVendorCDR_20' ) end [2025-01-05 07:21:18] Production.INFO: ProcessCDR(1,14178658,1,1,2) [2025-01-05 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178658', 'tblTempUsageDetail_20' ) start [2025-01-05 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178658', 'tblTempUsageDetail_20' ) end [2025-01-05 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:21:21] Production.INFO: ==19692== Releasing lock... [2025-01-05 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:22:05 [end_date_ymd] => 2025-01-05 07:22:05 [RateCDR] => 1 ) [2025-01-05 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:22:05' and `end` < '2025-01-05 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:22:19] Production.INFO: count ==21 [2025-01-05 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:22:05 - End Time 2025-01-05 07:22:05 [2025-01-05 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178663', 'tblTempUsageDetail_20' ) start [2025-01-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178663', 'tblTempUsageDetail_20' ) end [2025-01-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178663', 'tblTempVendorCDR_20' ) start [2025-01-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178663', 'tblTempVendorCDR_20' ) end [2025-01-05 07:22:19] Production.INFO: ProcessCDR(1,14178663,1,1,2) [2025-01-05 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178663', 'tblTempUsageDetail_20' ) start [2025-01-05 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178663', 'tblTempUsageDetail_20' ) end [2025-01-05 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:22:23] Production.INFO: ==19781== Releasing lock... [2025-01-05 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:22:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:23:06 [end_date_ymd] => 2025-01-05 07:23:06 [RateCDR] => 1 ) [2025-01-05 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:23:06' and `end` < '2025-01-05 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:23:19] Production.INFO: count ==21 [2025-01-05 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:23:06 - End Time 2025-01-05 07:23:06 [2025-01-05 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178668', 'tblTempUsageDetail_20' ) start [2025-01-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178668', 'tblTempUsageDetail_20' ) end [2025-01-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178668', 'tblTempVendorCDR_20' ) start [2025-01-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178668', 'tblTempVendorCDR_20' ) end [2025-01-05 07:23:19] Production.INFO: ProcessCDR(1,14178668,1,1,2) [2025-01-05 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178668', 'tblTempUsageDetail_20' ) start [2025-01-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178668', 'tblTempUsageDetail_20' ) end [2025-01-05 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:23:22] Production.INFO: ==19870== Releasing lock... [2025-01-05 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:23:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:24:05 [end_date_ymd] => 2025-01-05 07:24:05 [RateCDR] => 1 ) [2025-01-05 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:24:05' and `end` < '2025-01-05 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:24:19] Production.INFO: count ==21 [2025-01-05 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:24:05 - End Time 2025-01-05 07:24:05 [2025-01-05 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178673', 'tblTempUsageDetail_20' ) start [2025-01-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178673', 'tblTempUsageDetail_20' ) end [2025-01-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178673', 'tblTempVendorCDR_20' ) start [2025-01-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178673', 'tblTempVendorCDR_20' ) end [2025-01-05 07:24:19] Production.INFO: ProcessCDR(1,14178673,1,1,2) [2025-01-05 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178673', 'tblTempUsageDetail_20' ) start [2025-01-05 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178673', 'tblTempUsageDetail_20' ) end [2025-01-05 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:24:22] Production.INFO: ==19957== Releasing lock... [2025-01-05 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:24:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:25:05 [end_date_ymd] => 2025-01-05 07:25:05 [RateCDR] => 1 ) [2025-01-05 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:25:05' and `end` < '2025-01-05 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:25:18] Production.INFO: count ==21 [2025-01-05 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:25:05 - End Time 2025-01-05 07:25:05 [2025-01-05 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178678', 'tblTempUsageDetail_20' ) start [2025-01-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178678', 'tblTempUsageDetail_20' ) end [2025-01-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178678', 'tblTempVendorCDR_20' ) start [2025-01-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178678', 'tblTempVendorCDR_20' ) end [2025-01-05 07:25:18] Production.INFO: ProcessCDR(1,14178678,1,1,2) [2025-01-05 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178678', 'tblTempUsageDetail_20' ) start [2025-01-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178678', 'tblTempUsageDetail_20' ) end [2025-01-05 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:25:21] Production.INFO: ==20083== Releasing lock... [2025-01-05 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:26:05 [end_date_ymd] => 2025-01-05 07:26:05 [RateCDR] => 1 ) [2025-01-05 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:26:05' and `end` < '2025-01-05 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:26:17] Production.INFO: count ==21 [2025-01-05 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:26:05 - End Time 2025-01-05 07:26:05 [2025-01-05 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178683', 'tblTempUsageDetail_20' ) start [2025-01-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178683', 'tblTempUsageDetail_20' ) end [2025-01-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178683', 'tblTempVendorCDR_20' ) start [2025-01-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178683', 'tblTempVendorCDR_20' ) end [2025-01-05 07:26:17] Production.INFO: ProcessCDR(1,14178683,1,1,2) [2025-01-05 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178683', 'tblTempUsageDetail_20' ) start [2025-01-05 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178683', 'tblTempUsageDetail_20' ) end [2025-01-05 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:26:20] Production.INFO: ==20170== Releasing lock... [2025-01-05 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:27:05 [end_date_ymd] => 2025-01-05 07:27:05 [RateCDR] => 1 ) [2025-01-05 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:27:05' and `end` < '2025-01-05 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:27:17] Production.INFO: count ==21 [2025-01-05 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:27:05 - End Time 2025-01-05 07:27:05 [2025-01-05 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178688', 'tblTempUsageDetail_20' ) start [2025-01-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178688', 'tblTempUsageDetail_20' ) end [2025-01-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178688', 'tblTempVendorCDR_20' ) start [2025-01-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178688', 'tblTempVendorCDR_20' ) end [2025-01-05 07:27:17] Production.INFO: ProcessCDR(1,14178688,1,1,2) [2025-01-05 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178688', 'tblTempUsageDetail_20' ) start [2025-01-05 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178688', 'tblTempUsageDetail_20' ) end [2025-01-05 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:27:21] Production.INFO: ==20260== Releasing lock... [2025-01-05 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:28:05 [end_date_ymd] => 2025-01-05 07:28:05 [RateCDR] => 1 ) [2025-01-05 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:28:05' and `end` < '2025-01-05 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:28:18] Production.INFO: count ==21 [2025-01-05 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:28:05 - End Time 2025-01-05 07:28:05 [2025-01-05 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178693', 'tblTempUsageDetail_20' ) start [2025-01-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178693', 'tblTempUsageDetail_20' ) end [2025-01-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178693', 'tblTempVendorCDR_20' ) start [2025-01-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178693', 'tblTempVendorCDR_20' ) end [2025-01-05 07:28:19] Production.INFO: ProcessCDR(1,14178693,1,1,2) [2025-01-05 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178693', 'tblTempUsageDetail_20' ) start [2025-01-05 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178693', 'tblTempUsageDetail_20' ) end [2025-01-05 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:28:22] Production.INFO: ==20349== Releasing lock... [2025-01-05 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:28:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:29:04 [end_date_ymd] => 2025-01-05 07:29:04 [RateCDR] => 1 ) [2025-01-05 07:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:29:04' and `end` < '2025-01-05 07:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:29:18] Production.INFO: count ==21 [2025-01-05 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:29:04 - End Time 2025-01-05 07:29:04 [2025-01-05 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178698', 'tblTempUsageDetail_20' ) start [2025-01-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178698', 'tblTempUsageDetail_20' ) end [2025-01-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178698', 'tblTempVendorCDR_20' ) start [2025-01-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178698', 'tblTempVendorCDR_20' ) end [2025-01-05 07:29:18] Production.INFO: ProcessCDR(1,14178698,1,1,2) [2025-01-05 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178698', 'tblTempUsageDetail_20' ) start [2025-01-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178698', 'tblTempUsageDetail_20' ) end [2025-01-05 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:29:21] Production.INFO: ==20437== Releasing lock... [2025-01-05 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:30:06 [end_date_ymd] => 2025-01-05 07:30:06 [RateCDR] => 1 ) [2025-01-05 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:30:06' and `end` < '2025-01-05 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:30:18] Production.INFO: count ==17 [2025-01-05 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:30:06 - End Time 2025-01-05 07:30:06 [2025-01-05 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178704', 'tblTempUsageDetail_20' ) start [2025-01-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178704', 'tblTempUsageDetail_20' ) end [2025-01-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178704', 'tblTempVendorCDR_20' ) start [2025-01-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178704', 'tblTempVendorCDR_20' ) end [2025-01-05 07:30:18] Production.INFO: ProcessCDR(1,14178704,1,1,2) [2025-01-05 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178704', 'tblTempUsageDetail_20' ) start [2025-01-05 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178704', 'tblTempUsageDetail_20' ) end [2025-01-05 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:30:21] Production.INFO: ==20530== Releasing lock... [2025-01-05 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:31:04 [end_date_ymd] => 2025-01-05 07:31:04 [RateCDR] => 1 ) [2025-01-05 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:31:04' and `end` < '2025-01-05 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:31:18] Production.INFO: count ==17 [2025-01-05 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:31:04 - End Time 2025-01-05 07:31:04 [2025-01-05 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178709', 'tblTempUsageDetail_20' ) start [2025-01-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178709', 'tblTempUsageDetail_20' ) end [2025-01-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178709', 'tblTempVendorCDR_20' ) start [2025-01-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178709', 'tblTempVendorCDR_20' ) end [2025-01-05 07:31:18] Production.INFO: ProcessCDR(1,14178709,1,1,2) [2025-01-05 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178709', 'tblTempUsageDetail_20' ) start [2025-01-05 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178709', 'tblTempUsageDetail_20' ) end [2025-01-05 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:31:21] Production.INFO: ==20624== Releasing lock... [2025-01-05 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:32:05 [end_date_ymd] => 2025-01-05 07:32:05 [RateCDR] => 1 ) [2025-01-05 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:32:05' and `end` < '2025-01-05 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:32:19] Production.INFO: count ==17 [2025-01-05 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:32:05 - End Time 2025-01-05 07:32:05 [2025-01-05 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178714', 'tblTempUsageDetail_20' ) start [2025-01-05 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178714', 'tblTempUsageDetail_20' ) end [2025-01-05 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178714', 'tblTempVendorCDR_20' ) start [2025-01-05 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178714', 'tblTempVendorCDR_20' ) end [2025-01-05 07:32:19] Production.INFO: ProcessCDR(1,14178714,1,1,2) [2025-01-05 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178714', 'tblTempUsageDetail_20' ) start [2025-01-05 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178714', 'tblTempUsageDetail_20' ) end [2025-01-05 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:32:22] Production.INFO: ==20714== Releasing lock... [2025-01-05 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:32:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:33:04 [end_date_ymd] => 2025-01-05 07:33:04 [RateCDR] => 1 ) [2025-01-05 07:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:33:04' and `end` < '2025-01-05 07:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:33:18] Production.INFO: count ==17 [2025-01-05 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:33:04 - End Time 2025-01-05 07:33:04 [2025-01-05 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178719', 'tblTempUsageDetail_20' ) start [2025-01-05 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178719', 'tblTempUsageDetail_20' ) end [2025-01-05 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178719', 'tblTempVendorCDR_20' ) start [2025-01-05 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178719', 'tblTempVendorCDR_20' ) end [2025-01-05 07:33:18] Production.INFO: ProcessCDR(1,14178719,1,1,2) [2025-01-05 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178719', 'tblTempUsageDetail_20' ) start [2025-01-05 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178719', 'tblTempUsageDetail_20' ) end [2025-01-05 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:33:22] Production.INFO: ==20801== Releasing lock... [2025-01-05 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:33:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:34:05 [end_date_ymd] => 2025-01-05 07:34:05 [RateCDR] => 1 ) [2025-01-05 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:34:05' and `end` < '2025-01-05 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:34:19] Production.INFO: count ==17 [2025-01-05 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:34:05 - End Time 2025-01-05 07:34:05 [2025-01-05 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178724', 'tblTempUsageDetail_20' ) start [2025-01-05 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178724', 'tblTempUsageDetail_20' ) end [2025-01-05 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178724', 'tblTempVendorCDR_20' ) start [2025-01-05 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178724', 'tblTempVendorCDR_20' ) end [2025-01-05 07:34:19] Production.INFO: ProcessCDR(1,14178724,1,1,2) [2025-01-05 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178724', 'tblTempUsageDetail_20' ) start [2025-01-05 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178724', 'tblTempUsageDetail_20' ) end [2025-01-05 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:34:22] Production.INFO: ==20886== Releasing lock... [2025-01-05 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:34:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:35:05 [end_date_ymd] => 2025-01-05 07:35:05 [RateCDR] => 1 ) [2025-01-05 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:35:05' and `end` < '2025-01-05 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:35:18] Production.INFO: count ==17 [2025-01-05 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:35:05 - End Time 2025-01-05 07:35:05 [2025-01-05 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178729', 'tblTempUsageDetail_20' ) start [2025-01-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178729', 'tblTempUsageDetail_20' ) end [2025-01-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178729', 'tblTempVendorCDR_20' ) start [2025-01-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178729', 'tblTempVendorCDR_20' ) end [2025-01-05 07:35:18] Production.INFO: ProcessCDR(1,14178729,1,1,2) [2025-01-05 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178729', 'tblTempUsageDetail_20' ) start [2025-01-05 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178729', 'tblTempUsageDetail_20' ) end [2025-01-05 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:35:21] Production.INFO: ==20973== Releasing lock... [2025-01-05 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:36:04 [end_date_ymd] => 2025-01-05 07:36:04 [RateCDR] => 1 ) [2025-01-05 07:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:36:04' and `end` < '2025-01-05 07:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:36:17] Production.INFO: count ==17 [2025-01-05 07:36:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:36:04 - End Time 2025-01-05 07:36:04 [2025-01-05 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178734', 'tblTempUsageDetail_20' ) start [2025-01-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178734', 'tblTempUsageDetail_20' ) end [2025-01-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178734', 'tblTempVendorCDR_20' ) start [2025-01-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178734', 'tblTempVendorCDR_20' ) end [2025-01-05 07:36:17] Production.INFO: ProcessCDR(1,14178734,1,1,2) [2025-01-05 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178734', 'tblTempUsageDetail_20' ) start [2025-01-05 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178734', 'tblTempUsageDetail_20' ) end [2025-01-05 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:36:20] Production.INFO: ==21061== Releasing lock... [2025-01-05 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:36:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:37:05 [end_date_ymd] => 2025-01-05 07:37:05 [RateCDR] => 1 ) [2025-01-05 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:37:05' and `end` < '2025-01-05 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:37:18] Production.INFO: count ==17 [2025-01-05 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:37:05 - End Time 2025-01-05 07:37:05 [2025-01-05 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178739', 'tblTempUsageDetail_20' ) start [2025-01-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178739', 'tblTempUsageDetail_20' ) end [2025-01-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178739', 'tblTempVendorCDR_20' ) start [2025-01-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178739', 'tblTempVendorCDR_20' ) end [2025-01-05 07:37:18] Production.INFO: ProcessCDR(1,14178739,1,1,2) [2025-01-05 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178739', 'tblTempUsageDetail_20' ) start [2025-01-05 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178739', 'tblTempUsageDetail_20' ) end [2025-01-05 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:37:21] Production.INFO: ==21151== Releasing lock... [2025-01-05 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:38:05 [end_date_ymd] => 2025-01-05 07:38:05 [RateCDR] => 1 ) [2025-01-05 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:38:05' and `end` < '2025-01-05 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:38:18] Production.INFO: count ==17 [2025-01-05 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:38:05 - End Time 2025-01-05 07:38:05 [2025-01-05 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178744', 'tblTempUsageDetail_20' ) start [2025-01-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178744', 'tblTempUsageDetail_20' ) end [2025-01-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178744', 'tblTempVendorCDR_20' ) start [2025-01-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178744', 'tblTempVendorCDR_20' ) end [2025-01-05 07:38:18] Production.INFO: ProcessCDR(1,14178744,1,1,2) [2025-01-05 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178744', 'tblTempUsageDetail_20' ) start [2025-01-05 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178744', 'tblTempUsageDetail_20' ) end [2025-01-05 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:38:22] Production.INFO: ==21234== Releasing lock... [2025-01-05 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:38:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:39:05 [end_date_ymd] => 2025-01-05 07:39:05 [RateCDR] => 1 ) [2025-01-05 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:39:05' and `end` < '2025-01-05 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:39:18] Production.INFO: count ==17 [2025-01-05 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:39:05 - End Time 2025-01-05 07:39:05 [2025-01-05 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178749', 'tblTempUsageDetail_20' ) start [2025-01-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178749', 'tblTempUsageDetail_20' ) end [2025-01-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178749', 'tblTempVendorCDR_20' ) start [2025-01-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178749', 'tblTempVendorCDR_20' ) end [2025-01-05 07:39:18] Production.INFO: ProcessCDR(1,14178749,1,1,2) [2025-01-05 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178749', 'tblTempUsageDetail_20' ) start [2025-01-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178749', 'tblTempUsageDetail_20' ) end [2025-01-05 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:39:21] Production.INFO: ==21317== Releasing lock... [2025-01-05 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:40:05 [end_date_ymd] => 2025-01-05 07:40:05 [RateCDR] => 1 ) [2025-01-05 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:40:05' and `end` < '2025-01-05 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:40:18] Production.INFO: count ==17 [2025-01-05 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:40:05 - End Time 2025-01-05 07:40:05 [2025-01-05 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178755', 'tblTempUsageDetail_20' ) start [2025-01-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178755', 'tblTempUsageDetail_20' ) end [2025-01-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178755', 'tblTempVendorCDR_20' ) start [2025-01-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178755', 'tblTempVendorCDR_20' ) end [2025-01-05 07:40:18] Production.INFO: ProcessCDR(1,14178755,1,1,2) [2025-01-05 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178755', 'tblTempUsageDetail_20' ) start [2025-01-05 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178755', 'tblTempUsageDetail_20' ) end [2025-01-05 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:40:21] Production.INFO: ==21405== Releasing lock... [2025-01-05 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:41:06 [end_date_ymd] => 2025-01-05 07:41:06 [RateCDR] => 1 ) [2025-01-05 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:41:06' and `end` < '2025-01-05 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:41:19] Production.INFO: count ==17 [2025-01-05 07:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:41:06 - End Time 2025-01-05 07:41:06 [2025-01-05 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178760', 'tblTempUsageDetail_20' ) start [2025-01-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178760', 'tblTempUsageDetail_20' ) end [2025-01-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178760', 'tblTempVendorCDR_20' ) start [2025-01-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178760', 'tblTempVendorCDR_20' ) end [2025-01-05 07:41:19] Production.INFO: ProcessCDR(1,14178760,1,1,2) [2025-01-05 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178760', 'tblTempUsageDetail_20' ) start [2025-01-05 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178760', 'tblTempUsageDetail_20' ) end [2025-01-05 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:41:23] Production.INFO: ==21531== Releasing lock... [2025-01-05 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:41:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:42:04 [end_date_ymd] => 2025-01-05 07:42:04 [RateCDR] => 1 ) [2025-01-05 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:42:04' and `end` < '2025-01-05 07:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:42:17] Production.INFO: count ==17 [2025-01-05 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:42:04 - End Time 2025-01-05 07:42:04 [2025-01-05 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178765', 'tblTempUsageDetail_20' ) start [2025-01-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178765', 'tblTempUsageDetail_20' ) end [2025-01-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178765', 'tblTempVendorCDR_20' ) start [2025-01-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178765', 'tblTempVendorCDR_20' ) end [2025-01-05 07:42:17] Production.INFO: ProcessCDR(1,14178765,1,1,2) [2025-01-05 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178765', 'tblTempUsageDetail_20' ) start [2025-01-05 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178765', 'tblTempUsageDetail_20' ) end [2025-01-05 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:42:20] Production.INFO: ==21612== Releasing lock... [2025-01-05 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:42:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:43:05 [end_date_ymd] => 2025-01-05 07:43:05 [RateCDR] => 1 ) [2025-01-05 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:43:05' and `end` < '2025-01-05 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:43:19] Production.INFO: count ==17 [2025-01-05 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:43:05 - End Time 2025-01-05 07:43:05 [2025-01-05 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178770', 'tblTempUsageDetail_20' ) start [2025-01-05 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178770', 'tblTempUsageDetail_20' ) end [2025-01-05 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178770', 'tblTempVendorCDR_20' ) start [2025-01-05 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178770', 'tblTempVendorCDR_20' ) end [2025-01-05 07:43:19] Production.INFO: ProcessCDR(1,14178770,1,1,2) [2025-01-05 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178770', 'tblTempUsageDetail_20' ) start [2025-01-05 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178770', 'tblTempUsageDetail_20' ) end [2025-01-05 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:43:22] Production.INFO: ==21706== Releasing lock... [2025-01-05 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:43:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:44:05 [end_date_ymd] => 2025-01-05 07:44:05 [RateCDR] => 1 ) [2025-01-05 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:44:05' and `end` < '2025-01-05 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:44:19] Production.INFO: count ==17 [2025-01-05 07:44:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:44:05 - End Time 2025-01-05 07:44:05 [2025-01-05 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178775', 'tblTempUsageDetail_20' ) start [2025-01-05 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178775', 'tblTempUsageDetail_20' ) end [2025-01-05 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178775', 'tblTempVendorCDR_20' ) start [2025-01-05 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178775', 'tblTempVendorCDR_20' ) end [2025-01-05 07:44:19] Production.INFO: ProcessCDR(1,14178775,1,1,2) [2025-01-05 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178775', 'tblTempUsageDetail_20' ) start [2025-01-05 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178775', 'tblTempUsageDetail_20' ) end [2025-01-05 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:44:22] Production.INFO: ==21788== Releasing lock... [2025-01-05 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:44:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:45:05 [end_date_ymd] => 2025-01-05 07:45:05 [RateCDR] => 1 ) [2025-01-05 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:45:05' and `end` < '2025-01-05 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:45:17] Production.INFO: count ==17 [2025-01-05 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:45:05 - End Time 2025-01-05 07:45:05 [2025-01-05 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178780', 'tblTempUsageDetail_20' ) start [2025-01-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178780', 'tblTempUsageDetail_20' ) end [2025-01-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178780', 'tblTempVendorCDR_20' ) start [2025-01-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178780', 'tblTempVendorCDR_20' ) end [2025-01-05 07:45:17] Production.INFO: ProcessCDR(1,14178780,1,1,2) [2025-01-05 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178780', 'tblTempUsageDetail_20' ) start [2025-01-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178780', 'tblTempUsageDetail_20' ) end [2025-01-05 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:45:21] Production.INFO: ==21868== Releasing lock... [2025-01-05 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:46:05 [end_date_ymd] => 2025-01-05 07:46:05 [RateCDR] => 1 ) [2025-01-05 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:46:05' and `end` < '2025-01-05 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:46:17] Production.INFO: count ==17 [2025-01-05 07:46:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:46:05 - End Time 2025-01-05 07:46:05 [2025-01-05 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178785', 'tblTempUsageDetail_20' ) start [2025-01-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178785', 'tblTempUsageDetail_20' ) end [2025-01-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178785', 'tblTempVendorCDR_20' ) start [2025-01-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178785', 'tblTempVendorCDR_20' ) end [2025-01-05 07:46:17] Production.INFO: ProcessCDR(1,14178785,1,1,2) [2025-01-05 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178785', 'tblTempUsageDetail_20' ) start [2025-01-05 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178785', 'tblTempUsageDetail_20' ) end [2025-01-05 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:46:20] Production.INFO: ==21945== Releasing lock... [2025-01-05 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:46:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:47:05 [end_date_ymd] => 2025-01-05 07:47:05 [RateCDR] => 1 ) [2025-01-05 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:47:05' and `end` < '2025-01-05 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:47:18] Production.INFO: count ==17 [2025-01-05 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:47:05 - End Time 2025-01-05 07:47:05 [2025-01-05 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178790', 'tblTempUsageDetail_20' ) start [2025-01-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178790', 'tblTempUsageDetail_20' ) end [2025-01-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178790', 'tblTempVendorCDR_20' ) start [2025-01-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178790', 'tblTempVendorCDR_20' ) end [2025-01-05 07:47:18] Production.INFO: ProcessCDR(1,14178790,1,1,2) [2025-01-05 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178790', 'tblTempUsageDetail_20' ) start [2025-01-05 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178790', 'tblTempUsageDetail_20' ) end [2025-01-05 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:47:22] Production.INFO: ==22033== Releasing lock... [2025-01-05 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:47:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:48:05 [end_date_ymd] => 2025-01-05 07:48:05 [RateCDR] => 1 ) [2025-01-05 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:48:05' and `end` < '2025-01-05 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:48:18] Production.INFO: count ==17 [2025-01-05 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:48:05 - End Time 2025-01-05 07:48:05 [2025-01-05 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178795', 'tblTempUsageDetail_20' ) start [2025-01-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178795', 'tblTempUsageDetail_20' ) end [2025-01-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178795', 'tblTempVendorCDR_20' ) start [2025-01-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178795', 'tblTempVendorCDR_20' ) end [2025-01-05 07:48:18] Production.INFO: ProcessCDR(1,14178795,1,1,2) [2025-01-05 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178795', 'tblTempUsageDetail_20' ) start [2025-01-05 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178795', 'tblTempUsageDetail_20' ) end [2025-01-05 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:48:21] Production.INFO: ==22113== Releasing lock... [2025-01-05 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:48:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:49:05 [end_date_ymd] => 2025-01-05 07:49:05 [RateCDR] => 1 ) [2025-01-05 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:49:05' and `end` < '2025-01-05 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:49:18] Production.INFO: count ==17 [2025-01-05 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:49:05 - End Time 2025-01-05 07:49:05 [2025-01-05 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178800', 'tblTempUsageDetail_20' ) start [2025-01-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178800', 'tblTempUsageDetail_20' ) end [2025-01-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178800', 'tblTempVendorCDR_20' ) start [2025-01-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178800', 'tblTempVendorCDR_20' ) end [2025-01-05 07:49:18] Production.INFO: ProcessCDR(1,14178800,1,1,2) [2025-01-05 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178800', 'tblTempUsageDetail_20' ) start [2025-01-05 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178800', 'tblTempUsageDetail_20' ) end [2025-01-05 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:49:21] Production.INFO: ==22194== Releasing lock... [2025-01-05 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:50:05 [end_date_ymd] => 2025-01-05 07:50:05 [RateCDR] => 1 ) [2025-01-05 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:50:05' and `end` < '2025-01-05 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:50:19] Production.INFO: count ==15 [2025-01-05 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:50:05 - End Time 2025-01-05 07:50:05 [2025-01-05 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178806', 'tblTempUsageDetail_20' ) start [2025-01-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178806', 'tblTempUsageDetail_20' ) end [2025-01-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178806', 'tblTempVendorCDR_20' ) start [2025-01-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178806', 'tblTempVendorCDR_20' ) end [2025-01-05 07:50:19] Production.INFO: ProcessCDR(1,14178806,1,1,2) [2025-01-05 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178806', 'tblTempUsageDetail_20' ) start [2025-01-05 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178806', 'tblTempUsageDetail_20' ) end [2025-01-05 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:50:22] Production.INFO: ==22270== Releasing lock... [2025-01-05 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:50:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:51:05 [end_date_ymd] => 2025-01-05 07:51:05 [RateCDR] => 1 ) [2025-01-05 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:51:05' and `end` < '2025-01-05 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:51:19] Production.INFO: count ==15 [2025-01-05 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:51:05 - End Time 2025-01-05 07:51:05 [2025-01-05 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178811', 'tblTempUsageDetail_20' ) start [2025-01-05 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178811', 'tblTempUsageDetail_20' ) end [2025-01-05 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178811', 'tblTempVendorCDR_20' ) start [2025-01-05 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178811', 'tblTempVendorCDR_20' ) end [2025-01-05 07:51:19] Production.INFO: ProcessCDR(1,14178811,1,1,2) [2025-01-05 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178811', 'tblTempUsageDetail_20' ) start [2025-01-05 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178811', 'tblTempUsageDetail_20' ) end [2025-01-05 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:51:22] Production.INFO: ==22353== Releasing lock... [2025-01-05 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:51:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:52:04 [end_date_ymd] => 2025-01-05 07:52:04 [RateCDR] => 1 ) [2025-01-05 07:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:52:04' and `end` < '2025-01-05 07:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:52:17] Production.INFO: count ==15 [2025-01-05 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:52:04 - End Time 2025-01-05 07:52:04 [2025-01-05 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178816', 'tblTempUsageDetail_20' ) start [2025-01-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178816', 'tblTempUsageDetail_20' ) end [2025-01-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178816', 'tblTempVendorCDR_20' ) start [2025-01-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178816', 'tblTempVendorCDR_20' ) end [2025-01-05 07:52:17] Production.INFO: ProcessCDR(1,14178816,1,1,2) [2025-01-05 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178816', 'tblTempUsageDetail_20' ) start [2025-01-05 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178816', 'tblTempUsageDetail_20' ) end [2025-01-05 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:52:20] Production.INFO: ==22431== Releasing lock... [2025-01-05 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:52:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:53:05 [end_date_ymd] => 2025-01-05 07:53:05 [RateCDR] => 1 ) [2025-01-05 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:53:05' and `end` < '2025-01-05 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:53:18] Production.INFO: count ==15 [2025-01-05 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:53:05 - End Time 2025-01-05 07:53:05 [2025-01-05 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178821', 'tblTempUsageDetail_20' ) start [2025-01-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178821', 'tblTempUsageDetail_20' ) end [2025-01-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178821', 'tblTempVendorCDR_20' ) start [2025-01-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178821', 'tblTempVendorCDR_20' ) end [2025-01-05 07:53:18] Production.INFO: ProcessCDR(1,14178821,1,1,2) [2025-01-05 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178821', 'tblTempUsageDetail_20' ) start [2025-01-05 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178821', 'tblTempUsageDetail_20' ) end [2025-01-05 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:53:21] Production.INFO: ==22510== Releasing lock... [2025-01-05 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:54:05 [end_date_ymd] => 2025-01-05 07:54:05 [RateCDR] => 1 ) [2025-01-05 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:54:05' and `end` < '2025-01-05 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:54:18] Production.INFO: count ==15 [2025-01-05 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:54:05 - End Time 2025-01-05 07:54:05 [2025-01-05 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178826', 'tblTempUsageDetail_20' ) start [2025-01-05 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178826', 'tblTempUsageDetail_20' ) end [2025-01-05 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178826', 'tblTempVendorCDR_20' ) start [2025-01-05 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178826', 'tblTempVendorCDR_20' ) end [2025-01-05 07:54:19] Production.INFO: ProcessCDR(1,14178826,1,1,2) [2025-01-05 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178826', 'tblTempUsageDetail_20' ) start [2025-01-05 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178826', 'tblTempUsageDetail_20' ) end [2025-01-05 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:54:22] Production.INFO: ==22589== Releasing lock... [2025-01-05 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:54:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:55:05 [end_date_ymd] => 2025-01-05 07:55:05 [RateCDR] => 1 ) [2025-01-05 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:55:05' and `end` < '2025-01-05 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:55:17] Production.INFO: count ==13 [2025-01-05 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:55:05 - End Time 2025-01-05 07:55:05 [2025-01-05 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178831', 'tblTempUsageDetail_20' ) start [2025-01-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178831', 'tblTempUsageDetail_20' ) end [2025-01-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178831', 'tblTempVendorCDR_20' ) start [2025-01-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178831', 'tblTempVendorCDR_20' ) end [2025-01-05 07:55:17] Production.INFO: ProcessCDR(1,14178831,1,1,2) [2025-01-05 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178831', 'tblTempUsageDetail_20' ) start [2025-01-05 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178831', 'tblTempUsageDetail_20' ) end [2025-01-05 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:55:20] Production.INFO: ==22668== Releasing lock... [2025-01-05 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:55:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:56:05 [end_date_ymd] => 2025-01-05 07:56:05 [RateCDR] => 1 ) [2025-01-05 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:56:05' and `end` < '2025-01-05 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:56:19] Production.INFO: count ==13 [2025-01-05 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:56:05 - End Time 2025-01-05 07:56:05 [2025-01-05 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178836', 'tblTempUsageDetail_20' ) start [2025-01-05 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178836', 'tblTempUsageDetail_20' ) end [2025-01-05 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178836', 'tblTempVendorCDR_20' ) start [2025-01-05 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178836', 'tblTempVendorCDR_20' ) end [2025-01-05 07:56:19] Production.INFO: ProcessCDR(1,14178836,1,1,2) [2025-01-05 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178836', 'tblTempUsageDetail_20' ) start [2025-01-05 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178836', 'tblTempUsageDetail_20' ) end [2025-01-05 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:56:22] Production.INFO: ==22790== Releasing lock... [2025-01-05 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:56:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:57:04 [end_date_ymd] => 2025-01-05 07:57:04 [RateCDR] => 1 ) [2025-01-05 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:57:04' and `end` < '2025-01-05 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:57:17] Production.INFO: count ==13 [2025-01-05 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-05 04:57:04 - End Time 2025-01-05 07:57:04 [2025-01-05 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178841', 'tblTempUsageDetail_20' ) start [2025-01-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178841', 'tblTempUsageDetail_20' ) end [2025-01-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178841', 'tblTempVendorCDR_20' ) start [2025-01-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178841', 'tblTempVendorCDR_20' ) end [2025-01-05 07:57:17] Production.INFO: ProcessCDR(1,14178841,1,1,2) [2025-01-05 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178841', 'tblTempUsageDetail_20' ) start [2025-01-05 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178841', 'tblTempUsageDetail_20' ) end [2025-01-05 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:57:20] Production.INFO: ==22864== Releasing lock... [2025-01-05 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:57:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:58:05 [end_date_ymd] => 2025-01-05 07:58:05 [RateCDR] => 1 ) [2025-01-05 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:58:05' and `end` < '2025-01-05 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:58:19] Production.INFO: count ==13 [2025-01-05 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 04:58:05 - End Time 2025-01-05 07:58:05 [2025-01-05 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178846', 'tblTempUsageDetail_20' ) start [2025-01-05 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178846', 'tblTempUsageDetail_20' ) end [2025-01-05 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178846', 'tblTempVendorCDR_20' ) start [2025-01-05 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178846', 'tblTempVendorCDR_20' ) end [2025-01-05 07:58:19] Production.INFO: ProcessCDR(1,14178846,1,1,2) [2025-01-05 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178846', 'tblTempUsageDetail_20' ) start [2025-01-05 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178846', 'tblTempUsageDetail_20' ) end [2025-01-05 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:58:22] Production.INFO: ==22943== Releasing lock... [2025-01-05 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:58:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 04:59:05 [end_date_ymd] => 2025-01-05 07:59:05 [RateCDR] => 1 ) [2025-01-05 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 04:59:05' and `end` < '2025-01-05 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 07:59:18] Production.INFO: count ==13 [2025-01-05 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 04:59:05 - End Time 2025-01-05 07:59:05 [2025-01-05 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178851', 'tblTempUsageDetail_20' ) start [2025-01-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178851', 'tblTempUsageDetail_20' ) end [2025-01-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178851', 'tblTempVendorCDR_20' ) start [2025-01-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178851', 'tblTempVendorCDR_20' ) end [2025-01-05 07:59:18] Production.INFO: ProcessCDR(1,14178851,1,1,2) [2025-01-05 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178851', 'tblTempUsageDetail_20' ) start [2025-01-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178851', 'tblTempUsageDetail_20' ) end [2025-01-05 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 07:59:21] Production.INFO: ==23020== Releasing lock... [2025-01-05 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 07:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:00:06 [end_date_ymd] => 2025-01-05 08:00:06 [RateCDR] => 1 ) [2025-01-05 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:00:06' and `end` < '2025-01-05 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:00:20] Production.INFO: count ==9 [2025-01-05 08:00:20] Production.ERROR: pbx CDR StartTime 2025-01-05 05:00:06 - End Time 2025-01-05 08:00:06 [2025-01-05 08:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178857', 'tblTempUsageDetail_20' ) start [2025-01-05 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178857', 'tblTempUsageDetail_20' ) end [2025-01-05 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178857', 'tblTempVendorCDR_20' ) start [2025-01-05 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178857', 'tblTempVendorCDR_20' ) end [2025-01-05 08:00:20] Production.INFO: ProcessCDR(1,14178857,1,1,2) [2025-01-05 08:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178857', 'tblTempUsageDetail_20' ) start [2025-01-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178857', 'tblTempUsageDetail_20' ) end [2025-01-05 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:00:23] Production.INFO: ==23103== Releasing lock... [2025-01-05 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:00:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:01:05 [end_date_ymd] => 2025-01-05 08:01:05 [RateCDR] => 1 ) [2025-01-05 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:01:05' and `end` < '2025-01-05 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:01:19] Production.INFO: count ==9 [2025-01-05 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:01:05 - End Time 2025-01-05 08:01:05 [2025-01-05 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178862', 'tblTempUsageDetail_20' ) start [2025-01-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178862', 'tblTempUsageDetail_20' ) end [2025-01-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178862', 'tblTempVendorCDR_20' ) start [2025-01-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178862', 'tblTempVendorCDR_20' ) end [2025-01-05 08:01:19] Production.INFO: ProcessCDR(1,14178862,1,1,2) [2025-01-05 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178862', 'tblTempUsageDetail_20' ) start [2025-01-05 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178862', 'tblTempUsageDetail_20' ) end [2025-01-05 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:01:22] Production.INFO: ==23197== Releasing lock... [2025-01-05 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:01:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:02:05 [end_date_ymd] => 2025-01-05 08:02:05 [RateCDR] => 1 ) [2025-01-05 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:02:05' and `end` < '2025-01-05 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:02:18] Production.INFO: count ==9 [2025-01-05 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:02:05 - End Time 2025-01-05 08:02:05 [2025-01-05 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178867', 'tblTempUsageDetail_20' ) start [2025-01-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178867', 'tblTempUsageDetail_20' ) end [2025-01-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178867', 'tblTempVendorCDR_20' ) start [2025-01-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178867', 'tblTempVendorCDR_20' ) end [2025-01-05 08:02:18] Production.INFO: ProcessCDR(1,14178867,1,1,2) [2025-01-05 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178867', 'tblTempUsageDetail_20' ) start [2025-01-05 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178867', 'tblTempUsageDetail_20' ) end [2025-01-05 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:02:21] Production.INFO: ==23273== Releasing lock... [2025-01-05 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:03:05 [end_date_ymd] => 2025-01-05 08:03:05 [RateCDR] => 1 ) [2025-01-05 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:03:05' and `end` < '2025-01-05 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:03:17] Production.INFO: count ==9 [2025-01-05 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:03:05 - End Time 2025-01-05 08:03:05 [2025-01-05 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178872', 'tblTempUsageDetail_20' ) start [2025-01-05 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178872', 'tblTempUsageDetail_20' ) end [2025-01-05 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178872', 'tblTempVendorCDR_20' ) start [2025-01-05 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178872', 'tblTempVendorCDR_20' ) end [2025-01-05 08:03:17] Production.INFO: ProcessCDR(1,14178872,1,1,2) [2025-01-05 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178872', 'tblTempUsageDetail_20' ) start [2025-01-05 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178872', 'tblTempUsageDetail_20' ) end [2025-01-05 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:03:20] Production.INFO: ==23348== Releasing lock... [2025-01-05 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:03:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:04:04 [end_date_ymd] => 2025-01-05 08:04:04 [RateCDR] => 1 ) [2025-01-05 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:04:04' and `end` < '2025-01-05 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:04:17] Production.INFO: count ==9 [2025-01-05 08:04:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:04:04 - End Time 2025-01-05 08:04:04 [2025-01-05 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178874', 'tblTempUsageDetail_20' ) start [2025-01-05 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178874', 'tblTempUsageDetail_20' ) end [2025-01-05 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178874', 'tblTempVendorCDR_20' ) start [2025-01-05 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178874', 'tblTempVendorCDR_20' ) end [2025-01-05 08:04:17] Production.INFO: ProcessCDR(1,14178874,1,1,2) [2025-01-05 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178874', 'tblTempUsageDetail_20' ) start [2025-01-05 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178874', 'tblTempUsageDetail_20' ) end [2025-01-05 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:04:20] Production.INFO: ==23423== Releasing lock... [2025-01-05 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:04:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:05:05 [end_date_ymd] => 2025-01-05 08:05:05 [RateCDR] => 1 ) [2025-01-05 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:05:05' and `end` < '2025-01-05 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:05:18] Production.INFO: count ==9 [2025-01-05 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:05:05 - End Time 2025-01-05 08:05:05 [2025-01-05 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178882', 'tblTempUsageDetail_20' ) start [2025-01-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178882', 'tblTempUsageDetail_20' ) end [2025-01-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178882', 'tblTempVendorCDR_20' ) start [2025-01-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178882', 'tblTempVendorCDR_20' ) end [2025-01-05 08:05:18] Production.INFO: ProcessCDR(1,14178882,1,1,2) [2025-01-05 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178882', 'tblTempUsageDetail_20' ) start [2025-01-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178882', 'tblTempUsageDetail_20' ) end [2025-01-05 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:05:21] Production.INFO: ==23502== Releasing lock... [2025-01-05 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:06:04 [end_date_ymd] => 2025-01-05 08:06:04 [RateCDR] => 1 ) [2025-01-05 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:06:04' and `end` < '2025-01-05 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:06:17] Production.INFO: count ==9 [2025-01-05 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:06:04 - End Time 2025-01-05 08:06:04 [2025-01-05 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178887', 'tblTempUsageDetail_20' ) start [2025-01-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178887', 'tblTempUsageDetail_20' ) end [2025-01-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178887', 'tblTempVendorCDR_20' ) start [2025-01-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178887', 'tblTempVendorCDR_20' ) end [2025-01-05 08:06:17] Production.INFO: ProcessCDR(1,14178887,1,1,2) [2025-01-05 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178887', 'tblTempUsageDetail_20' ) start [2025-01-05 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178887', 'tblTempUsageDetail_20' ) end [2025-01-05 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:06:20] Production.INFO: ==23578== Releasing lock... [2025-01-05 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:06:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:07:04 [end_date_ymd] => 2025-01-05 08:07:04 [RateCDR] => 1 ) [2025-01-05 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:07:04' and `end` < '2025-01-05 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:07:17] Production.INFO: count ==9 [2025-01-05 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:07:04 - End Time 2025-01-05 08:07:04 [2025-01-05 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178892', 'tblTempUsageDetail_20' ) start [2025-01-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178892', 'tblTempUsageDetail_20' ) end [2025-01-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178892', 'tblTempVendorCDR_20' ) start [2025-01-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178892', 'tblTempVendorCDR_20' ) end [2025-01-05 08:07:17] Production.INFO: ProcessCDR(1,14178892,1,1,2) [2025-01-05 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178892', 'tblTempUsageDetail_20' ) start [2025-01-05 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178892', 'tblTempUsageDetail_20' ) end [2025-01-05 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:07:20] Production.INFO: ==23658== Releasing lock... [2025-01-05 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:07:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:08:05 [end_date_ymd] => 2025-01-05 08:08:05 [RateCDR] => 1 ) [2025-01-05 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:08:05' and `end` < '2025-01-05 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:08:19] Production.INFO: count ==9 [2025-01-05 08:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:08:05 - End Time 2025-01-05 08:08:05 [2025-01-05 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178897', 'tblTempUsageDetail_20' ) start [2025-01-05 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178897', 'tblTempUsageDetail_20' ) end [2025-01-05 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178897', 'tblTempVendorCDR_20' ) start [2025-01-05 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178897', 'tblTempVendorCDR_20' ) end [2025-01-05 08:08:19] Production.INFO: ProcessCDR(1,14178897,1,1,2) [2025-01-05 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178897', 'tblTempUsageDetail_20' ) start [2025-01-05 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178897', 'tblTempUsageDetail_20' ) end [2025-01-05 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:08:22] Production.INFO: ==23733== Releasing lock... [2025-01-05 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:09:05 [end_date_ymd] => 2025-01-05 08:09:05 [RateCDR] => 1 ) [2025-01-05 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:09:05' and `end` < '2025-01-05 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:09:18] Production.INFO: count ==9 [2025-01-05 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:09:05 - End Time 2025-01-05 08:09:05 [2025-01-05 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178902', 'tblTempUsageDetail_20' ) start [2025-01-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178902', 'tblTempUsageDetail_20' ) end [2025-01-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178902', 'tblTempVendorCDR_20' ) start [2025-01-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178902', 'tblTempVendorCDR_20' ) end [2025-01-05 08:09:18] Production.INFO: ProcessCDR(1,14178902,1,1,2) [2025-01-05 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178902', 'tblTempUsageDetail_20' ) start [2025-01-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178902', 'tblTempUsageDetail_20' ) end [2025-01-05 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:09:21] Production.INFO: ==23813== Releasing lock... [2025-01-05 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:10:06 [end_date_ymd] => 2025-01-05 08:10:06 [RateCDR] => 1 ) [2025-01-05 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:10:06' and `end` < '2025-01-05 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:10:18] Production.INFO: count ==9 [2025-01-05 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:10:06 - End Time 2025-01-05 08:10:06 [2025-01-05 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178908', 'tblTempUsageDetail_20' ) start [2025-01-05 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178908', 'tblTempUsageDetail_20' ) end [2025-01-05 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178908', 'tblTempVendorCDR_20' ) start [2025-01-05 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178908', 'tblTempVendorCDR_20' ) end [2025-01-05 08:10:18] Production.INFO: ProcessCDR(1,14178908,1,1,2) [2025-01-05 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178908', 'tblTempUsageDetail_20' ) start [2025-01-05 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178908', 'tblTempUsageDetail_20' ) end [2025-01-05 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:10:22] Production.INFO: ==23889== Releasing lock... [2025-01-05 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:10:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:11:05 [end_date_ymd] => 2025-01-05 08:11:05 [RateCDR] => 1 ) [2025-01-05 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:11:05' and `end` < '2025-01-05 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:11:18] Production.INFO: count ==9 [2025-01-05 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:11:05 - End Time 2025-01-05 08:11:05 [2025-01-05 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178913', 'tblTempUsageDetail_20' ) start [2025-01-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178913', 'tblTempUsageDetail_20' ) end [2025-01-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178913', 'tblTempVendorCDR_20' ) start [2025-01-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178913', 'tblTempVendorCDR_20' ) end [2025-01-05 08:11:18] Production.INFO: ProcessCDR(1,14178913,1,1,2) [2025-01-05 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178913', 'tblTempUsageDetail_20' ) start [2025-01-05 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178913', 'tblTempUsageDetail_20' ) end [2025-01-05 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:11:21] Production.INFO: ==23968== Releasing lock... [2025-01-05 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:11:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:12:06 [end_date_ymd] => 2025-01-05 08:12:06 [RateCDR] => 1 ) [2025-01-05 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:12:06' and `end` < '2025-01-05 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:12:19] Production.INFO: count ==9 [2025-01-05 08:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:12:06 - End Time 2025-01-05 08:12:06 [2025-01-05 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178918', 'tblTempUsageDetail_20' ) start [2025-01-05 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178918', 'tblTempUsageDetail_20' ) end [2025-01-05 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178918', 'tblTempVendorCDR_20' ) start [2025-01-05 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178918', 'tblTempVendorCDR_20' ) end [2025-01-05 08:12:19] Production.INFO: ProcessCDR(1,14178918,1,1,2) [2025-01-05 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178918', 'tblTempUsageDetail_20' ) start [2025-01-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178918', 'tblTempUsageDetail_20' ) end [2025-01-05 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:12:22] Production.INFO: ==24105== Releasing lock... [2025-01-05 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:12:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:13:05 [end_date_ymd] => 2025-01-05 08:13:05 [RateCDR] => 1 ) [2025-01-05 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:13:05' and `end` < '2025-01-05 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:13:18] Production.INFO: count ==9 [2025-01-05 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:13:05 - End Time 2025-01-05 08:13:05 [2025-01-05 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178923', 'tblTempUsageDetail_20' ) start [2025-01-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178923', 'tblTempUsageDetail_20' ) end [2025-01-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178923', 'tblTempVendorCDR_20' ) start [2025-01-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178923', 'tblTempVendorCDR_20' ) end [2025-01-05 08:13:18] Production.INFO: ProcessCDR(1,14178923,1,1,2) [2025-01-05 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178923', 'tblTempUsageDetail_20' ) start [2025-01-05 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178923', 'tblTempUsageDetail_20' ) end [2025-01-05 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:13:21] Production.INFO: ==24181== Releasing lock... [2025-01-05 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:13:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:14:05 [end_date_ymd] => 2025-01-05 08:14:05 [RateCDR] => 1 ) [2025-01-05 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:14:05' and `end` < '2025-01-05 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:14:18] Production.INFO: count ==9 [2025-01-05 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:14:05 - End Time 2025-01-05 08:14:05 [2025-01-05 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178928', 'tblTempUsageDetail_20' ) start [2025-01-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178928', 'tblTempUsageDetail_20' ) end [2025-01-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178928', 'tblTempVendorCDR_20' ) start [2025-01-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178928', 'tblTempVendorCDR_20' ) end [2025-01-05 08:14:18] Production.INFO: ProcessCDR(1,14178928,1,1,2) [2025-01-05 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178928', 'tblTempUsageDetail_20' ) start [2025-01-05 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178928', 'tblTempUsageDetail_20' ) end [2025-01-05 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:14:21] Production.INFO: ==24258== Releasing lock... [2025-01-05 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:15:05 [end_date_ymd] => 2025-01-05 08:15:05 [RateCDR] => 1 ) [2025-01-05 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:15:05' and `end` < '2025-01-05 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:15:17] Production.INFO: count ==9 [2025-01-05 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:15:05 - End Time 2025-01-05 08:15:05 [2025-01-05 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178933', 'tblTempUsageDetail_20' ) start [2025-01-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178933', 'tblTempUsageDetail_20' ) end [2025-01-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178933', 'tblTempVendorCDR_20' ) start [2025-01-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178933', 'tblTempVendorCDR_20' ) end [2025-01-05 08:15:17] Production.INFO: ProcessCDR(1,14178933,1,1,2) [2025-01-05 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178933', 'tblTempUsageDetail_20' ) start [2025-01-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178933', 'tblTempUsageDetail_20' ) end [2025-01-05 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:15:21] Production.INFO: ==24334== Releasing lock... [2025-01-05 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:15:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:16:05 [end_date_ymd] => 2025-01-05 08:16:05 [RateCDR] => 1 ) [2025-01-05 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:16:05' and `end` < '2025-01-05 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:16:18] Production.INFO: count ==9 [2025-01-05 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:16:05 - End Time 2025-01-05 08:16:05 [2025-01-05 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178938', 'tblTempUsageDetail_20' ) start [2025-01-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178938', 'tblTempUsageDetail_20' ) end [2025-01-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178938', 'tblTempVendorCDR_20' ) start [2025-01-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178938', 'tblTempVendorCDR_20' ) end [2025-01-05 08:16:18] Production.INFO: ProcessCDR(1,14178938,1,1,2) [2025-01-05 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178938', 'tblTempUsageDetail_20' ) start [2025-01-05 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178938', 'tblTempUsageDetail_20' ) end [2025-01-05 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:16:21] Production.INFO: ==24410== Releasing lock... [2025-01-05 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:17:05 [end_date_ymd] => 2025-01-05 08:17:05 [RateCDR] => 1 ) [2025-01-05 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:17:05' and `end` < '2025-01-05 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:17:17] Production.INFO: count ==9 [2025-01-05 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:17:05 - End Time 2025-01-05 08:17:05 [2025-01-05 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178943', 'tblTempUsageDetail_20' ) start [2025-01-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178943', 'tblTempUsageDetail_20' ) end [2025-01-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178943', 'tblTempVendorCDR_20' ) start [2025-01-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178943', 'tblTempVendorCDR_20' ) end [2025-01-05 08:17:17] Production.INFO: ProcessCDR(1,14178943,1,1,2) [2025-01-05 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178943', 'tblTempUsageDetail_20' ) start [2025-01-05 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178943', 'tblTempUsageDetail_20' ) end [2025-01-05 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:17:20] Production.INFO: ==24492== Releasing lock... [2025-01-05 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:17:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:18:05 [end_date_ymd] => 2025-01-05 08:18:05 [RateCDR] => 1 ) [2025-01-05 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:18:05' and `end` < '2025-01-05 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:18:19] Production.INFO: count ==9 [2025-01-05 08:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:18:05 - End Time 2025-01-05 08:18:05 [2025-01-05 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178948', 'tblTempUsageDetail_20' ) start [2025-01-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178948', 'tblTempUsageDetail_20' ) end [2025-01-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178948', 'tblTempVendorCDR_20' ) start [2025-01-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178948', 'tblTempVendorCDR_20' ) end [2025-01-05 08:18:19] Production.INFO: ProcessCDR(1,14178948,1,1,2) [2025-01-05 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178948', 'tblTempUsageDetail_20' ) start [2025-01-05 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178948', 'tblTempUsageDetail_20' ) end [2025-01-05 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:18:22] Production.INFO: ==24579== Releasing lock... [2025-01-05 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:18:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:19:04 [end_date_ymd] => 2025-01-05 08:19:04 [RateCDR] => 1 ) [2025-01-05 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:19:04' and `end` < '2025-01-05 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:19:18] Production.INFO: count ==9 [2025-01-05 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:19:04 - End Time 2025-01-05 08:19:04 [2025-01-05 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178953', 'tblTempUsageDetail_20' ) start [2025-01-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178953', 'tblTempUsageDetail_20' ) end [2025-01-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178953', 'tblTempVendorCDR_20' ) start [2025-01-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178953', 'tblTempVendorCDR_20' ) end [2025-01-05 08:19:18] Production.INFO: ProcessCDR(1,14178953,1,1,2) [2025-01-05 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178953', 'tblTempUsageDetail_20' ) start [2025-01-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178953', 'tblTempUsageDetail_20' ) end [2025-01-05 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:19:21] Production.INFO: ==24656== Releasing lock... [2025-01-05 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:20:05 [end_date_ymd] => 2025-01-05 08:20:05 [RateCDR] => 1 ) [2025-01-05 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:20:05' and `end` < '2025-01-05 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:20:18] Production.INFO: count ==9 [2025-01-05 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:20:05 - End Time 2025-01-05 08:20:05 [2025-01-05 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178958', 'tblTempUsageDetail_20' ) start [2025-01-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178958', 'tblTempUsageDetail_20' ) end [2025-01-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178958', 'tblTempVendorCDR_20' ) start [2025-01-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178958', 'tblTempVendorCDR_20' ) end [2025-01-05 08:20:18] Production.INFO: ProcessCDR(1,14178958,1,1,2) [2025-01-05 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178958', 'tblTempUsageDetail_20' ) start [2025-01-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178958', 'tblTempUsageDetail_20' ) end [2025-01-05 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:20:21] Production.INFO: ==24734== Releasing lock... [2025-01-05 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:21:06 [end_date_ymd] => 2025-01-05 08:21:06 [RateCDR] => 1 ) [2025-01-05 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:21:06' and `end` < '2025-01-05 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:21:18] Production.INFO: count ==9 [2025-01-05 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:21:06 - End Time 2025-01-05 08:21:06 [2025-01-05 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178964', 'tblTempUsageDetail_20' ) start [2025-01-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178964', 'tblTempUsageDetail_20' ) end [2025-01-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178964', 'tblTempVendorCDR_20' ) start [2025-01-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178964', 'tblTempVendorCDR_20' ) end [2025-01-05 08:21:18] Production.INFO: ProcessCDR(1,14178964,1,1,2) [2025-01-05 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178964', 'tblTempUsageDetail_20' ) start [2025-01-05 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178964', 'tblTempUsageDetail_20' ) end [2025-01-05 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:21:22] Production.INFO: ==24812== Releasing lock... [2025-01-05 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:21:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:22:05 [end_date_ymd] => 2025-01-05 08:22:05 [RateCDR] => 1 ) [2025-01-05 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:22:05' and `end` < '2025-01-05 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:22:19] Production.INFO: count ==9 [2025-01-05 08:22:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:22:05 - End Time 2025-01-05 08:22:05 [2025-01-05 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178969', 'tblTempUsageDetail_20' ) start [2025-01-05 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178969', 'tblTempUsageDetail_20' ) end [2025-01-05 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178969', 'tblTempVendorCDR_20' ) start [2025-01-05 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178969', 'tblTempVendorCDR_20' ) end [2025-01-05 08:22:19] Production.INFO: ProcessCDR(1,14178969,1,1,2) [2025-01-05 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178969', 'tblTempUsageDetail_20' ) start [2025-01-05 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178969', 'tblTempUsageDetail_20' ) end [2025-01-05 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:22:22] Production.INFO: ==24889== Releasing lock... [2025-01-05 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:23:05 [end_date_ymd] => 2025-01-05 08:23:05 [RateCDR] => 1 ) [2025-01-05 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:23:05' and `end` < '2025-01-05 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:23:19] Production.INFO: count ==9 [2025-01-05 08:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:23:05 - End Time 2025-01-05 08:23:05 [2025-01-05 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178974', 'tblTempUsageDetail_20' ) start [2025-01-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178974', 'tblTempUsageDetail_20' ) end [2025-01-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178974', 'tblTempVendorCDR_20' ) start [2025-01-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178974', 'tblTempVendorCDR_20' ) end [2025-01-05 08:23:19] Production.INFO: ProcessCDR(1,14178974,1,1,2) [2025-01-05 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178974', 'tblTempUsageDetail_20' ) start [2025-01-05 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178974', 'tblTempUsageDetail_20' ) end [2025-01-05 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:23:22] Production.INFO: ==24964== Releasing lock... [2025-01-05 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:23:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:24:04 [end_date_ymd] => 2025-01-05 08:24:04 [RateCDR] => 1 ) [2025-01-05 08:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:24:04' and `end` < '2025-01-05 08:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:24:17] Production.INFO: count ==9 [2025-01-05 08:24:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:24:04 - End Time 2025-01-05 08:24:04 [2025-01-05 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178979', 'tblTempUsageDetail_20' ) start [2025-01-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178979', 'tblTempUsageDetail_20' ) end [2025-01-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178979', 'tblTempVendorCDR_20' ) start [2025-01-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178979', 'tblTempVendorCDR_20' ) end [2025-01-05 08:24:17] Production.INFO: ProcessCDR(1,14178979,1,1,2) [2025-01-05 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178979', 'tblTempUsageDetail_20' ) start [2025-01-05 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178979', 'tblTempUsageDetail_20' ) end [2025-01-05 08:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:24:20] Production.INFO: ==25042== Releasing lock... [2025-01-05 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:24:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:25:05 [end_date_ymd] => 2025-01-05 08:25:05 [RateCDR] => 1 ) [2025-01-05 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:25:05' and `end` < '2025-01-05 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:25:18] Production.INFO: count ==9 [2025-01-05 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:25:05 - End Time 2025-01-05 08:25:05 [2025-01-05 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178984', 'tblTempUsageDetail_20' ) start [2025-01-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178984', 'tblTempUsageDetail_20' ) end [2025-01-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178984', 'tblTempVendorCDR_20' ) start [2025-01-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178984', 'tblTempVendorCDR_20' ) end [2025-01-05 08:25:18] Production.INFO: ProcessCDR(1,14178984,1,1,2) [2025-01-05 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178984', 'tblTempUsageDetail_20' ) start [2025-01-05 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178984', 'tblTempUsageDetail_20' ) end [2025-01-05 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:25:21] Production.INFO: ==25122== Releasing lock... [2025-01-05 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:26:04 [end_date_ymd] => 2025-01-05 08:26:04 [RateCDR] => 1 ) [2025-01-05 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:26:04' and `end` < '2025-01-05 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:26:18] Production.INFO: count ==9 [2025-01-05 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:26:04 - End Time 2025-01-05 08:26:04 [2025-01-05 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178989', 'tblTempUsageDetail_20' ) start [2025-01-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178989', 'tblTempUsageDetail_20' ) end [2025-01-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178989', 'tblTempVendorCDR_20' ) start [2025-01-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178989', 'tblTempVendorCDR_20' ) end [2025-01-05 08:26:18] Production.INFO: ProcessCDR(1,14178989,1,1,2) [2025-01-05 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178989', 'tblTempUsageDetail_20' ) start [2025-01-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178989', 'tblTempUsageDetail_20' ) end [2025-01-05 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:26:21] Production.INFO: ==25196== Releasing lock... [2025-01-05 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:27:05 [end_date_ymd] => 2025-01-05 08:27:05 [RateCDR] => 1 ) [2025-01-05 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:27:05' and `end` < '2025-01-05 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:27:17] Production.INFO: count ==9 [2025-01-05 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:27:05 - End Time 2025-01-05 08:27:05 [2025-01-05 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178994', 'tblTempUsageDetail_20' ) start [2025-01-05 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178994', 'tblTempUsageDetail_20' ) end [2025-01-05 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178994', 'tblTempVendorCDR_20' ) start [2025-01-05 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178994', 'tblTempVendorCDR_20' ) end [2025-01-05 08:27:17] Production.INFO: ProcessCDR(1,14178994,1,1,2) [2025-01-05 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178994', 'tblTempUsageDetail_20' ) start [2025-01-05 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178994', 'tblTempUsageDetail_20' ) end [2025-01-05 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:27:21] Production.INFO: ==25273== Releasing lock... [2025-01-05 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:28:05 [end_date_ymd] => 2025-01-05 08:28:05 [RateCDR] => 1 ) [2025-01-05 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:28:05' and `end` < '2025-01-05 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:28:18] Production.INFO: count ==9 [2025-01-05 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:28:05 - End Time 2025-01-05 08:28:05 [2025-01-05 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178999', 'tblTempUsageDetail_20' ) start [2025-01-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14178999', 'tblTempUsageDetail_20' ) end [2025-01-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178999', 'tblTempVendorCDR_20' ) start [2025-01-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14178999', 'tblTempVendorCDR_20' ) end [2025-01-05 08:28:18] Production.INFO: ProcessCDR(1,14178999,1,1,2) [2025-01-05 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14178999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14178999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14178999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14178999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178999', 'tblTempUsageDetail_20' ) start [2025-01-05 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14178999', 'tblTempUsageDetail_20' ) end [2025-01-05 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:28:21] Production.INFO: ==25388== Releasing lock... [2025-01-05 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:29:05 [end_date_ymd] => 2025-01-05 08:29:05 [RateCDR] => 1 ) [2025-01-05 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:29:05' and `end` < '2025-01-05 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:29:18] Production.INFO: count ==9 [2025-01-05 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:29:05 - End Time 2025-01-05 08:29:05 [2025-01-05 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179004', 'tblTempUsageDetail_20' ) start [2025-01-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179004', 'tblTempUsageDetail_20' ) end [2025-01-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179004', 'tblTempVendorCDR_20' ) start [2025-01-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179004', 'tblTempVendorCDR_20' ) end [2025-01-05 08:29:18] Production.INFO: ProcessCDR(1,14179004,1,1,2) [2025-01-05 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179004', 'tblTempUsageDetail_20' ) start [2025-01-05 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179004', 'tblTempUsageDetail_20' ) end [2025-01-05 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:29:21] Production.INFO: ==25462== Releasing lock... [2025-01-05 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:30:06 [end_date_ymd] => 2025-01-05 08:30:06 [RateCDR] => 1 ) [2025-01-05 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:30:06' and `end` < '2025-01-05 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:30:19] Production.INFO: count ==19 [2025-01-05 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:30:06 - End Time 2025-01-05 08:30:06 [2025-01-05 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179009', 'tblTempUsageDetail_20' ) start [2025-01-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179009', 'tblTempUsageDetail_20' ) end [2025-01-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179009', 'tblTempVendorCDR_20' ) start [2025-01-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179009', 'tblTempVendorCDR_20' ) end [2025-01-05 08:30:19] Production.INFO: ProcessCDR(1,14179009,1,1,2) [2025-01-05 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179009', 'tblTempUsageDetail_20' ) start [2025-01-05 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179009', 'tblTempUsageDetail_20' ) end [2025-01-05 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:30:23] Production.INFO: ==25548== Releasing lock... [2025-01-05 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:30:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-05 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:31:05 [end_date_ymd] => 2025-01-05 08:31:05 [RateCDR] => 1 ) [2025-01-05 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:31:05' and `end` < '2025-01-05 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:31:19] Production.INFO: count ==33 [2025-01-05 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:31:05 - End Time 2025-01-05 08:31:05 [2025-01-05 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179015', 'tblTempUsageDetail_20' ) start [2025-01-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179015', 'tblTempUsageDetail_20' ) end [2025-01-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179015', 'tblTempVendorCDR_20' ) start [2025-01-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179015', 'tblTempVendorCDR_20' ) end [2025-01-05 08:31:19] Production.INFO: ProcessCDR(1,14179015,1,1,2) [2025-01-05 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179015', 'tblTempUsageDetail_20' ) start [2025-01-05 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179015', 'tblTempUsageDetail_20' ) end [2025-01-05 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:31:22] Production.INFO: ==25629== Releasing lock... [2025-01-05 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:32:06 [end_date_ymd] => 2025-01-05 08:32:06 [RateCDR] => 1 ) [2025-01-05 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:32:06' and `end` < '2025-01-05 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:32:19] Production.INFO: count ==33 [2025-01-05 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:32:06 - End Time 2025-01-05 08:32:06 [2025-01-05 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179020', 'tblTempUsageDetail_20' ) start [2025-01-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179020', 'tblTempUsageDetail_20' ) end [2025-01-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179020', 'tblTempVendorCDR_20' ) start [2025-01-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179020', 'tblTempVendorCDR_20' ) end [2025-01-05 08:32:19] Production.INFO: ProcessCDR(1,14179020,1,1,2) [2025-01-05 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179020', 'tblTempUsageDetail_20' ) start [2025-01-05 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179020', 'tblTempUsageDetail_20' ) end [2025-01-05 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:32:22] Production.INFO: ==25708== Releasing lock... [2025-01-05 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:33:05 [end_date_ymd] => 2025-01-05 08:33:05 [RateCDR] => 1 ) [2025-01-05 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:33:05' and `end` < '2025-01-05 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:33:18] Production.INFO: count ==33 [2025-01-05 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:33:05 - End Time 2025-01-05 08:33:05 [2025-01-05 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179025', 'tblTempUsageDetail_20' ) start [2025-01-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179025', 'tblTempUsageDetail_20' ) end [2025-01-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179025', 'tblTempVendorCDR_20' ) start [2025-01-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179025', 'tblTempVendorCDR_20' ) end [2025-01-05 08:33:18] Production.INFO: ProcessCDR(1,14179025,1,1,2) [2025-01-05 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179025', 'tblTempUsageDetail_20' ) start [2025-01-05 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179025', 'tblTempUsageDetail_20' ) end [2025-01-05 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:33:22] Production.INFO: ==25784== Releasing lock... [2025-01-05 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:34:05 [end_date_ymd] => 2025-01-05 08:34:05 [RateCDR] => 1 ) [2025-01-05 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:34:05' and `end` < '2025-01-05 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:34:18] Production.INFO: count ==33 [2025-01-05 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:34:05 - End Time 2025-01-05 08:34:05 [2025-01-05 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179030', 'tblTempUsageDetail_20' ) start [2025-01-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179030', 'tblTempUsageDetail_20' ) end [2025-01-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179030', 'tblTempVendorCDR_20' ) start [2025-01-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179030', 'tblTempVendorCDR_20' ) end [2025-01-05 08:34:18] Production.INFO: ProcessCDR(1,14179030,1,1,2) [2025-01-05 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179030', 'tblTempUsageDetail_20' ) start [2025-01-05 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179030', 'tblTempUsageDetail_20' ) end [2025-01-05 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:34:21] Production.INFO: ==25860== Releasing lock... [2025-01-05 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:35:05 [end_date_ymd] => 2025-01-05 08:35:05 [RateCDR] => 1 ) [2025-01-05 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:35:05' and `end` < '2025-01-05 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:35:17] Production.INFO: count ==33 [2025-01-05 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:35:05 - End Time 2025-01-05 08:35:05 [2025-01-05 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179035', 'tblTempUsageDetail_20' ) start [2025-01-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179035', 'tblTempUsageDetail_20' ) end [2025-01-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179035', 'tblTempVendorCDR_20' ) start [2025-01-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179035', 'tblTempVendorCDR_20' ) end [2025-01-05 08:35:17] Production.INFO: ProcessCDR(1,14179035,1,1,2) [2025-01-05 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179035', 'tblTempUsageDetail_20' ) start [2025-01-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179035', 'tblTempUsageDetail_20' ) end [2025-01-05 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:35:21] Production.INFO: ==25938== Releasing lock... [2025-01-05 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:36:06 [end_date_ymd] => 2025-01-05 08:36:06 [RateCDR] => 1 ) [2025-01-05 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:36:06' and `end` < '2025-01-05 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:36:18] Production.INFO: count ==33 [2025-01-05 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:36:06 - End Time 2025-01-05 08:36:06 [2025-01-05 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179040', 'tblTempUsageDetail_20' ) start [2025-01-05 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179040', 'tblTempUsageDetail_20' ) end [2025-01-05 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179040', 'tblTempVendorCDR_20' ) start [2025-01-05 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179040', 'tblTempVendorCDR_20' ) end [2025-01-05 08:36:18] Production.INFO: ProcessCDR(1,14179040,1,1,2) [2025-01-05 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179040', 'tblTempUsageDetail_20' ) start [2025-01-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179040', 'tblTempUsageDetail_20' ) end [2025-01-05 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:36:22] Production.INFO: ==26016== Releasing lock... [2025-01-05 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:37:05 [end_date_ymd] => 2025-01-05 08:37:05 [RateCDR] => 1 ) [2025-01-05 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:37:05' and `end` < '2025-01-05 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:37:18] Production.INFO: count ==33 [2025-01-05 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:37:05 - End Time 2025-01-05 08:37:05 [2025-01-05 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179045', 'tblTempUsageDetail_20' ) start [2025-01-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179045', 'tblTempUsageDetail_20' ) end [2025-01-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179045', 'tblTempVendorCDR_20' ) start [2025-01-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179045', 'tblTempVendorCDR_20' ) end [2025-01-05 08:37:18] Production.INFO: ProcessCDR(1,14179045,1,1,2) [2025-01-05 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179045', 'tblTempUsageDetail_20' ) start [2025-01-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179045', 'tblTempUsageDetail_20' ) end [2025-01-05 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:37:22] Production.INFO: ==26093== Releasing lock... [2025-01-05 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:38:05 [end_date_ymd] => 2025-01-05 08:38:05 [RateCDR] => 1 ) [2025-01-05 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:38:05' and `end` < '2025-01-05 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:38:18] Production.INFO: count ==33 [2025-01-05 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:38:05 - End Time 2025-01-05 08:38:05 [2025-01-05 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179050', 'tblTempUsageDetail_20' ) start [2025-01-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179050', 'tblTempUsageDetail_20' ) end [2025-01-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179050', 'tblTempVendorCDR_20' ) start [2025-01-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179050', 'tblTempVendorCDR_20' ) end [2025-01-05 08:38:18] Production.INFO: ProcessCDR(1,14179050,1,1,2) [2025-01-05 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179050', 'tblTempUsageDetail_20' ) start [2025-01-05 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179050', 'tblTempUsageDetail_20' ) end [2025-01-05 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:38:21] Production.INFO: ==26167== Releasing lock... [2025-01-05 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:39:04 [end_date_ymd] => 2025-01-05 08:39:04 [RateCDR] => 1 ) [2025-01-05 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:39:04' and `end` < '2025-01-05 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:39:18] Production.INFO: count ==33 [2025-01-05 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:39:04 - End Time 2025-01-05 08:39:04 [2025-01-05 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179055', 'tblTempUsageDetail_20' ) start [2025-01-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179055', 'tblTempUsageDetail_20' ) end [2025-01-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179055', 'tblTempVendorCDR_20' ) start [2025-01-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179055', 'tblTempVendorCDR_20' ) end [2025-01-05 08:39:18] Production.INFO: ProcessCDR(1,14179055,1,1,2) [2025-01-05 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179055', 'tblTempUsageDetail_20' ) start [2025-01-05 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179055', 'tblTempUsageDetail_20' ) end [2025-01-05 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:39:21] Production.INFO: ==26242== Releasing lock... [2025-01-05 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:40:06 [end_date_ymd] => 2025-01-05 08:40:06 [RateCDR] => 1 ) [2025-01-05 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:40:06' and `end` < '2025-01-05 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:40:19] Production.INFO: count ==35 [2025-01-05 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:40:06 - End Time 2025-01-05 08:40:06 [2025-01-05 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179061', 'tblTempUsageDetail_20' ) start [2025-01-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179061', 'tblTempUsageDetail_20' ) end [2025-01-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179061', 'tblTempVendorCDR_20' ) start [2025-01-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179061', 'tblTempVendorCDR_20' ) end [2025-01-05 08:40:19] Production.INFO: ProcessCDR(1,14179061,1,1,2) [2025-01-05 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179061', 'tblTempUsageDetail_20' ) start [2025-01-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179061', 'tblTempUsageDetail_20' ) end [2025-01-05 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:40:22] Production.INFO: ==26321== Releasing lock... [2025-01-05 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:41:04 [end_date_ymd] => 2025-01-05 08:41:04 [RateCDR] => 1 ) [2025-01-05 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:41:04' and `end` < '2025-01-05 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:41:17] Production.INFO: count ==35 [2025-01-05 08:41:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:41:04 - End Time 2025-01-05 08:41:04 [2025-01-05 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179066', 'tblTempUsageDetail_20' ) start [2025-01-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179066', 'tblTempUsageDetail_20' ) end [2025-01-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179066', 'tblTempVendorCDR_20' ) start [2025-01-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179066', 'tblTempVendorCDR_20' ) end [2025-01-05 08:41:17] Production.INFO: ProcessCDR(1,14179066,1,1,2) [2025-01-05 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179066', 'tblTempUsageDetail_20' ) start [2025-01-05 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179066', 'tblTempUsageDetail_20' ) end [2025-01-05 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:41:20] Production.INFO: ==26398== Releasing lock... [2025-01-05 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:42:05 [end_date_ymd] => 2025-01-05 08:42:05 [RateCDR] => 1 ) [2025-01-05 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:42:05' and `end` < '2025-01-05 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:42:19] Production.INFO: count ==35 [2025-01-05 08:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:42:05 - End Time 2025-01-05 08:42:05 [2025-01-05 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179071', 'tblTempUsageDetail_20' ) start [2025-01-05 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179071', 'tblTempUsageDetail_20' ) end [2025-01-05 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179071', 'tblTempVendorCDR_20' ) start [2025-01-05 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179071', 'tblTempVendorCDR_20' ) end [2025-01-05 08:42:19] Production.INFO: ProcessCDR(1,14179071,1,1,2) [2025-01-05 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179071', 'tblTempUsageDetail_20' ) start [2025-01-05 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179071', 'tblTempUsageDetail_20' ) end [2025-01-05 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:42:22] Production.INFO: ==26479== Releasing lock... [2025-01-05 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:43:04 [end_date_ymd] => 2025-01-05 08:43:04 [RateCDR] => 1 ) [2025-01-05 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:43:04' and `end` < '2025-01-05 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:43:17] Production.INFO: count ==35 [2025-01-05 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:43:04 - End Time 2025-01-05 08:43:04 [2025-01-05 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179076', 'tblTempUsageDetail_20' ) start [2025-01-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179076', 'tblTempUsageDetail_20' ) end [2025-01-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179076', 'tblTempVendorCDR_20' ) start [2025-01-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179076', 'tblTempVendorCDR_20' ) end [2025-01-05 08:43:17] Production.INFO: ProcessCDR(1,14179076,1,1,2) [2025-01-05 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179076', 'tblTempUsageDetail_20' ) start [2025-01-05 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179076', 'tblTempUsageDetail_20' ) end [2025-01-05 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:43:20] Production.INFO: ==26594== Releasing lock... [2025-01-05 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:44:05 [end_date_ymd] => 2025-01-05 08:44:05 [RateCDR] => 1 ) [2025-01-05 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:44:05' and `end` < '2025-01-05 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:44:18] Production.INFO: count ==35 [2025-01-05 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:44:05 - End Time 2025-01-05 08:44:05 [2025-01-05 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179081', 'tblTempUsageDetail_20' ) start [2025-01-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179081', 'tblTempUsageDetail_20' ) end [2025-01-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179081', 'tblTempVendorCDR_20' ) start [2025-01-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179081', 'tblTempVendorCDR_20' ) end [2025-01-05 08:44:18] Production.INFO: ProcessCDR(1,14179081,1,1,2) [2025-01-05 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179081', 'tblTempUsageDetail_20' ) start [2025-01-05 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179081', 'tblTempUsageDetail_20' ) end [2025-01-05 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:44:21] Production.INFO: ==26677== Releasing lock... [2025-01-05 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:45:06 [end_date_ymd] => 2025-01-05 08:45:06 [RateCDR] => 1 ) [2025-01-05 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:45:06' and `end` < '2025-01-05 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:45:18] Production.INFO: count ==35 [2025-01-05 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:45:06 - End Time 2025-01-05 08:45:06 [2025-01-05 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179086', 'tblTempUsageDetail_20' ) start [2025-01-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179086', 'tblTempUsageDetail_20' ) end [2025-01-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179086', 'tblTempVendorCDR_20' ) start [2025-01-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179086', 'tblTempVendorCDR_20' ) end [2025-01-05 08:45:18] Production.INFO: ProcessCDR(1,14179086,1,1,2) [2025-01-05 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179086', 'tblTempUsageDetail_20' ) start [2025-01-05 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179086', 'tblTempUsageDetail_20' ) end [2025-01-05 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:45:21] Production.INFO: ==26777== Releasing lock... [2025-01-05 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:46:05 [end_date_ymd] => 2025-01-05 08:46:05 [RateCDR] => 1 ) [2025-01-05 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:46:05' and `end` < '2025-01-05 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:46:18] Production.INFO: count ==35 [2025-01-05 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:46:05 - End Time 2025-01-05 08:46:05 [2025-01-05 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179091', 'tblTempUsageDetail_20' ) start [2025-01-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179091', 'tblTempUsageDetail_20' ) end [2025-01-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179091', 'tblTempVendorCDR_20' ) start [2025-01-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179091', 'tblTempVendorCDR_20' ) end [2025-01-05 08:46:18] Production.INFO: ProcessCDR(1,14179091,1,1,2) [2025-01-05 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179091', 'tblTempUsageDetail_20' ) start [2025-01-05 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179091', 'tblTempUsageDetail_20' ) end [2025-01-05 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:46:21] Production.INFO: ==26877== Releasing lock... [2025-01-05 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:47:05 [end_date_ymd] => 2025-01-05 08:47:05 [RateCDR] => 1 ) [2025-01-05 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:47:05' and `end` < '2025-01-05 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:47:18] Production.INFO: count ==35 [2025-01-05 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:47:05 - End Time 2025-01-05 08:47:05 [2025-01-05 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179096', 'tblTempUsageDetail_20' ) start [2025-01-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179096', 'tblTempUsageDetail_20' ) end [2025-01-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179096', 'tblTempVendorCDR_20' ) start [2025-01-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179096', 'tblTempVendorCDR_20' ) end [2025-01-05 08:47:18] Production.INFO: ProcessCDR(1,14179096,1,1,2) [2025-01-05 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179096', 'tblTempUsageDetail_20' ) start [2025-01-05 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179096', 'tblTempUsageDetail_20' ) end [2025-01-05 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:47:21] Production.INFO: ==26977== Releasing lock... [2025-01-05 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:48:05 [end_date_ymd] => 2025-01-05 08:48:05 [RateCDR] => 1 ) [2025-01-05 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:48:05' and `end` < '2025-01-05 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:48:19] Production.INFO: count ==35 [2025-01-05 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:48:05 - End Time 2025-01-05 08:48:05 [2025-01-05 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179101', 'tblTempUsageDetail_20' ) start [2025-01-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179101', 'tblTempUsageDetail_20' ) end [2025-01-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179101', 'tblTempVendorCDR_20' ) start [2025-01-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179101', 'tblTempVendorCDR_20' ) end [2025-01-05 08:48:19] Production.INFO: ProcessCDR(1,14179101,1,1,2) [2025-01-05 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179101', 'tblTempUsageDetail_20' ) start [2025-01-05 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179101', 'tblTempUsageDetail_20' ) end [2025-01-05 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:48:22] Production.INFO: ==27077== Releasing lock... [2025-01-05 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:49:05 [end_date_ymd] => 2025-01-05 08:49:05 [RateCDR] => 1 ) [2025-01-05 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:49:05' and `end` < '2025-01-05 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:49:18] Production.INFO: count ==35 [2025-01-05 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:49:05 - End Time 2025-01-05 08:49:05 [2025-01-05 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179106', 'tblTempUsageDetail_20' ) start [2025-01-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179106', 'tblTempUsageDetail_20' ) end [2025-01-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179106', 'tblTempVendorCDR_20' ) start [2025-01-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179106', 'tblTempVendorCDR_20' ) end [2025-01-05 08:49:18] Production.INFO: ProcessCDR(1,14179106,1,1,2) [2025-01-05 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179106', 'tblTempUsageDetail_20' ) start [2025-01-05 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179106', 'tblTempUsageDetail_20' ) end [2025-01-05 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:49:21] Production.INFO: ==27176== Releasing lock... [2025-01-05 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:50:06 [end_date_ymd] => 2025-01-05 08:50:06 [RateCDR] => 1 ) [2025-01-05 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:50:06' and `end` < '2025-01-05 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:50:19] Production.INFO: count ==49 [2025-01-05 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:50:06 - End Time 2025-01-05 08:50:06 [2025-01-05 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179112', 'tblTempUsageDetail_20' ) start [2025-01-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179112', 'tblTempUsageDetail_20' ) end [2025-01-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179112', 'tblTempVendorCDR_20' ) start [2025-01-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179112', 'tblTempVendorCDR_20' ) end [2025-01-05 08:50:19] Production.INFO: ProcessCDR(1,14179112,1,1,2) [2025-01-05 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179112', 'tblTempUsageDetail_20' ) start [2025-01-05 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179112', 'tblTempUsageDetail_20' ) end [2025-01-05 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:50:23] Production.INFO: ==27279== Releasing lock... [2025-01-05 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:50:23] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:51:04 [end_date_ymd] => 2025-01-05 08:51:04 [RateCDR] => 1 ) [2025-01-05 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:51:04' and `end` < '2025-01-05 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:51:19] Production.INFO: count ==56 [2025-01-05 08:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 05:51:04 - End Time 2025-01-05 08:51:04 [2025-01-05 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179117', 'tblTempUsageDetail_20' ) start [2025-01-05 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179117', 'tblTempUsageDetail_20' ) end [2025-01-05 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179117', 'tblTempVendorCDR_20' ) start [2025-01-05 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179117', 'tblTempVendorCDR_20' ) end [2025-01-05 08:51:19] Production.INFO: ProcessCDR(1,14179117,1,1,2) [2025-01-05 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179117', 'tblTempUsageDetail_20' ) start [2025-01-05 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179117', 'tblTempUsageDetail_20' ) end [2025-01-05 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:51:23] Production.INFO: ==27382== Releasing lock... [2025-01-05 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:51:23] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:52:05 [end_date_ymd] => 2025-01-05 08:52:05 [RateCDR] => 1 ) [2025-01-05 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:52:05' and `end` < '2025-01-05 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:52:18] Production.INFO: count ==56 [2025-01-05 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:52:05 - End Time 2025-01-05 08:52:05 [2025-01-05 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179122', 'tblTempUsageDetail_20' ) start [2025-01-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179122', 'tblTempUsageDetail_20' ) end [2025-01-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179122', 'tblTempVendorCDR_20' ) start [2025-01-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179122', 'tblTempVendorCDR_20' ) end [2025-01-05 08:52:18] Production.INFO: ProcessCDR(1,14179122,1,1,2) [2025-01-05 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179122', 'tblTempUsageDetail_20' ) start [2025-01-05 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179122', 'tblTempUsageDetail_20' ) end [2025-01-05 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:52:21] Production.INFO: ==27478== Releasing lock... [2025-01-05 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:53:05 [end_date_ymd] => 2025-01-05 08:53:05 [RateCDR] => 1 ) [2025-01-05 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:53:05' and `end` < '2025-01-05 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:53:18] Production.INFO: count ==56 [2025-01-05 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:53:05 - End Time 2025-01-05 08:53:05 [2025-01-05 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179127', 'tblTempUsageDetail_20' ) start [2025-01-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179127', 'tblTempUsageDetail_20' ) end [2025-01-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179127', 'tblTempVendorCDR_20' ) start [2025-01-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179127', 'tblTempVendorCDR_20' ) end [2025-01-05 08:53:18] Production.INFO: ProcessCDR(1,14179127,1,1,2) [2025-01-05 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179127', 'tblTempUsageDetail_20' ) start [2025-01-05 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179127', 'tblTempUsageDetail_20' ) end [2025-01-05 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:53:21] Production.INFO: ==27580== Releasing lock... [2025-01-05 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:54:05 [end_date_ymd] => 2025-01-05 08:54:05 [RateCDR] => 1 ) [2025-01-05 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:54:05' and `end` < '2025-01-05 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:54:18] Production.INFO: count ==56 [2025-01-05 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:54:05 - End Time 2025-01-05 08:54:05 [2025-01-05 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179132', 'tblTempUsageDetail_20' ) start [2025-01-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179132', 'tblTempUsageDetail_20' ) end [2025-01-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179132', 'tblTempVendorCDR_20' ) start [2025-01-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179132', 'tblTempVendorCDR_20' ) end [2025-01-05 08:54:18] Production.INFO: ProcessCDR(1,14179132,1,1,2) [2025-01-05 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179132', 'tblTempUsageDetail_20' ) start [2025-01-05 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179132', 'tblTempUsageDetail_20' ) end [2025-01-05 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:54:21] Production.INFO: ==27679== Releasing lock... [2025-01-05 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:55:05 [end_date_ymd] => 2025-01-05 08:55:05 [RateCDR] => 1 ) [2025-01-05 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:55:05' and `end` < '2025-01-05 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:55:18] Production.INFO: count ==56 [2025-01-05 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:55:05 - End Time 2025-01-05 08:55:05 [2025-01-05 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179137', 'tblTempUsageDetail_20' ) start [2025-01-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179137', 'tblTempUsageDetail_20' ) end [2025-01-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179137', 'tblTempVendorCDR_20' ) start [2025-01-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179137', 'tblTempVendorCDR_20' ) end [2025-01-05 08:55:18] Production.INFO: ProcessCDR(1,14179137,1,1,2) [2025-01-05 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179137', 'tblTempUsageDetail_20' ) start [2025-01-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179137', 'tblTempUsageDetail_20' ) end [2025-01-05 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:55:21] Production.INFO: ==27779== Releasing lock... [2025-01-05 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:56:05 [end_date_ymd] => 2025-01-05 08:56:05 [RateCDR] => 1 ) [2025-01-05 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:56:05' and `end` < '2025-01-05 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:56:18] Production.INFO: count ==56 [2025-01-05 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:56:05 - End Time 2025-01-05 08:56:05 [2025-01-05 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179142', 'tblTempUsageDetail_20' ) start [2025-01-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179142', 'tblTempUsageDetail_20' ) end [2025-01-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179142', 'tblTempVendorCDR_20' ) start [2025-01-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179142', 'tblTempVendorCDR_20' ) end [2025-01-05 08:56:19] Production.INFO: ProcessCDR(1,14179142,1,1,2) [2025-01-05 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179142', 'tblTempUsageDetail_20' ) start [2025-01-05 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179142', 'tblTempUsageDetail_20' ) end [2025-01-05 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:56:22] Production.INFO: ==27876== Releasing lock... [2025-01-05 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:57:05 [end_date_ymd] => 2025-01-05 08:57:05 [RateCDR] => 1 ) [2025-01-05 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:57:05' and `end` < '2025-01-05 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:57:18] Production.INFO: count ==56 [2025-01-05 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:57:05 - End Time 2025-01-05 08:57:05 [2025-01-05 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179147', 'tblTempUsageDetail_20' ) start [2025-01-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179147', 'tblTempUsageDetail_20' ) end [2025-01-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179147', 'tblTempVendorCDR_20' ) start [2025-01-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179147', 'tblTempVendorCDR_20' ) end [2025-01-05 08:57:18] Production.INFO: ProcessCDR(1,14179147,1,1,2) [2025-01-05 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179147', 'tblTempUsageDetail_20' ) start [2025-01-05 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179147', 'tblTempUsageDetail_20' ) end [2025-01-05 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:57:21] Production.INFO: ==27978== Releasing lock... [2025-01-05 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:58:04 [end_date_ymd] => 2025-01-05 08:58:04 [RateCDR] => 1 ) [2025-01-05 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:58:04' and `end` < '2025-01-05 08:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:58:17] Production.INFO: count ==56 [2025-01-05 08:58:17] Production.ERROR: pbx CDR StartTime 2025-01-05 05:58:04 - End Time 2025-01-05 08:58:04 [2025-01-05 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179152', 'tblTempUsageDetail_20' ) start [2025-01-05 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179152', 'tblTempUsageDetail_20' ) end [2025-01-05 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179152', 'tblTempVendorCDR_20' ) start [2025-01-05 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179152', 'tblTempVendorCDR_20' ) end [2025-01-05 08:58:17] Production.INFO: ProcessCDR(1,14179152,1,1,2) [2025-01-05 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179152', 'tblTempUsageDetail_20' ) start [2025-01-05 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179152', 'tblTempUsageDetail_20' ) end [2025-01-05 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:58:21] Production.INFO: ==28081== Releasing lock... [2025-01-05 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 05:59:05 [end_date_ymd] => 2025-01-05 08:59:05 [RateCDR] => 1 ) [2025-01-05 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 05:59:05' and `end` < '2025-01-05 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 08:59:18] Production.INFO: count ==56 [2025-01-05 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 05:59:05 - End Time 2025-01-05 08:59:05 [2025-01-05 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179157', 'tblTempUsageDetail_20' ) start [2025-01-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179157', 'tblTempUsageDetail_20' ) end [2025-01-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179157', 'tblTempVendorCDR_20' ) start [2025-01-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179157', 'tblTempVendorCDR_20' ) end [2025-01-05 08:59:18] Production.INFO: ProcessCDR(1,14179157,1,1,2) [2025-01-05 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179157', 'tblTempUsageDetail_20' ) start [2025-01-05 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179157', 'tblTempUsageDetail_20' ) end [2025-01-05 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 08:59:21] Production.INFO: ==28226== Releasing lock... [2025-01-05 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 08:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:00:06 [end_date_ymd] => 2025-01-05 09:00:06 [RateCDR] => 1 ) [2025-01-05 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:00:06' and `end` < '2025-01-05 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:00:19] Production.INFO: count ==56 [2025-01-05 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:00:06 - End Time 2025-01-05 09:00:06 [2025-01-05 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179162', 'tblTempUsageDetail_20' ) start [2025-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179162', 'tblTempUsageDetail_20' ) end [2025-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179162', 'tblTempVendorCDR_20' ) start [2025-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179162', 'tblTempVendorCDR_20' ) end [2025-01-05 09:00:19] Production.INFO: ProcessCDR(1,14179162,1,1,2) [2025-01-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179162', 'tblTempUsageDetail_20' ) start [2025-01-05 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179162', 'tblTempUsageDetail_20' ) end [2025-01-05 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:00:23] Production.INFO: ==28327== Releasing lock... [2025-01-05 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:00:23] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:01:05 [end_date_ymd] => 2025-01-05 09:01:05 [RateCDR] => 1 ) [2025-01-05 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:01:05' and `end` < '2025-01-05 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:01:18] Production.INFO: count ==56 [2025-01-05 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:01:05 - End Time 2025-01-05 09:01:05 [2025-01-05 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179168', 'tblTempUsageDetail_20' ) start [2025-01-05 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179168', 'tblTempUsageDetail_20' ) end [2025-01-05 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179168', 'tblTempVendorCDR_20' ) start [2025-01-05 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179168', 'tblTempVendorCDR_20' ) end [2025-01-05 09:01:18] Production.INFO: ProcessCDR(1,14179168,1,1,2) [2025-01-05 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179168', 'tblTempUsageDetail_20' ) start [2025-01-05 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179168', 'tblTempUsageDetail_20' ) end [2025-01-05 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:01:21] Production.INFO: ==28440== Releasing lock... [2025-01-05 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:02:05 [end_date_ymd] => 2025-01-05 09:02:05 [RateCDR] => 1 ) [2025-01-05 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:02:05' and `end` < '2025-01-05 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:02:18] Production.INFO: count ==56 [2025-01-05 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:02:05 - End Time 2025-01-05 09:02:05 [2025-01-05 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179173', 'tblTempUsageDetail_20' ) start [2025-01-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179173', 'tblTempUsageDetail_20' ) end [2025-01-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179173', 'tblTempVendorCDR_20' ) start [2025-01-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179173', 'tblTempVendorCDR_20' ) end [2025-01-05 09:02:18] Production.INFO: ProcessCDR(1,14179173,1,1,2) [2025-01-05 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179173', 'tblTempUsageDetail_20' ) start [2025-01-05 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179173', 'tblTempUsageDetail_20' ) end [2025-01-05 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:02:21] Production.INFO: ==28540== Releasing lock... [2025-01-05 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:03:05 [end_date_ymd] => 2025-01-05 09:03:05 [RateCDR] => 1 ) [2025-01-05 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:03:05' and `end` < '2025-01-05 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:03:17] Production.INFO: count ==56 [2025-01-05 09:03:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:03:05 - End Time 2025-01-05 09:03:05 [2025-01-05 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179178', 'tblTempUsageDetail_20' ) start [2025-01-05 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179178', 'tblTempUsageDetail_20' ) end [2025-01-05 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179178', 'tblTempVendorCDR_20' ) start [2025-01-05 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179178', 'tblTempVendorCDR_20' ) end [2025-01-05 09:03:17] Production.INFO: ProcessCDR(1,14179178,1,1,2) [2025-01-05 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179178', 'tblTempUsageDetail_20' ) start [2025-01-05 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179178', 'tblTempUsageDetail_20' ) end [2025-01-05 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:03:21] Production.INFO: ==28638== Releasing lock... [2025-01-05 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:04:06 [end_date_ymd] => 2025-01-05 09:04:06 [RateCDR] => 1 ) [2025-01-05 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:04:06' and `end` < '2025-01-05 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:04:18] Production.INFO: count ==56 [2025-01-05 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:04:06 - End Time 2025-01-05 09:04:06 [2025-01-05 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179183', 'tblTempUsageDetail_20' ) start [2025-01-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179183', 'tblTempUsageDetail_20' ) end [2025-01-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179183', 'tblTempVendorCDR_20' ) start [2025-01-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179183', 'tblTempVendorCDR_20' ) end [2025-01-05 09:04:18] Production.INFO: ProcessCDR(1,14179183,1,1,2) [2025-01-05 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179183', 'tblTempUsageDetail_20' ) start [2025-01-05 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179183', 'tblTempUsageDetail_20' ) end [2025-01-05 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:04:22] Production.INFO: ==28739== Releasing lock... [2025-01-05 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:05:05 [end_date_ymd] => 2025-01-05 09:05:05 [RateCDR] => 1 ) [2025-01-05 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:05:05' and `end` < '2025-01-05 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:05:18] Production.INFO: count ==56 [2025-01-05 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:05:05 - End Time 2025-01-05 09:05:05 [2025-01-05 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179188', 'tblTempUsageDetail_20' ) start [2025-01-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179188', 'tblTempUsageDetail_20' ) end [2025-01-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179188', 'tblTempVendorCDR_20' ) start [2025-01-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179188', 'tblTempVendorCDR_20' ) end [2025-01-05 09:05:18] Production.INFO: ProcessCDR(1,14179188,1,1,2) [2025-01-05 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179188', 'tblTempUsageDetail_20' ) start [2025-01-05 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179188', 'tblTempUsageDetail_20' ) end [2025-01-05 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:05:22] Production.INFO: ==28838== Releasing lock... [2025-01-05 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:06:06 [end_date_ymd] => 2025-01-05 09:06:06 [RateCDR] => 1 ) [2025-01-05 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:06:06' and `end` < '2025-01-05 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:06:19] Production.INFO: count ==56 [2025-01-05 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:06:06 - End Time 2025-01-05 09:06:06 [2025-01-05 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179193', 'tblTempUsageDetail_20' ) start [2025-01-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179193', 'tblTempUsageDetail_20' ) end [2025-01-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179193', 'tblTempVendorCDR_20' ) start [2025-01-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179193', 'tblTempVendorCDR_20' ) end [2025-01-05 09:06:19] Production.INFO: ProcessCDR(1,14179193,1,1,2) [2025-01-05 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179193', 'tblTempUsageDetail_20' ) start [2025-01-05 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179193', 'tblTempUsageDetail_20' ) end [2025-01-05 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:06:22] Production.INFO: ==28944== Releasing lock... [2025-01-05 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:07:05 [end_date_ymd] => 2025-01-05 09:07:05 [RateCDR] => 1 ) [2025-01-05 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:07:05' and `end` < '2025-01-05 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:07:19] Production.INFO: count ==56 [2025-01-05 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:07:05 - End Time 2025-01-05 09:07:05 [2025-01-05 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179198', 'tblTempUsageDetail_20' ) start [2025-01-05 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179198', 'tblTempUsageDetail_20' ) end [2025-01-05 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179198', 'tblTempVendorCDR_20' ) start [2025-01-05 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179198', 'tblTempVendorCDR_20' ) end [2025-01-05 09:07:19] Production.INFO: ProcessCDR(1,14179198,1,1,2) [2025-01-05 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179198', 'tblTempUsageDetail_20' ) start [2025-01-05 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179198', 'tblTempUsageDetail_20' ) end [2025-01-05 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:07:22] Production.INFO: ==29019== Releasing lock... [2025-01-05 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:07:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:08:05 [end_date_ymd] => 2025-01-05 09:08:05 [RateCDR] => 1 ) [2025-01-05 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:08:05' and `end` < '2025-01-05 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:08:19] Production.INFO: count ==56 [2025-01-05 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:08:05 - End Time 2025-01-05 09:08:05 [2025-01-05 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179203', 'tblTempUsageDetail_20' ) start [2025-01-05 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179203', 'tblTempUsageDetail_20' ) end [2025-01-05 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179203', 'tblTempVendorCDR_20' ) start [2025-01-05 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179203', 'tblTempVendorCDR_20' ) end [2025-01-05 09:08:19] Production.INFO: ProcessCDR(1,14179203,1,1,2) [2025-01-05 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179203', 'tblTempUsageDetail_20' ) start [2025-01-05 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179203', 'tblTempUsageDetail_20' ) end [2025-01-05 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:08:22] Production.INFO: ==29095== Releasing lock... [2025-01-05 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:09:05 [end_date_ymd] => 2025-01-05 09:09:05 [RateCDR] => 1 ) [2025-01-05 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:09:05' and `end` < '2025-01-05 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:09:18] Production.INFO: count ==56 [2025-01-05 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:09:05 - End Time 2025-01-05 09:09:05 [2025-01-05 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179208', 'tblTempUsageDetail_20' ) start [2025-01-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179208', 'tblTempUsageDetail_20' ) end [2025-01-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179208', 'tblTempVendorCDR_20' ) start [2025-01-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179208', 'tblTempVendorCDR_20' ) end [2025-01-05 09:09:18] Production.INFO: ProcessCDR(1,14179208,1,1,2) [2025-01-05 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179208', 'tblTempUsageDetail_20' ) start [2025-01-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179208', 'tblTempUsageDetail_20' ) end [2025-01-05 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:09:22] Production.INFO: ==29173== Releasing lock... [2025-01-05 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:10:06 [end_date_ymd] => 2025-01-05 09:10:06 [RateCDR] => 1 ) [2025-01-05 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:10:06' and `end` < '2025-01-05 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:10:19] Production.INFO: count ==58 [2025-01-05 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:10:06 - End Time 2025-01-05 09:10:06 [2025-01-05 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179213', 'tblTempUsageDetail_20' ) start [2025-01-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179213', 'tblTempUsageDetail_20' ) end [2025-01-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179213', 'tblTempVendorCDR_20' ) start [2025-01-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179213', 'tblTempVendorCDR_20' ) end [2025-01-05 09:10:19] Production.INFO: ProcessCDR(1,14179213,1,1,2) [2025-01-05 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179213', 'tblTempUsageDetail_20' ) start [2025-01-05 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179213', 'tblTempUsageDetail_20' ) end [2025-01-05 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:10:22] Production.INFO: ==29250== Releasing lock... [2025-01-05 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:11:04 [end_date_ymd] => 2025-01-05 09:11:04 [RateCDR] => 1 ) [2025-01-05 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:11:04' and `end` < '2025-01-05 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:11:17] Production.INFO: count ==58 [2025-01-05 09:11:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:11:04 - End Time 2025-01-05 09:11:04 [2025-01-05 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179219', 'tblTempUsageDetail_20' ) start [2025-01-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179219', 'tblTempUsageDetail_20' ) end [2025-01-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179219', 'tblTempVendorCDR_20' ) start [2025-01-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179219', 'tblTempVendorCDR_20' ) end [2025-01-05 09:11:17] Production.INFO: ProcessCDR(1,14179219,1,1,2) [2025-01-05 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179219', 'tblTempUsageDetail_20' ) start [2025-01-05 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179219', 'tblTempUsageDetail_20' ) end [2025-01-05 09:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:11:20] Production.INFO: ==29328== Releasing lock... [2025-01-05 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:11:20] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:12:05 [end_date_ymd] => 2025-01-05 09:12:05 [RateCDR] => 1 ) [2025-01-05 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:12:05' and `end` < '2025-01-05 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:12:18] Production.INFO: count ==60 [2025-01-05 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:12:05 - End Time 2025-01-05 09:12:05 [2025-01-05 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179224', 'tblTempUsageDetail_20' ) start [2025-01-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179224', 'tblTempUsageDetail_20' ) end [2025-01-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179224', 'tblTempVendorCDR_20' ) start [2025-01-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179224', 'tblTempVendorCDR_20' ) end [2025-01-05 09:12:18] Production.INFO: ProcessCDR(1,14179224,1,1,2) [2025-01-05 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179224', 'tblTempUsageDetail_20' ) start [2025-01-05 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179224', 'tblTempUsageDetail_20' ) end [2025-01-05 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:12:21] Production.INFO: ==29413== Releasing lock... [2025-01-05 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:13:04 [end_date_ymd] => 2025-01-05 09:13:04 [RateCDR] => 1 ) [2025-01-05 09:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:13:04' and `end` < '2025-01-05 09:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:13:18] Production.INFO: count ==60 [2025-01-05 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:13:04 - End Time 2025-01-05 09:13:04 [2025-01-05 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179229', 'tblTempUsageDetail_20' ) start [2025-01-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179229', 'tblTempUsageDetail_20' ) end [2025-01-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179229', 'tblTempVendorCDR_20' ) start [2025-01-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179229', 'tblTempVendorCDR_20' ) end [2025-01-05 09:13:18] Production.INFO: ProcessCDR(1,14179229,1,1,2) [2025-01-05 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179229', 'tblTempUsageDetail_20' ) start [2025-01-05 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179229', 'tblTempUsageDetail_20' ) end [2025-01-05 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:13:21] Production.INFO: ==29491== Releasing lock... [2025-01-05 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:14:05 [end_date_ymd] => 2025-01-05 09:14:05 [RateCDR] => 1 ) [2025-01-05 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:14:05' and `end` < '2025-01-05 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:14:20] Production.INFO: count ==60 [2025-01-05 09:14:20] Production.ERROR: pbx CDR StartTime 2025-01-05 06:14:05 - End Time 2025-01-05 09:14:05 [2025-01-05 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179234', 'tblTempUsageDetail_20' ) start [2025-01-05 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179234', 'tblTempUsageDetail_20' ) end [2025-01-05 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179234', 'tblTempVendorCDR_20' ) start [2025-01-05 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179234', 'tblTempVendorCDR_20' ) end [2025-01-05 09:14:20] Production.INFO: ProcessCDR(1,14179234,1,1,2) [2025-01-05 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179234', 'tblTempUsageDetail_20' ) start [2025-01-05 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179234', 'tblTempUsageDetail_20' ) end [2025-01-05 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:14:23] Production.INFO: ==29607== Releasing lock... [2025-01-05 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-05 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:15:05 [end_date_ymd] => 2025-01-05 09:15:05 [RateCDR] => 1 ) [2025-01-05 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:15:05' and `end` < '2025-01-05 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:15:19] Production.INFO: count ==67 [2025-01-05 09:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:15:05 - End Time 2025-01-05 09:15:05 [2025-01-05 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179239', 'tblTempUsageDetail_20' ) start [2025-01-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179239', 'tblTempUsageDetail_20' ) end [2025-01-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179239', 'tblTempVendorCDR_20' ) start [2025-01-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179239', 'tblTempVendorCDR_20' ) end [2025-01-05 09:15:19] Production.INFO: ProcessCDR(1,14179239,1,1,2) [2025-01-05 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179239', 'tblTempUsageDetail_20' ) start [2025-01-05 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179239', 'tblTempUsageDetail_20' ) end [2025-01-05 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:15:22] Production.INFO: ==29682== Releasing lock... [2025-01-05 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:16:05 [end_date_ymd] => 2025-01-05 09:16:05 [RateCDR] => 1 ) [2025-01-05 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:16:05' and `end` < '2025-01-05 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:16:19] Production.INFO: count ==67 [2025-01-05 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:16:05 - End Time 2025-01-05 09:16:05 [2025-01-05 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179244', 'tblTempUsageDetail_20' ) start [2025-01-05 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179244', 'tblTempUsageDetail_20' ) end [2025-01-05 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179244', 'tblTempVendorCDR_20' ) start [2025-01-05 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179244', 'tblTempVendorCDR_20' ) end [2025-01-05 09:16:19] Production.INFO: ProcessCDR(1,14179244,1,1,2) [2025-01-05 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179244', 'tblTempUsageDetail_20' ) start [2025-01-05 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179244', 'tblTempUsageDetail_20' ) end [2025-01-05 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:16:22] Production.INFO: ==29763== Releasing lock... [2025-01-05 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:17:05 [end_date_ymd] => 2025-01-05 09:17:05 [RateCDR] => 1 ) [2025-01-05 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:17:05' and `end` < '2025-01-05 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:17:18] Production.INFO: count ==72 [2025-01-05 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:17:05 - End Time 2025-01-05 09:17:05 [2025-01-05 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179249', 'tblTempUsageDetail_20' ) start [2025-01-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179249', 'tblTempUsageDetail_20' ) end [2025-01-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179249', 'tblTempVendorCDR_20' ) start [2025-01-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179249', 'tblTempVendorCDR_20' ) end [2025-01-05 09:17:18] Production.INFO: ProcessCDR(1,14179249,1,1,2) [2025-01-05 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179249', 'tblTempUsageDetail_20' ) start [2025-01-05 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179249', 'tblTempUsageDetail_20' ) end [2025-01-05 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:17:21] Production.INFO: ==29842== Releasing lock... [2025-01-05 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:18:05 [end_date_ymd] => 2025-01-05 09:18:05 [RateCDR] => 1 ) [2025-01-05 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:18:05' and `end` < '2025-01-05 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:18:19] Production.INFO: count ==72 [2025-01-05 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:18:05 - End Time 2025-01-05 09:18:05 [2025-01-05 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179254', 'tblTempUsageDetail_20' ) start [2025-01-05 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179254', 'tblTempUsageDetail_20' ) end [2025-01-05 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179254', 'tblTempVendorCDR_20' ) start [2025-01-05 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179254', 'tblTempVendorCDR_20' ) end [2025-01-05 09:18:19] Production.INFO: ProcessCDR(1,14179254,1,1,2) [2025-01-05 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179254', 'tblTempUsageDetail_20' ) start [2025-01-05 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179254', 'tblTempUsageDetail_20' ) end [2025-01-05 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:18:22] Production.INFO: ==29919== Releasing lock... [2025-01-05 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:19:05 [end_date_ymd] => 2025-01-05 09:19:05 [RateCDR] => 1 ) [2025-01-05 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:19:05' and `end` < '2025-01-05 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:19:18] Production.INFO: count ==72 [2025-01-05 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:19:05 - End Time 2025-01-05 09:19:05 [2025-01-05 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179259', 'tblTempUsageDetail_20' ) start [2025-01-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179259', 'tblTempUsageDetail_20' ) end [2025-01-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179259', 'tblTempVendorCDR_20' ) start [2025-01-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179259', 'tblTempVendorCDR_20' ) end [2025-01-05 09:19:18] Production.INFO: ProcessCDR(1,14179259,1,1,2) [2025-01-05 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179259', 'tblTempUsageDetail_20' ) start [2025-01-05 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179259', 'tblTempUsageDetail_20' ) end [2025-01-05 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:19:22] Production.INFO: ==29993== Releasing lock... [2025-01-05 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:20:05 [end_date_ymd] => 2025-01-05 09:20:05 [RateCDR] => 1 ) [2025-01-05 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:20:05' and `end` < '2025-01-05 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:20:19] Production.INFO: count ==74 [2025-01-05 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:20:05 - End Time 2025-01-05 09:20:05 [2025-01-05 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179265', 'tblTempUsageDetail_20' ) start [2025-01-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179265', 'tblTempUsageDetail_20' ) end [2025-01-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179265', 'tblTempVendorCDR_20' ) start [2025-01-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179265', 'tblTempVendorCDR_20' ) end [2025-01-05 09:20:19] Production.INFO: ProcessCDR(1,14179265,1,1,2) [2025-01-05 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179265', 'tblTempUsageDetail_20' ) start [2025-01-05 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179265', 'tblTempUsageDetail_20' ) end [2025-01-05 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:20:22] Production.INFO: ==30079== Releasing lock... [2025-01-05 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:21:05 [end_date_ymd] => 2025-01-05 09:21:05 [RateCDR] => 1 ) [2025-01-05 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:21:05' and `end` < '2025-01-05 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:21:19] Production.INFO: count ==74 [2025-01-05 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:21:05 - End Time 2025-01-05 09:21:05 [2025-01-05 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179270', 'tblTempUsageDetail_20' ) start [2025-01-05 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179270', 'tblTempUsageDetail_20' ) end [2025-01-05 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179270', 'tblTempVendorCDR_20' ) start [2025-01-05 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179270', 'tblTempVendorCDR_20' ) end [2025-01-05 09:21:19] Production.INFO: ProcessCDR(1,14179270,1,1,2) [2025-01-05 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179270', 'tblTempUsageDetail_20' ) start [2025-01-05 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179270', 'tblTempUsageDetail_20' ) end [2025-01-05 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:21:22] Production.INFO: ==30165== Releasing lock... [2025-01-05 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:22:05 [end_date_ymd] => 2025-01-05 09:22:05 [RateCDR] => 1 ) [2025-01-05 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:22:05' and `end` < '2025-01-05 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:22:17] Production.INFO: count ==74 [2025-01-05 09:22:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:22:05 - End Time 2025-01-05 09:22:05 [2025-01-05 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179275', 'tblTempUsageDetail_20' ) start [2025-01-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179275', 'tblTempUsageDetail_20' ) end [2025-01-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179275', 'tblTempVendorCDR_20' ) start [2025-01-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179275', 'tblTempVendorCDR_20' ) end [2025-01-05 09:22:17] Production.INFO: ProcessCDR(1,14179275,1,1,2) [2025-01-05 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179275', 'tblTempUsageDetail_20' ) start [2025-01-05 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179275', 'tblTempUsageDetail_20' ) end [2025-01-05 09:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:22:20] Production.INFO: ==30248== Releasing lock... [2025-01-05 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:23:05 [end_date_ymd] => 2025-01-05 09:23:05 [RateCDR] => 1 ) [2025-01-05 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:23:05' and `end` < '2025-01-05 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:23:18] Production.INFO: count ==74 [2025-01-05 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:23:05 - End Time 2025-01-05 09:23:05 [2025-01-05 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179280', 'tblTempUsageDetail_20' ) start [2025-01-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179280', 'tblTempUsageDetail_20' ) end [2025-01-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179280', 'tblTempVendorCDR_20' ) start [2025-01-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179280', 'tblTempVendorCDR_20' ) end [2025-01-05 09:23:18] Production.INFO: ProcessCDR(1,14179280,1,1,2) [2025-01-05 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179280', 'tblTempUsageDetail_20' ) start [2025-01-05 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179280', 'tblTempUsageDetail_20' ) end [2025-01-05 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:23:21] Production.INFO: ==30332== Releasing lock... [2025-01-05 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:24:05 [end_date_ymd] => 2025-01-05 09:24:05 [RateCDR] => 1 ) [2025-01-05 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:24:05' and `end` < '2025-01-05 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:24:18] Production.INFO: count ==74 [2025-01-05 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:24:05 - End Time 2025-01-05 09:24:05 [2025-01-05 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179285', 'tblTempUsageDetail_20' ) start [2025-01-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179285', 'tblTempUsageDetail_20' ) end [2025-01-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179285', 'tblTempVendorCDR_20' ) start [2025-01-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179285', 'tblTempVendorCDR_20' ) end [2025-01-05 09:24:18] Production.INFO: ProcessCDR(1,14179285,1,1,2) [2025-01-05 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179285', 'tblTempUsageDetail_20' ) start [2025-01-05 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179285', 'tblTempUsageDetail_20' ) end [2025-01-05 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:24:22] Production.INFO: ==30415== Releasing lock... [2025-01-05 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:25:05 [end_date_ymd] => 2025-01-05 09:25:05 [RateCDR] => 1 ) [2025-01-05 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:25:05' and `end` < '2025-01-05 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:25:18] Production.INFO: count ==74 [2025-01-05 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:25:05 - End Time 2025-01-05 09:25:05 [2025-01-05 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179290', 'tblTempUsageDetail_20' ) start [2025-01-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179290', 'tblTempUsageDetail_20' ) end [2025-01-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179290', 'tblTempVendorCDR_20' ) start [2025-01-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179290', 'tblTempVendorCDR_20' ) end [2025-01-05 09:25:18] Production.INFO: ProcessCDR(1,14179290,1,1,2) [2025-01-05 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179290', 'tblTempUsageDetail_20' ) start [2025-01-05 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179290', 'tblTempUsageDetail_20' ) end [2025-01-05 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:25:21] Production.INFO: ==30498== Releasing lock... [2025-01-05 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:26:06 [end_date_ymd] => 2025-01-05 09:26:06 [RateCDR] => 1 ) [2025-01-05 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:26:06' and `end` < '2025-01-05 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:26:19] Production.INFO: count ==75 [2025-01-05 09:26:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:26:06 - End Time 2025-01-05 09:26:06 [2025-01-05 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179295', 'tblTempUsageDetail_20' ) start [2025-01-05 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179295', 'tblTempUsageDetail_20' ) end [2025-01-05 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179295', 'tblTempVendorCDR_20' ) start [2025-01-05 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179295', 'tblTempVendorCDR_20' ) end [2025-01-05 09:26:19] Production.INFO: ProcessCDR(1,14179295,1,1,2) [2025-01-05 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179295', 'tblTempUsageDetail_20' ) start [2025-01-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179295', 'tblTempUsageDetail_20' ) end [2025-01-05 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:26:23] Production.INFO: ==30587== Releasing lock... [2025-01-05 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:26:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:27:05 [end_date_ymd] => 2025-01-05 09:27:05 [RateCDR] => 1 ) [2025-01-05 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:27:05' and `end` < '2025-01-05 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:27:18] Production.INFO: count ==75 [2025-01-05 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:27:05 - End Time 2025-01-05 09:27:05 [2025-01-05 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179300', 'tblTempUsageDetail_20' ) start [2025-01-05 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179300', 'tblTempUsageDetail_20' ) end [2025-01-05 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179300', 'tblTempVendorCDR_20' ) start [2025-01-05 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179300', 'tblTempVendorCDR_20' ) end [2025-01-05 09:27:18] Production.INFO: ProcessCDR(1,14179300,1,1,2) [2025-01-05 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179300', 'tblTempUsageDetail_20' ) start [2025-01-05 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179300', 'tblTempUsageDetail_20' ) end [2025-01-05 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:27:21] Production.INFO: ==30670== Releasing lock... [2025-01-05 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:28:05 [end_date_ymd] => 2025-01-05 09:28:05 [RateCDR] => 1 ) [2025-01-05 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:28:05' and `end` < '2025-01-05 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:28:18] Production.INFO: count ==75 [2025-01-05 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:28:05 - End Time 2025-01-05 09:28:05 [2025-01-05 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179305', 'tblTempUsageDetail_20' ) start [2025-01-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179305', 'tblTempUsageDetail_20' ) end [2025-01-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179305', 'tblTempVendorCDR_20' ) start [2025-01-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179305', 'tblTempVendorCDR_20' ) end [2025-01-05 09:28:18] Production.INFO: ProcessCDR(1,14179305,1,1,2) [2025-01-05 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179305', 'tblTempUsageDetail_20' ) start [2025-01-05 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179305', 'tblTempUsageDetail_20' ) end [2025-01-05 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:28:21] Production.INFO: ==30753== Releasing lock... [2025-01-05 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:29:05 [end_date_ymd] => 2025-01-05 09:29:05 [RateCDR] => 1 ) [2025-01-05 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:29:05' and `end` < '2025-01-05 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:29:19] Production.INFO: count ==75 [2025-01-05 09:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:29:05 - End Time 2025-01-05 09:29:05 [2025-01-05 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179310', 'tblTempUsageDetail_20' ) start [2025-01-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179310', 'tblTempUsageDetail_20' ) end [2025-01-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179310', 'tblTempVendorCDR_20' ) start [2025-01-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179310', 'tblTempVendorCDR_20' ) end [2025-01-05 09:29:19] Production.INFO: ProcessCDR(1,14179310,1,1,2) [2025-01-05 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179310', 'tblTempUsageDetail_20' ) start [2025-01-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179310', 'tblTempUsageDetail_20' ) end [2025-01-05 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:29:22] Production.INFO: ==30840== Releasing lock... [2025-01-05 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:30:06 [end_date_ymd] => 2025-01-05 09:30:06 [RateCDR] => 1 ) [2025-01-05 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:30:06' and `end` < '2025-01-05 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:30:18] Production.INFO: count ==73 [2025-01-05 09:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:30:06 - End Time 2025-01-05 09:30:06 [2025-01-05 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179316', 'tblTempUsageDetail_20' ) start [2025-01-05 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179316', 'tblTempUsageDetail_20' ) end [2025-01-05 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179316', 'tblTempVendorCDR_20' ) start [2025-01-05 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179316', 'tblTempVendorCDR_20' ) end [2025-01-05 09:30:18] Production.INFO: ProcessCDR(1,14179316,1,1,2) [2025-01-05 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179316', 'tblTempUsageDetail_20' ) start [2025-01-05 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179316', 'tblTempUsageDetail_20' ) end [2025-01-05 09:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:30:22] Production.INFO: ==30963== Releasing lock... [2025-01-05 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:31:05 [end_date_ymd] => 2025-01-05 09:31:05 [RateCDR] => 1 ) [2025-01-05 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:31:05' and `end` < '2025-01-05 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:31:18] Production.INFO: count ==73 [2025-01-05 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:31:05 - End Time 2025-01-05 09:31:05 [2025-01-05 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179321', 'tblTempUsageDetail_20' ) start [2025-01-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179321', 'tblTempUsageDetail_20' ) end [2025-01-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179321', 'tblTempVendorCDR_20' ) start [2025-01-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179321', 'tblTempVendorCDR_20' ) end [2025-01-05 09:31:18] Production.INFO: ProcessCDR(1,14179321,1,1,2) [2025-01-05 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179321', 'tblTempUsageDetail_20' ) start [2025-01-05 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179321', 'tblTempUsageDetail_20' ) end [2025-01-05 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:31:21] Production.INFO: ==31046== Releasing lock... [2025-01-05 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:32:05 [end_date_ymd] => 2025-01-05 09:32:05 [RateCDR] => 1 ) [2025-01-05 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:32:05' and `end` < '2025-01-05 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:32:18] Production.INFO: count ==74 [2025-01-05 09:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:32:05 - End Time 2025-01-05 09:32:05 [2025-01-05 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179326', 'tblTempUsageDetail_20' ) start [2025-01-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179326', 'tblTempUsageDetail_20' ) end [2025-01-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179326', 'tblTempVendorCDR_20' ) start [2025-01-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179326', 'tblTempVendorCDR_20' ) end [2025-01-05 09:32:18] Production.INFO: ProcessCDR(1,14179326,1,1,2) [2025-01-05 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179326', 'tblTempUsageDetail_20' ) start [2025-01-05 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179326', 'tblTempUsageDetail_20' ) end [2025-01-05 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:32:22] Production.INFO: ==31132== Releasing lock... [2025-01-05 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:33:05 [end_date_ymd] => 2025-01-05 09:33:05 [RateCDR] => 1 ) [2025-01-05 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:33:05' and `end` < '2025-01-05 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:33:19] Production.INFO: count ==74 [2025-01-05 09:33:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:33:05 - End Time 2025-01-05 09:33:05 [2025-01-05 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179331', 'tblTempUsageDetail_20' ) start [2025-01-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179331', 'tblTempUsageDetail_20' ) end [2025-01-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179331', 'tblTempVendorCDR_20' ) start [2025-01-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179331', 'tblTempVendorCDR_20' ) end [2025-01-05 09:33:19] Production.INFO: ProcessCDR(1,14179331,1,1,2) [2025-01-05 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179331', 'tblTempUsageDetail_20' ) start [2025-01-05 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179331', 'tblTempUsageDetail_20' ) end [2025-01-05 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:33:22] Production.INFO: ==31215== Releasing lock... [2025-01-05 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:34:04 [end_date_ymd] => 2025-01-05 09:34:04 [RateCDR] => 1 ) [2025-01-05 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:34:04' and `end` < '2025-01-05 09:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:34:18] Production.INFO: count ==74 [2025-01-05 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:34:04 - End Time 2025-01-05 09:34:04 [2025-01-05 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179336', 'tblTempUsageDetail_20' ) start [2025-01-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179336', 'tblTempUsageDetail_20' ) end [2025-01-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179336', 'tblTempVendorCDR_20' ) start [2025-01-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179336', 'tblTempVendorCDR_20' ) end [2025-01-05 09:34:18] Production.INFO: ProcessCDR(1,14179336,1,1,2) [2025-01-05 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179336', 'tblTempUsageDetail_20' ) start [2025-01-05 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179336', 'tblTempUsageDetail_20' ) end [2025-01-05 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:34:21] Production.INFO: ==31300== Releasing lock... [2025-01-05 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:35:05 [end_date_ymd] => 2025-01-05 09:35:05 [RateCDR] => 1 ) [2025-01-05 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:35:05' and `end` < '2025-01-05 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:35:18] Production.INFO: count ==74 [2025-01-05 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:35:05 - End Time 2025-01-05 09:35:05 [2025-01-05 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179341', 'tblTempUsageDetail_20' ) start [2025-01-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179341', 'tblTempUsageDetail_20' ) end [2025-01-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179341', 'tblTempVendorCDR_20' ) start [2025-01-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179341', 'tblTempVendorCDR_20' ) end [2025-01-05 09:35:18] Production.INFO: ProcessCDR(1,14179341,1,1,2) [2025-01-05 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179341', 'tblTempUsageDetail_20' ) start [2025-01-05 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179341', 'tblTempUsageDetail_20' ) end [2025-01-05 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:35:21] Production.INFO: ==31389== Releasing lock... [2025-01-05 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:36:04 [end_date_ymd] => 2025-01-05 09:36:04 [RateCDR] => 1 ) [2025-01-05 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:36:04' and `end` < '2025-01-05 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:36:18] Production.INFO: count ==74 [2025-01-05 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:36:04 - End Time 2025-01-05 09:36:04 [2025-01-05 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179346', 'tblTempUsageDetail_20' ) start [2025-01-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179346', 'tblTempUsageDetail_20' ) end [2025-01-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179346', 'tblTempVendorCDR_20' ) start [2025-01-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179346', 'tblTempVendorCDR_20' ) end [2025-01-05 09:36:18] Production.INFO: ProcessCDR(1,14179346,1,1,2) [2025-01-05 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179346', 'tblTempUsageDetail_20' ) start [2025-01-05 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179346', 'tblTempUsageDetail_20' ) end [2025-01-05 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:36:21] Production.INFO: ==31474== Releasing lock... [2025-01-05 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:37:05 [end_date_ymd] => 2025-01-05 09:37:05 [RateCDR] => 1 ) [2025-01-05 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:37:05' and `end` < '2025-01-05 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:37:18] Production.INFO: count ==74 [2025-01-05 09:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:37:05 - End Time 2025-01-05 09:37:05 [2025-01-05 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179351', 'tblTempUsageDetail_20' ) start [2025-01-05 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179351', 'tblTempUsageDetail_20' ) end [2025-01-05 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179351', 'tblTempVendorCDR_20' ) start [2025-01-05 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179351', 'tblTempVendorCDR_20' ) end [2025-01-05 09:37:18] Production.INFO: ProcessCDR(1,14179351,1,1,2) [2025-01-05 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179351', 'tblTempUsageDetail_20' ) start [2025-01-05 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179351', 'tblTempUsageDetail_20' ) end [2025-01-05 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:37:21] Production.INFO: ==31554== Releasing lock... [2025-01-05 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:38:05 [end_date_ymd] => 2025-01-05 09:38:05 [RateCDR] => 1 ) [2025-01-05 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:38:05' and `end` < '2025-01-05 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:38:18] Production.INFO: count ==74 [2025-01-05 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:38:05 - End Time 2025-01-05 09:38:05 [2025-01-05 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179356', 'tblTempUsageDetail_20' ) start [2025-01-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179356', 'tblTempUsageDetail_20' ) end [2025-01-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179356', 'tblTempVendorCDR_20' ) start [2025-01-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179356', 'tblTempVendorCDR_20' ) end [2025-01-05 09:38:18] Production.INFO: ProcessCDR(1,14179356,1,1,2) [2025-01-05 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179356', 'tblTempUsageDetail_20' ) start [2025-01-05 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179356', 'tblTempUsageDetail_20' ) end [2025-01-05 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:38:21] Production.INFO: ==31651== Releasing lock... [2025-01-05 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:39:05 [end_date_ymd] => 2025-01-05 09:39:05 [RateCDR] => 1 ) [2025-01-05 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:39:05' and `end` < '2025-01-05 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:39:18] Production.INFO: count ==74 [2025-01-05 09:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:39:05 - End Time 2025-01-05 09:39:05 [2025-01-05 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179361', 'tblTempUsageDetail_20' ) start [2025-01-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179361', 'tblTempUsageDetail_20' ) end [2025-01-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179361', 'tblTempVendorCDR_20' ) start [2025-01-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179361', 'tblTempVendorCDR_20' ) end [2025-01-05 09:39:18] Production.INFO: ProcessCDR(1,14179361,1,1,2) [2025-01-05 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179361', 'tblTempUsageDetail_20' ) start [2025-01-05 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179361', 'tblTempUsageDetail_20' ) end [2025-01-05 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:39:22] Production.INFO: ==31745== Releasing lock... [2025-01-05 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:40:06 [end_date_ymd] => 2025-01-05 09:40:06 [RateCDR] => 1 ) [2025-01-05 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:40:06' and `end` < '2025-01-05 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:40:19] Production.INFO: count ==76 [2025-01-05 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:40:06 - End Time 2025-01-05 09:40:06 [2025-01-05 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179367', 'tblTempUsageDetail_20' ) start [2025-01-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179367', 'tblTempUsageDetail_20' ) end [2025-01-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179367', 'tblTempVendorCDR_20' ) start [2025-01-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179367', 'tblTempVendorCDR_20' ) end [2025-01-05 09:40:19] Production.INFO: ProcessCDR(1,14179367,1,1,2) [2025-01-05 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179367', 'tblTempUsageDetail_20' ) start [2025-01-05 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179367', 'tblTempUsageDetail_20' ) end [2025-01-05 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:40:22] Production.INFO: ==31854== Releasing lock... [2025-01-05 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:41:04 [end_date_ymd] => 2025-01-05 09:41:04 [RateCDR] => 1 ) [2025-01-05 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:41:04' and `end` < '2025-01-05 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:41:17] Production.INFO: count ==76 [2025-01-05 09:41:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:41:04 - End Time 2025-01-05 09:41:04 [2025-01-05 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179372', 'tblTempUsageDetail_20' ) start [2025-01-05 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179372', 'tblTempUsageDetail_20' ) end [2025-01-05 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179372', 'tblTempVendorCDR_20' ) start [2025-01-05 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179372', 'tblTempVendorCDR_20' ) end [2025-01-05 09:41:17] Production.INFO: ProcessCDR(1,14179372,1,1,2) [2025-01-05 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179372', 'tblTempUsageDetail_20' ) start [2025-01-05 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179372', 'tblTempUsageDetail_20' ) end [2025-01-05 09:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:41:20] Production.INFO: ==31960== Releasing lock... [2025-01-05 09:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:42:05 [end_date_ymd] => 2025-01-05 09:42:05 [RateCDR] => 1 ) [2025-01-05 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:42:05' and `end` < '2025-01-05 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:42:20] Production.INFO: count ==76 [2025-01-05 09:42:20] Production.ERROR: pbx CDR StartTime 2025-01-05 06:42:05 - End Time 2025-01-05 09:42:05 [2025-01-05 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179377', 'tblTempUsageDetail_20' ) start [2025-01-05 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179377', 'tblTempUsageDetail_20' ) end [2025-01-05 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179377', 'tblTempVendorCDR_20' ) start [2025-01-05 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179377', 'tblTempVendorCDR_20' ) end [2025-01-05 09:42:20] Production.INFO: ProcessCDR(1,14179377,1,1,2) [2025-01-05 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179377', 'tblTempUsageDetail_20' ) start [2025-01-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179377', 'tblTempUsageDetail_20' ) end [2025-01-05 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:42:23] Production.INFO: ==32064== Releasing lock... [2025-01-05 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:42:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:43:04 [end_date_ymd] => 2025-01-05 09:43:04 [RateCDR] => 1 ) [2025-01-05 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:43:04' and `end` < '2025-01-05 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:43:18] Production.INFO: count ==76 [2025-01-05 09:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:43:04 - End Time 2025-01-05 09:43:04 [2025-01-05 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179381', 'tblTempUsageDetail_20' ) start [2025-01-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179381', 'tblTempUsageDetail_20' ) end [2025-01-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179381', 'tblTempVendorCDR_20' ) start [2025-01-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179381', 'tblTempVendorCDR_20' ) end [2025-01-05 09:43:18] Production.INFO: ProcessCDR(1,14179381,1,1,2) [2025-01-05 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179381', 'tblTempUsageDetail_20' ) start [2025-01-05 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179381', 'tblTempUsageDetail_20' ) end [2025-01-05 09:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:43:22] Production.INFO: ==32167== Releasing lock... [2025-01-05 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:44:05 [end_date_ymd] => 2025-01-05 09:44:05 [RateCDR] => 1 ) [2025-01-05 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:44:05' and `end` < '2025-01-05 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:44:18] Production.INFO: count ==76 [2025-01-05 09:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:44:05 - End Time 2025-01-05 09:44:05 [2025-01-05 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179387', 'tblTempUsageDetail_20' ) start [2025-01-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179387', 'tblTempUsageDetail_20' ) end [2025-01-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179387', 'tblTempVendorCDR_20' ) start [2025-01-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179387', 'tblTempVendorCDR_20' ) end [2025-01-05 09:44:18] Production.INFO: ProcessCDR(1,14179387,1,1,2) [2025-01-05 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179387', 'tblTempUsageDetail_20' ) start [2025-01-05 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179387', 'tblTempUsageDetail_20' ) end [2025-01-05 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:44:21] Production.INFO: ==32277== Releasing lock... [2025-01-05 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:45:04 [end_date_ymd] => 2025-01-05 09:45:04 [RateCDR] => 1 ) [2025-01-05 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:45:04' and `end` < '2025-01-05 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:45:17] Production.INFO: count ==78 [2025-01-05 09:45:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:45:04 - End Time 2025-01-05 09:45:04 [2025-01-05 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179392', 'tblTempUsageDetail_20' ) start [2025-01-05 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179392', 'tblTempUsageDetail_20' ) end [2025-01-05 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179392', 'tblTempVendorCDR_20' ) start [2025-01-05 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179392', 'tblTempVendorCDR_20' ) end [2025-01-05 09:45:17] Production.INFO: ProcessCDR(1,14179392,1,1,2) [2025-01-05 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179392', 'tblTempUsageDetail_20' ) start [2025-01-05 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179392', 'tblTempUsageDetail_20' ) end [2025-01-05 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:45:20] Production.INFO: ==32387== Releasing lock... [2025-01-05 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:46:05 [end_date_ymd] => 2025-01-05 09:46:05 [RateCDR] => 1 ) [2025-01-05 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:46:05' and `end` < '2025-01-05 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:46:18] Production.INFO: count ==78 [2025-01-05 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:46:05 - End Time 2025-01-05 09:46:05 [2025-01-05 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179397', 'tblTempUsageDetail_20' ) start [2025-01-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179397', 'tblTempUsageDetail_20' ) end [2025-01-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179397', 'tblTempVendorCDR_20' ) start [2025-01-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179397', 'tblTempVendorCDR_20' ) end [2025-01-05 09:46:18] Production.INFO: ProcessCDR(1,14179397,1,1,2) [2025-01-05 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179397', 'tblTempUsageDetail_20' ) start [2025-01-05 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179397', 'tblTempUsageDetail_20' ) end [2025-01-05 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:46:21] Production.INFO: ==32534== Releasing lock... [2025-01-05 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:47:05 [end_date_ymd] => 2025-01-05 09:47:05 [RateCDR] => 1 ) [2025-01-05 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:47:05' and `end` < '2025-01-05 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:47:19] Production.INFO: count ==78 [2025-01-05 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:47:05 - End Time 2025-01-05 09:47:05 [2025-01-05 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179402', 'tblTempUsageDetail_20' ) start [2025-01-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179402', 'tblTempUsageDetail_20' ) end [2025-01-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179402', 'tblTempVendorCDR_20' ) start [2025-01-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179402', 'tblTempVendorCDR_20' ) end [2025-01-05 09:47:19] Production.INFO: ProcessCDR(1,14179402,1,1,2) [2025-01-05 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179402', 'tblTempUsageDetail_20' ) start [2025-01-05 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179402', 'tblTempUsageDetail_20' ) end [2025-01-05 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:47:22] Production.INFO: ==32646== Releasing lock... [2025-01-05 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:48:05 [end_date_ymd] => 2025-01-05 09:48:05 [RateCDR] => 1 ) [2025-01-05 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:48:05' and `end` < '2025-01-05 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:48:18] Production.INFO: count ==79 [2025-01-05 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:48:05 - End Time 2025-01-05 09:48:05 [2025-01-05 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179407', 'tblTempUsageDetail_20' ) start [2025-01-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179407', 'tblTempUsageDetail_20' ) end [2025-01-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179407', 'tblTempVendorCDR_20' ) start [2025-01-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179407', 'tblTempVendorCDR_20' ) end [2025-01-05 09:48:18] Production.INFO: ProcessCDR(1,14179407,1,1,2) [2025-01-05 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179407', 'tblTempUsageDetail_20' ) start [2025-01-05 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179407', 'tblTempUsageDetail_20' ) end [2025-01-05 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:48:23] Production.INFO: ==32764== Releasing lock... [2025-01-05 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:48:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:49:05 [end_date_ymd] => 2025-01-05 09:49:05 [RateCDR] => 1 ) [2025-01-05 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:49:05' and `end` < '2025-01-05 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:49:20] Production.INFO: count ==79 [2025-01-05 09:49:20] Production.ERROR: pbx CDR StartTime 2025-01-05 06:49:05 - End Time 2025-01-05 09:49:05 [2025-01-05 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179412', 'tblTempUsageDetail_20' ) start [2025-01-05 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179412', 'tblTempUsageDetail_20' ) end [2025-01-05 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179412', 'tblTempVendorCDR_20' ) start [2025-01-05 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179412', 'tblTempVendorCDR_20' ) end [2025-01-05 09:49:20] Production.INFO: ProcessCDR(1,14179412,1,1,2) [2025-01-05 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179412', 'tblTempUsageDetail_20' ) start [2025-01-05 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179412', 'tblTempUsageDetail_20' ) end [2025-01-05 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:49:23] Production.INFO: ==420== Releasing lock... [2025-01-05 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:50:05 [end_date_ymd] => 2025-01-05 09:50:05 [RateCDR] => 1 ) [2025-01-05 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:50:05' and `end` < '2025-01-05 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:50:18] Production.INFO: count ==83 [2025-01-05 09:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:50:05 - End Time 2025-01-05 09:50:05 [2025-01-05 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179418', 'tblTempUsageDetail_20' ) start [2025-01-05 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179418', 'tblTempUsageDetail_20' ) end [2025-01-05 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179418', 'tblTempVendorCDR_20' ) start [2025-01-05 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179418', 'tblTempVendorCDR_20' ) end [2025-01-05 09:50:18] Production.INFO: ProcessCDR(1,14179418,1,1,2) [2025-01-05 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179418', 'tblTempUsageDetail_20' ) start [2025-01-05 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179418', 'tblTempUsageDetail_20' ) end [2025-01-05 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:50:21] Production.INFO: ==535== Releasing lock... [2025-01-05 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:51:05 [end_date_ymd] => 2025-01-05 09:51:05 [RateCDR] => 1 ) [2025-01-05 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:51:05' and `end` < '2025-01-05 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:51:19] Production.INFO: count ==83 [2025-01-05 09:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:51:05 - End Time 2025-01-05 09:51:05 [2025-01-05 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179423', 'tblTempUsageDetail_20' ) start [2025-01-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179423', 'tblTempUsageDetail_20' ) end [2025-01-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179423', 'tblTempVendorCDR_20' ) start [2025-01-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179423', 'tblTempVendorCDR_20' ) end [2025-01-05 09:51:19] Production.INFO: ProcessCDR(1,14179423,1,1,2) [2025-01-05 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179423', 'tblTempUsageDetail_20' ) start [2025-01-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179423', 'tblTempUsageDetail_20' ) end [2025-01-05 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:51:22] Production.INFO: ==655== Releasing lock... [2025-01-05 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:52:05 [end_date_ymd] => 2025-01-05 09:52:05 [RateCDR] => 1 ) [2025-01-05 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:52:05' and `end` < '2025-01-05 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:52:18] Production.INFO: count ==83 [2025-01-05 09:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:52:05 - End Time 2025-01-05 09:52:05 [2025-01-05 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179428', 'tblTempUsageDetail_20' ) start [2025-01-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179428', 'tblTempUsageDetail_20' ) end [2025-01-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179428', 'tblTempVendorCDR_20' ) start [2025-01-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179428', 'tblTempVendorCDR_20' ) end [2025-01-05 09:52:18] Production.INFO: ProcessCDR(1,14179428,1,1,2) [2025-01-05 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179428', 'tblTempUsageDetail_20' ) start [2025-01-05 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179428', 'tblTempUsageDetail_20' ) end [2025-01-05 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:52:21] Production.INFO: ==775== Releasing lock... [2025-01-05 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:53:05 [end_date_ymd] => 2025-01-05 09:53:05 [RateCDR] => 1 ) [2025-01-05 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:53:05' and `end` < '2025-01-05 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:53:18] Production.INFO: count ==83 [2025-01-05 09:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:53:05 - End Time 2025-01-05 09:53:05 [2025-01-05 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179433', 'tblTempUsageDetail_20' ) start [2025-01-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179433', 'tblTempUsageDetail_20' ) end [2025-01-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179433', 'tblTempVendorCDR_20' ) start [2025-01-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179433', 'tblTempVendorCDR_20' ) end [2025-01-05 09:53:18] Production.INFO: ProcessCDR(1,14179433,1,1,2) [2025-01-05 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179433', 'tblTempUsageDetail_20' ) start [2025-01-05 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179433', 'tblTempUsageDetail_20' ) end [2025-01-05 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:53:21] Production.INFO: ==882== Releasing lock... [2025-01-05 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:54:05 [end_date_ymd] => 2025-01-05 09:54:05 [RateCDR] => 1 ) [2025-01-05 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:54:05' and `end` < '2025-01-05 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:54:19] Production.INFO: count ==83 [2025-01-05 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:54:05 - End Time 2025-01-05 09:54:05 [2025-01-05 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179438', 'tblTempUsageDetail_20' ) start [2025-01-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179438', 'tblTempUsageDetail_20' ) end [2025-01-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179438', 'tblTempVendorCDR_20' ) start [2025-01-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179438', 'tblTempVendorCDR_20' ) end [2025-01-05 09:54:19] Production.INFO: ProcessCDR(1,14179438,1,1,2) [2025-01-05 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179438', 'tblTempUsageDetail_20' ) start [2025-01-05 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179438', 'tblTempUsageDetail_20' ) end [2025-01-05 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:54:22] Production.INFO: ==983== Releasing lock... [2025-01-05 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:55:05 [end_date_ymd] => 2025-01-05 09:55:05 [RateCDR] => 1 ) [2025-01-05 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:55:05' and `end` < '2025-01-05 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:55:17] Production.INFO: count ==85 [2025-01-05 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:55:05 - End Time 2025-01-05 09:55:05 [2025-01-05 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179443', 'tblTempUsageDetail_20' ) start [2025-01-05 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179443', 'tblTempUsageDetail_20' ) end [2025-01-05 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179443', 'tblTempVendorCDR_20' ) start [2025-01-05 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179443', 'tblTempVendorCDR_20' ) end [2025-01-05 09:55:17] Production.INFO: ProcessCDR(1,14179443,1,1,2) [2025-01-05 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179443', 'tblTempUsageDetail_20' ) start [2025-01-05 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179443', 'tblTempUsageDetail_20' ) end [2025-01-05 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:55:22] Production.INFO: ==1084== Releasing lock... [2025-01-05 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-05 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:56:04 [end_date_ymd] => 2025-01-05 09:56:04 [RateCDR] => 1 ) [2025-01-05 09:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:56:04' and `end` < '2025-01-05 09:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:56:18] Production.INFO: count ==87 [2025-01-05 09:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 06:56:04 - End Time 2025-01-05 09:56:04 [2025-01-05 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179445', 'tblTempUsageDetail_20' ) start [2025-01-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179445', 'tblTempUsageDetail_20' ) end [2025-01-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179445', 'tblTempVendorCDR_20' ) start [2025-01-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179445', 'tblTempVendorCDR_20' ) end [2025-01-05 09:56:18] Production.INFO: ProcessCDR(1,14179445,1,1,2) [2025-01-05 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179445', 'tblTempUsageDetail_20' ) start [2025-01-05 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179445', 'tblTempUsageDetail_20' ) end [2025-01-05 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:56:21] Production.INFO: ==1196== Releasing lock... [2025-01-05 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:57:05 [end_date_ymd] => 2025-01-05 09:57:05 [RateCDR] => 1 ) [2025-01-05 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:57:05' and `end` < '2025-01-05 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:57:17] Production.INFO: count ==87 [2025-01-05 09:57:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:57:05 - End Time 2025-01-05 09:57:05 [2025-01-05 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179453', 'tblTempUsageDetail_20' ) start [2025-01-05 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179453', 'tblTempUsageDetail_20' ) end [2025-01-05 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179453', 'tblTempVendorCDR_20' ) start [2025-01-05 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179453', 'tblTempVendorCDR_20' ) end [2025-01-05 09:57:17] Production.INFO: ProcessCDR(1,14179453,1,1,2) [2025-01-05 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179453', 'tblTempUsageDetail_20' ) start [2025-01-05 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179453', 'tblTempUsageDetail_20' ) end [2025-01-05 09:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:57:20] Production.INFO: ==1308== Releasing lock... [2025-01-05 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:58:05 [end_date_ymd] => 2025-01-05 09:58:05 [RateCDR] => 1 ) [2025-01-05 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:58:05' and `end` < '2025-01-05 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:58:19] Production.INFO: count ==87 [2025-01-05 09:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 06:58:05 - End Time 2025-01-05 09:58:05 [2025-01-05 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179458', 'tblTempUsageDetail_20' ) start [2025-01-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179458', 'tblTempUsageDetail_20' ) end [2025-01-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179458', 'tblTempVendorCDR_20' ) start [2025-01-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179458', 'tblTempVendorCDR_20' ) end [2025-01-05 09:58:19] Production.INFO: ProcessCDR(1,14179458,1,1,2) [2025-01-05 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179458', 'tblTempUsageDetail_20' ) start [2025-01-05 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179458', 'tblTempUsageDetail_20' ) end [2025-01-05 09:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:58:22] Production.INFO: ==1412== Releasing lock... [2025-01-05 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 06:59:05 [end_date_ymd] => 2025-01-05 09:59:05 [RateCDR] => 1 ) [2025-01-05 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 06:59:05' and `end` < '2025-01-05 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 09:59:17] Production.INFO: count ==89 [2025-01-05 09:59:17] Production.ERROR: pbx CDR StartTime 2025-01-05 06:59:05 - End Time 2025-01-05 09:59:05 [2025-01-05 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179463', 'tblTempUsageDetail_20' ) start [2025-01-05 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179463', 'tblTempUsageDetail_20' ) end [2025-01-05 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179463', 'tblTempVendorCDR_20' ) start [2025-01-05 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179463', 'tblTempVendorCDR_20' ) end [2025-01-05 09:59:17] Production.INFO: ProcessCDR(1,14179463,1,1,2) [2025-01-05 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179463', 'tblTempUsageDetail_20' ) start [2025-01-05 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179463', 'tblTempUsageDetail_20' ) end [2025-01-05 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 09:59:21] Production.INFO: ==1537== Releasing lock... [2025-01-05 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 09:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:00:06 [end_date_ymd] => 2025-01-05 10:00:06 [RateCDR] => 1 ) [2025-01-05 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:00:06' and `end` < '2025-01-05 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:00:19] Production.INFO: count ==93 [2025-01-05 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:00:06 - End Time 2025-01-05 10:00:06 [2025-01-05 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179469', 'tblTempUsageDetail_20' ) start [2025-01-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179469', 'tblTempUsageDetail_20' ) end [2025-01-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179469', 'tblTempVendorCDR_20' ) start [2025-01-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179469', 'tblTempVendorCDR_20' ) end [2025-01-05 10:00:19] Production.INFO: ProcessCDR(1,14179469,1,1,2) [2025-01-05 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179469', 'tblTempUsageDetail_20' ) start [2025-01-05 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179469', 'tblTempUsageDetail_20' ) end [2025-01-05 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:00:22] Production.INFO: ==1650== Releasing lock... [2025-01-05 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:01:05 [end_date_ymd] => 2025-01-05 10:01:05 [RateCDR] => 1 ) [2025-01-05 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:01:05' and `end` < '2025-01-05 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:01:19] Production.INFO: count ==93 [2025-01-05 10:01:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:01:05 - End Time 2025-01-05 10:01:05 [2025-01-05 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179474', 'tblTempUsageDetail_20' ) start [2025-01-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179474', 'tblTempUsageDetail_20' ) end [2025-01-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179474', 'tblTempVendorCDR_20' ) start [2025-01-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179474', 'tblTempVendorCDR_20' ) end [2025-01-05 10:01:19] Production.INFO: ProcessCDR(1,14179474,1,1,2) [2025-01-05 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179474', 'tblTempUsageDetail_20' ) start [2025-01-05 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179474', 'tblTempUsageDetail_20' ) end [2025-01-05 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:01:22] Production.INFO: ==1810== Releasing lock... [2025-01-05 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:02:05 [end_date_ymd] => 2025-01-05 10:02:05 [RateCDR] => 1 ) [2025-01-05 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:02:05' and `end` < '2025-01-05 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:02:19] Production.INFO: count ==94 [2025-01-05 10:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:02:05 - End Time 2025-01-05 10:02:05 [2025-01-05 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179479', 'tblTempUsageDetail_20' ) start [2025-01-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179479', 'tblTempUsageDetail_20' ) end [2025-01-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179479', 'tblTempVendorCDR_20' ) start [2025-01-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179479', 'tblTempVendorCDR_20' ) end [2025-01-05 10:02:19] Production.INFO: ProcessCDR(1,14179479,1,1,2) [2025-01-05 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179479', 'tblTempUsageDetail_20' ) start [2025-01-05 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179479', 'tblTempUsageDetail_20' ) end [2025-01-05 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:02:23] Production.INFO: ==1915== Releasing lock... [2025-01-05 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:02:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:03:05 [end_date_ymd] => 2025-01-05 10:03:05 [RateCDR] => 1 ) [2025-01-05 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:03:05' and `end` < '2025-01-05 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:03:19] Production.INFO: count ==94 [2025-01-05 10:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:03:05 - End Time 2025-01-05 10:03:05 [2025-01-05 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179484', 'tblTempUsageDetail_20' ) start [2025-01-05 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179484', 'tblTempUsageDetail_20' ) end [2025-01-05 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179484', 'tblTempVendorCDR_20' ) start [2025-01-05 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179484', 'tblTempVendorCDR_20' ) end [2025-01-05 10:03:19] Production.INFO: ProcessCDR(1,14179484,1,1,2) [2025-01-05 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179484', 'tblTempUsageDetail_20' ) start [2025-01-05 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179484', 'tblTempUsageDetail_20' ) end [2025-01-05 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:03:22] Production.INFO: ==2010== Releasing lock... [2025-01-05 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:04:05 [end_date_ymd] => 2025-01-05 10:04:05 [RateCDR] => 1 ) [2025-01-05 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:04:05' and `end` < '2025-01-05 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:04:18] Production.INFO: count ==101 [2025-01-05 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:04:05 - End Time 2025-01-05 10:04:05 [2025-01-05 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179489', 'tblTempUsageDetail_20' ) start [2025-01-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179489', 'tblTempUsageDetail_20' ) end [2025-01-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179489', 'tblTempVendorCDR_20' ) start [2025-01-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179489', 'tblTempVendorCDR_20' ) end [2025-01-05 10:04:19] Production.INFO: ProcessCDR(1,14179489,1,1,2) [2025-01-05 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179489', 'tblTempUsageDetail_20' ) start [2025-01-05 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179489', 'tblTempUsageDetail_20' ) end [2025-01-05 10:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:04:22] Production.INFO: ==2109== Releasing lock... [2025-01-05 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:05:05 [end_date_ymd] => 2025-01-05 10:05:05 [RateCDR] => 1 ) [2025-01-05 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:05:05' and `end` < '2025-01-05 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:05:19] Production.INFO: count ==101 [2025-01-05 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-05 07:05:05 - End Time 2025-01-05 10:05:05 [2025-01-05 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179494', 'tblTempUsageDetail_20' ) start [2025-01-05 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179494', 'tblTempUsageDetail_20' ) end [2025-01-05 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179494', 'tblTempVendorCDR_20' ) start [2025-01-05 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179494', 'tblTempVendorCDR_20' ) end [2025-01-05 10:05:20] Production.INFO: ProcessCDR(1,14179494,1,1,2) [2025-01-05 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179494', 'tblTempUsageDetail_20' ) start [2025-01-05 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179494', 'tblTempUsageDetail_20' ) end [2025-01-05 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:05:24] Production.INFO: ==2205== Releasing lock... [2025-01-05 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:05:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:06:05 [end_date_ymd] => 2025-01-05 10:06:05 [RateCDR] => 1 ) [2025-01-05 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:06:05' and `end` < '2025-01-05 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:06:18] Production.INFO: count ==102 [2025-01-05 10:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:06:05 - End Time 2025-01-05 10:06:05 [2025-01-05 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179499', 'tblTempUsageDetail_20' ) start [2025-01-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179499', 'tblTempUsageDetail_20' ) end [2025-01-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179499', 'tblTempVendorCDR_20' ) start [2025-01-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179499', 'tblTempVendorCDR_20' ) end [2025-01-05 10:06:18] Production.INFO: ProcessCDR(1,14179499,1,1,2) [2025-01-05 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179499', 'tblTempUsageDetail_20' ) start [2025-01-05 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179499', 'tblTempUsageDetail_20' ) end [2025-01-05 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:06:23] Production.INFO: ==2305== Releasing lock... [2025-01-05 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:06:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-05 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:07:05 [end_date_ymd] => 2025-01-05 10:07:05 [RateCDR] => 1 ) [2025-01-05 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:07:05' and `end` < '2025-01-05 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:07:20] Production.INFO: count ==108 [2025-01-05 10:07:20] Production.ERROR: pbx CDR StartTime 2025-01-05 07:07:05 - End Time 2025-01-05 10:07:05 [2025-01-05 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179504', 'tblTempUsageDetail_20' ) start [2025-01-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179504', 'tblTempUsageDetail_20' ) end [2025-01-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179504', 'tblTempVendorCDR_20' ) start [2025-01-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179504', 'tblTempVendorCDR_20' ) end [2025-01-05 10:07:20] Production.INFO: ProcessCDR(1,14179504,1,1,2) [2025-01-05 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179504', 'tblTempUsageDetail_20' ) start [2025-01-05 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179504', 'tblTempUsageDetail_20' ) end [2025-01-05 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:07:24] Production.INFO: ==2409== Releasing lock... [2025-01-05 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:07:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-05 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:08:04 [end_date_ymd] => 2025-01-05 10:08:04 [RateCDR] => 1 ) [2025-01-05 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:08:04' and `end` < '2025-01-05 10:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:08:17] Production.INFO: count ==119 [2025-01-05 10:08:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:08:04 - End Time 2025-01-05 10:08:04 [2025-01-05 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179509', 'tblTempUsageDetail_20' ) start [2025-01-05 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179509', 'tblTempUsageDetail_20' ) end [2025-01-05 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179509', 'tblTempVendorCDR_20' ) start [2025-01-05 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179509', 'tblTempVendorCDR_20' ) end [2025-01-05 10:08:17] Production.INFO: ProcessCDR(1,14179509,1,1,2) [2025-01-05 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179509', 'tblTempUsageDetail_20' ) start [2025-01-05 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179509', 'tblTempUsageDetail_20' ) end [2025-01-05 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:08:22] Production.INFO: ==2503== Releasing lock... [2025-01-05 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-05 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:09:05 [end_date_ymd] => 2025-01-05 10:09:05 [RateCDR] => 1 ) [2025-01-05 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:09:05' and `end` < '2025-01-05 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:09:18] Production.INFO: count ==138 [2025-01-05 10:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:09:05 - End Time 2025-01-05 10:09:05 [2025-01-05 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179514', 'tblTempUsageDetail_20' ) start [2025-01-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179514', 'tblTempUsageDetail_20' ) end [2025-01-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179514', 'tblTempVendorCDR_20' ) start [2025-01-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179514', 'tblTempVendorCDR_20' ) end [2025-01-05 10:09:18] Production.INFO: ProcessCDR(1,14179514,1,1,2) [2025-01-05 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179514', 'tblTempUsageDetail_20' ) start [2025-01-05 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179514', 'tblTempUsageDetail_20' ) end [2025-01-05 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:09:22] Production.INFO: ==2595== Releasing lock... [2025-01-05 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:10:05 [end_date_ymd] => 2025-01-05 10:10:05 [RateCDR] => 1 ) [2025-01-05 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:10:05' and `end` < '2025-01-05 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:10:18] Production.INFO: count ==160 [2025-01-05 10:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:10:05 - End Time 2025-01-05 10:10:05 [2025-01-05 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179520', 'tblTempUsageDetail_20' ) start [2025-01-05 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179520', 'tblTempUsageDetail_20' ) end [2025-01-05 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179520', 'tblTempVendorCDR_20' ) start [2025-01-05 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179520', 'tblTempVendorCDR_20' ) end [2025-01-05 10:10:18] Production.INFO: ProcessCDR(1,14179520,1,1,2) [2025-01-05 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179520', 'tblTempUsageDetail_20' ) start [2025-01-05 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179520', 'tblTempUsageDetail_20' ) end [2025-01-05 10:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:10:21] Production.INFO: ==2690== Releasing lock... [2025-01-05 10:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:11:05 [end_date_ymd] => 2025-01-05 10:11:05 [RateCDR] => 1 ) [2025-01-05 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:11:05' and `end` < '2025-01-05 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:11:19] Production.INFO: count ==170 [2025-01-05 10:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:11:05 - End Time 2025-01-05 10:11:05 [2025-01-05 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179525', 'tblTempUsageDetail_20' ) start [2025-01-05 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179525', 'tblTempUsageDetail_20' ) end [2025-01-05 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179525', 'tblTempVendorCDR_20' ) start [2025-01-05 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179525', 'tblTempVendorCDR_20' ) end [2025-01-05 10:11:19] Production.INFO: ProcessCDR(1,14179525,1,1,2) [2025-01-05 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179525', 'tblTempUsageDetail_20' ) start [2025-01-05 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179525', 'tblTempUsageDetail_20' ) end [2025-01-05 10:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:11:22] Production.INFO: ==2778== Releasing lock... [2025-01-05 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:12:05 [end_date_ymd] => 2025-01-05 10:12:05 [RateCDR] => 1 ) [2025-01-05 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:12:05' and `end` < '2025-01-05 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:12:18] Production.INFO: count ==171 [2025-01-05 10:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:12:05 - End Time 2025-01-05 10:12:05 [2025-01-05 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179530', 'tblTempUsageDetail_20' ) start [2025-01-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179530', 'tblTempUsageDetail_20' ) end [2025-01-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179530', 'tblTempVendorCDR_20' ) start [2025-01-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179530', 'tblTempVendorCDR_20' ) end [2025-01-05 10:12:18] Production.INFO: ProcessCDR(1,14179530,1,1,2) [2025-01-05 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179530', 'tblTempUsageDetail_20' ) start [2025-01-05 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179530', 'tblTempUsageDetail_20' ) end [2025-01-05 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:12:22] Production.INFO: ==2864== Releasing lock... [2025-01-05 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-05 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:13:05 [end_date_ymd] => 2025-01-05 10:13:05 [RateCDR] => 1 ) [2025-01-05 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:13:05' and `end` < '2025-01-05 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:13:18] Production.INFO: count ==172 [2025-01-05 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:13:05 - End Time 2025-01-05 10:13:05 [2025-01-05 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179535', 'tblTempUsageDetail_20' ) start [2025-01-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179535', 'tblTempUsageDetail_20' ) end [2025-01-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179535', 'tblTempVendorCDR_20' ) start [2025-01-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179535', 'tblTempVendorCDR_20' ) end [2025-01-05 10:13:18] Production.INFO: ProcessCDR(1,14179535,1,1,2) [2025-01-05 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179535', 'tblTempUsageDetail_20' ) start [2025-01-05 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179535', 'tblTempUsageDetail_20' ) end [2025-01-05 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:13:22] Production.INFO: ==2949== Releasing lock... [2025-01-05 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-05 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:14:05 [end_date_ymd] => 2025-01-05 10:14:05 [RateCDR] => 1 ) [2025-01-05 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:14:05' and `end` < '2025-01-05 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:14:21] Production.INFO: count ==175 [2025-01-05 10:14:21] Production.ERROR: pbx CDR StartTime 2025-01-05 07:14:05 - End Time 2025-01-05 10:14:05 [2025-01-05 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179540', 'tblTempUsageDetail_20' ) start [2025-01-05 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179540', 'tblTempUsageDetail_20' ) end [2025-01-05 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179540', 'tblTempVendorCDR_20' ) start [2025-01-05 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179540', 'tblTempVendorCDR_20' ) end [2025-01-05 10:14:21] Production.INFO: ProcessCDR(1,14179540,1,1,2) [2025-01-05 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179540', 'tblTempUsageDetail_20' ) start [2025-01-05 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179540', 'tblTempUsageDetail_20' ) end [2025-01-05 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:14:25] Production.INFO: ==3033== Releasing lock... [2025-01-05 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:14:25] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:15:05 [end_date_ymd] => 2025-01-05 10:15:05 [RateCDR] => 1 ) [2025-01-05 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:15:05' and `end` < '2025-01-05 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:15:17] Production.INFO: count ==176 [2025-01-05 10:15:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:15:05 - End Time 2025-01-05 10:15:05 [2025-01-05 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179545', 'tblTempUsageDetail_20' ) start [2025-01-05 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179545', 'tblTempUsageDetail_20' ) end [2025-01-05 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179545', 'tblTempVendorCDR_20' ) start [2025-01-05 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179545', 'tblTempVendorCDR_20' ) end [2025-01-05 10:15:17] Production.INFO: ProcessCDR(1,14179545,1,1,2) [2025-01-05 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179545', 'tblTempUsageDetail_20' ) start [2025-01-05 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179545', 'tblTempUsageDetail_20' ) end [2025-01-05 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:15:22] Production.INFO: ==3121== Releasing lock... [2025-01-05 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-05 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:16:05 [end_date_ymd] => 2025-01-05 10:16:05 [RateCDR] => 1 ) [2025-01-05 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:16:05' and `end` < '2025-01-05 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:16:18] Production.INFO: count ==194 [2025-01-05 10:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:16:05 - End Time 2025-01-05 10:16:05 [2025-01-05 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179550', 'tblTempUsageDetail_20' ) start [2025-01-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179550', 'tblTempUsageDetail_20' ) end [2025-01-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179550', 'tblTempVendorCDR_20' ) start [2025-01-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179550', 'tblTempVendorCDR_20' ) end [2025-01-05 10:16:18] Production.INFO: ProcessCDR(1,14179550,1,1,2) [2025-01-05 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179550', 'tblTempUsageDetail_20' ) start [2025-01-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179550', 'tblTempUsageDetail_20' ) end [2025-01-05 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:16:23] Production.INFO: ==3214== Releasing lock... [2025-01-05 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:16:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:17:04 [end_date_ymd] => 2025-01-05 10:17:04 [RateCDR] => 1 ) [2025-01-05 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:17:04' and `end` < '2025-01-05 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:17:21] Production.INFO: count ==201 [2025-01-05 10:17:21] Production.ERROR: pbx CDR StartTime 2025-01-05 07:17:04 - End Time 2025-01-05 10:17:04 [2025-01-05 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179555', 'tblTempUsageDetail_20' ) start [2025-01-05 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179555', 'tblTempUsageDetail_20' ) end [2025-01-05 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179555', 'tblTempVendorCDR_20' ) start [2025-01-05 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179555', 'tblTempVendorCDR_20' ) end [2025-01-05 10:17:21] Production.INFO: ProcessCDR(1,14179555,1,1,2) [2025-01-05 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179555', 'tblTempUsageDetail_20' ) start [2025-01-05 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179555', 'tblTempUsageDetail_20' ) end [2025-01-05 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:17:25] Production.INFO: ==3340== Releasing lock... [2025-01-05 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:17:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:18:05 [end_date_ymd] => 2025-01-05 10:18:05 [RateCDR] => 1 ) [2025-01-05 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:18:05' and `end` < '2025-01-05 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:18:18] Production.INFO: count ==211 [2025-01-05 10:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:18:05 - End Time 2025-01-05 10:18:05 [2025-01-05 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179560', 'tblTempUsageDetail_20' ) start [2025-01-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179560', 'tblTempUsageDetail_20' ) end [2025-01-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179560', 'tblTempVendorCDR_20' ) start [2025-01-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179560', 'tblTempVendorCDR_20' ) end [2025-01-05 10:18:18] Production.INFO: ProcessCDR(1,14179560,1,1,2) [2025-01-05 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179560', 'tblTempUsageDetail_20' ) start [2025-01-05 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179560', 'tblTempUsageDetail_20' ) end [2025-01-05 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:18:21] Production.INFO: ==3432== Releasing lock... [2025-01-05 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:19:05 [end_date_ymd] => 2025-01-05 10:19:05 [RateCDR] => 1 ) [2025-01-05 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:19:05' and `end` < '2025-01-05 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:19:19] Production.INFO: count ==212 [2025-01-05 10:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:19:05 - End Time 2025-01-05 10:19:05 [2025-01-05 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179565', 'tblTempUsageDetail_20' ) start [2025-01-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179565', 'tblTempUsageDetail_20' ) end [2025-01-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179565', 'tblTempVendorCDR_20' ) start [2025-01-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179565', 'tblTempVendorCDR_20' ) end [2025-01-05 10:19:19] Production.INFO: ProcessCDR(1,14179565,1,1,2) [2025-01-05 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179565', 'tblTempUsageDetail_20' ) start [2025-01-05 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179565', 'tblTempUsageDetail_20' ) end [2025-01-05 10:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:19:23] Production.INFO: ==3525== Releasing lock... [2025-01-05 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:19:23] Production.INFO: 30 MB #Memory Used# [2025-01-05 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:20:05 [end_date_ymd] => 2025-01-05 10:20:05 [RateCDR] => 1 ) [2025-01-05 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:20:05' and `end` < '2025-01-05 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:20:18] Production.INFO: count ==223 [2025-01-05 10:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:20:05 - End Time 2025-01-05 10:20:05 [2025-01-05 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179570', 'tblTempUsageDetail_20' ) start [2025-01-05 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179570', 'tblTempUsageDetail_20' ) end [2025-01-05 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179570', 'tblTempVendorCDR_20' ) start [2025-01-05 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179570', 'tblTempVendorCDR_20' ) end [2025-01-05 10:20:18] Production.INFO: ProcessCDR(1,14179570,1,1,2) [2025-01-05 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179570', 'tblTempUsageDetail_20' ) start [2025-01-05 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179570', 'tblTempUsageDetail_20' ) end [2025-01-05 10:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:20:21] Production.INFO: ==3619== Releasing lock... [2025-01-05 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:20:21] Production.INFO: 30 MB #Memory Used# [2025-01-05 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:21:04 [end_date_ymd] => 2025-01-05 10:21:04 [RateCDR] => 1 ) [2025-01-05 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:21:04' and `end` < '2025-01-05 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:21:17] Production.INFO: count ==231 [2025-01-05 10:21:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:21:04 - End Time 2025-01-05 10:21:04 [2025-01-05 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179576', 'tblTempUsageDetail_20' ) start [2025-01-05 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179576', 'tblTempUsageDetail_20' ) end [2025-01-05 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179576', 'tblTempVendorCDR_20' ) start [2025-01-05 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179576', 'tblTempVendorCDR_20' ) end [2025-01-05 10:21:17] Production.INFO: ProcessCDR(1,14179576,1,1,2) [2025-01-05 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179576', 'tblTempUsageDetail_20' ) start [2025-01-05 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179576', 'tblTempUsageDetail_20' ) end [2025-01-05 10:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:21:20] Production.INFO: ==3716== Releasing lock... [2025-01-05 10:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:22:05 [end_date_ymd] => 2025-01-05 10:22:05 [RateCDR] => 1 ) [2025-01-05 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:22:05' and `end` < '2025-01-05 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:22:18] Production.INFO: count ==238 [2025-01-05 10:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:22:05 - End Time 2025-01-05 10:22:05 [2025-01-05 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179581', 'tblTempUsageDetail_20' ) start [2025-01-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179581', 'tblTempUsageDetail_20' ) end [2025-01-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179581', 'tblTempVendorCDR_20' ) start [2025-01-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179581', 'tblTempVendorCDR_20' ) end [2025-01-05 10:22:18] Production.INFO: ProcessCDR(1,14179581,1,1,2) [2025-01-05 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179581', 'tblTempUsageDetail_20' ) start [2025-01-05 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179581', 'tblTempUsageDetail_20' ) end [2025-01-05 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:22:21] Production.INFO: ==3805== Releasing lock... [2025-01-05 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:23:04 [end_date_ymd] => 2025-01-05 10:23:04 [RateCDR] => 1 ) [2025-01-05 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:23:04' and `end` < '2025-01-05 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:23:19] Production.INFO: count ==242 [2025-01-05 10:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:23:04 - End Time 2025-01-05 10:23:04 [2025-01-05 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179586', 'tblTempUsageDetail_20' ) start [2025-01-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179586', 'tblTempUsageDetail_20' ) end [2025-01-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179586', 'tblTempVendorCDR_20' ) start [2025-01-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179586', 'tblTempVendorCDR_20' ) end [2025-01-05 10:23:19] Production.INFO: ProcessCDR(1,14179586,1,1,2) [2025-01-05 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179586', 'tblTempUsageDetail_20' ) start [2025-01-05 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179586', 'tblTempUsageDetail_20' ) end [2025-01-05 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:23:22] Production.INFO: ==3892== Releasing lock... [2025-01-05 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:24:05 [end_date_ymd] => 2025-01-05 10:24:05 [RateCDR] => 1 ) [2025-01-05 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:24:05' and `end` < '2025-01-05 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:24:18] Production.INFO: count ==242 [2025-01-05 10:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:24:05 - End Time 2025-01-05 10:24:05 [2025-01-05 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179591', 'tblTempUsageDetail_20' ) start [2025-01-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179591', 'tblTempUsageDetail_20' ) end [2025-01-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179591', 'tblTempVendorCDR_20' ) start [2025-01-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179591', 'tblTempVendorCDR_20' ) end [2025-01-05 10:24:18] Production.INFO: ProcessCDR(1,14179591,1,1,2) [2025-01-05 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179591', 'tblTempUsageDetail_20' ) start [2025-01-05 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179591', 'tblTempUsageDetail_20' ) end [2025-01-05 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:24:21] Production.INFO: ==3987== Releasing lock... [2025-01-05 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:25:05 [end_date_ymd] => 2025-01-05 10:25:05 [RateCDR] => 1 ) [2025-01-05 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:25:05' and `end` < '2025-01-05 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:25:18] Production.INFO: count ==245 [2025-01-05 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:25:05 - End Time 2025-01-05 10:25:05 [2025-01-05 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179596', 'tblTempUsageDetail_20' ) start [2025-01-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179596', 'tblTempUsageDetail_20' ) end [2025-01-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179596', 'tblTempVendorCDR_20' ) start [2025-01-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179596', 'tblTempVendorCDR_20' ) end [2025-01-05 10:25:18] Production.INFO: ProcessCDR(1,14179596,1,1,2) [2025-01-05 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179596', 'tblTempUsageDetail_20' ) start [2025-01-05 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179596', 'tblTempUsageDetail_20' ) end [2025-01-05 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:25:22] Production.INFO: ==4080== Releasing lock... [2025-01-05 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:26:05 [end_date_ymd] => 2025-01-05 10:26:05 [RateCDR] => 1 ) [2025-01-05 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:26:05' and `end` < '2025-01-05 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:26:18] Production.INFO: count ==246 [2025-01-05 10:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:26:05 - End Time 2025-01-05 10:26:05 [2025-01-05 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179601', 'tblTempUsageDetail_20' ) start [2025-01-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179601', 'tblTempUsageDetail_20' ) end [2025-01-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179601', 'tblTempVendorCDR_20' ) start [2025-01-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179601', 'tblTempVendorCDR_20' ) end [2025-01-05 10:26:18] Production.INFO: ProcessCDR(1,14179601,1,1,2) [2025-01-05 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179601', 'tblTempUsageDetail_20' ) start [2025-01-05 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179601', 'tblTempUsageDetail_20' ) end [2025-01-05 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:26:22] Production.INFO: ==4171== Releasing lock... [2025-01-05 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-05 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:27:05 [end_date_ymd] => 2025-01-05 10:27:05 [RateCDR] => 1 ) [2025-01-05 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:27:05' and `end` < '2025-01-05 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:27:18] Production.INFO: count ==247 [2025-01-05 10:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:27:05 - End Time 2025-01-05 10:27:05 [2025-01-05 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179606', 'tblTempUsageDetail_20' ) start [2025-01-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179606', 'tblTempUsageDetail_20' ) end [2025-01-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179606', 'tblTempVendorCDR_20' ) start [2025-01-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179606', 'tblTempVendorCDR_20' ) end [2025-01-05 10:27:18] Production.INFO: ProcessCDR(1,14179606,1,1,2) [2025-01-05 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179606', 'tblTempUsageDetail_20' ) start [2025-01-05 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179606', 'tblTempUsageDetail_20' ) end [2025-01-05 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:27:21] Production.INFO: ==4262== Releasing lock... [2025-01-05 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:28:05 [end_date_ymd] => 2025-01-05 10:28:05 [RateCDR] => 1 ) [2025-01-05 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:28:05' and `end` < '2025-01-05 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:28:19] Production.INFO: count ==261 [2025-01-05 10:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:28:05 - End Time 2025-01-05 10:28:05 [2025-01-05 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179611', 'tblTempUsageDetail_20' ) start [2025-01-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179611', 'tblTempUsageDetail_20' ) end [2025-01-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179611', 'tblTempVendorCDR_20' ) start [2025-01-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179611', 'tblTempVendorCDR_20' ) end [2025-01-05 10:28:19] Production.INFO: ProcessCDR(1,14179611,1,1,2) [2025-01-05 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179611', 'tblTempUsageDetail_20' ) start [2025-01-05 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179611', 'tblTempUsageDetail_20' ) end [2025-01-05 10:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:28:22] Production.INFO: ==4352== Releasing lock... [2025-01-05 10:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:28:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:29:05 [end_date_ymd] => 2025-01-05 10:29:05 [RateCDR] => 1 ) [2025-01-05 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:29:05' and `end` < '2025-01-05 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:29:18] Production.INFO: count ==269 [2025-01-05 10:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:29:05 - End Time 2025-01-05 10:29:05 [2025-01-05 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179616', 'tblTempUsageDetail_20' ) start [2025-01-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179616', 'tblTempUsageDetail_20' ) end [2025-01-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179616', 'tblTempVendorCDR_20' ) start [2025-01-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179616', 'tblTempVendorCDR_20' ) end [2025-01-05 10:29:18] Production.INFO: ProcessCDR(1,14179616,1,1,2) [2025-01-05 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179616', 'tblTempUsageDetail_20' ) start [2025-01-05 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179616', 'tblTempUsageDetail_20' ) end [2025-01-05 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:29:21] Production.INFO: ==4442== Releasing lock... [2025-01-05 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-05 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:30:06 [end_date_ymd] => 2025-01-05 10:30:06 [RateCDR] => 1 ) [2025-01-05 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:30:06' and `end` < '2025-01-05 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:30:19] Production.INFO: count ==277 [2025-01-05 10:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:30:06 - End Time 2025-01-05 10:30:06 [2025-01-05 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179621', 'tblTempUsageDetail_20' ) start [2025-01-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179621', 'tblTempUsageDetail_20' ) end [2025-01-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179621', 'tblTempVendorCDR_20' ) start [2025-01-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179621', 'tblTempVendorCDR_20' ) end [2025-01-05 10:30:19] Production.INFO: ProcessCDR(1,14179621,1,1,2) [2025-01-05 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179621', 'tblTempUsageDetail_20' ) start [2025-01-05 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179621', 'tblTempUsageDetail_20' ) end [2025-01-05 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:30:22] Production.INFO: ==4534== Releasing lock... [2025-01-05 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:31:05 [end_date_ymd] => 2025-01-05 10:31:05 [RateCDR] => 1 ) [2025-01-05 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:31:05' and `end` < '2025-01-05 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:31:19] Production.INFO: count ==293 [2025-01-05 10:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:31:05 - End Time 2025-01-05 10:31:05 [2025-01-05 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179627', 'tblTempUsageDetail_20' ) start [2025-01-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179627', 'tblTempUsageDetail_20' ) end [2025-01-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179627', 'tblTempVendorCDR_20' ) start [2025-01-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179627', 'tblTempVendorCDR_20' ) end [2025-01-05 10:31:19] Production.INFO: ProcessCDR(1,14179627,1,1,2) [2025-01-05 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179627', 'tblTempUsageDetail_20' ) start [2025-01-05 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179627', 'tblTempUsageDetail_20' ) end [2025-01-05 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:31:22] Production.INFO: ==4635== Releasing lock... [2025-01-05 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:31:22] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:32:05 [end_date_ymd] => 2025-01-05 10:32:05 [RateCDR] => 1 ) [2025-01-05 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:32:05' and `end` < '2025-01-05 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:32:19] Production.INFO: count ==296 [2025-01-05 10:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:32:05 - End Time 2025-01-05 10:32:05 [2025-01-05 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179632', 'tblTempUsageDetail_20' ) start [2025-01-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179632', 'tblTempUsageDetail_20' ) end [2025-01-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179632', 'tblTempVendorCDR_20' ) start [2025-01-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179632', 'tblTempVendorCDR_20' ) end [2025-01-05 10:32:19] Production.INFO: ProcessCDR(1,14179632,1,1,2) [2025-01-05 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179632', 'tblTempUsageDetail_20' ) start [2025-01-05 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179632', 'tblTempUsageDetail_20' ) end [2025-01-05 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:32:22] Production.INFO: ==4741== Releasing lock... [2025-01-05 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:33:05 [end_date_ymd] => 2025-01-05 10:33:05 [RateCDR] => 1 ) [2025-01-05 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:33:05' and `end` < '2025-01-05 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:33:18] Production.INFO: count ==297 [2025-01-05 10:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:33:05 - End Time 2025-01-05 10:33:05 [2025-01-05 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179637', 'tblTempUsageDetail_20' ) start [2025-01-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179637', 'tblTempUsageDetail_20' ) end [2025-01-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179637', 'tblTempVendorCDR_20' ) start [2025-01-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179637', 'tblTempVendorCDR_20' ) end [2025-01-05 10:33:18] Production.INFO: ProcessCDR(1,14179637,1,1,2) [2025-01-05 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179637', 'tblTempUsageDetail_20' ) start [2025-01-05 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179637', 'tblTempUsageDetail_20' ) end [2025-01-05 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:33:21] Production.INFO: ==4870== Releasing lock... [2025-01-05 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:33:21] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:34:05 [end_date_ymd] => 2025-01-05 10:34:05 [RateCDR] => 1 ) [2025-01-05 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:34:05' and `end` < '2025-01-05 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:34:19] Production.INFO: count ==304 [2025-01-05 10:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:34:05 - End Time 2025-01-05 10:34:05 [2025-01-05 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179642', 'tblTempUsageDetail_20' ) start [2025-01-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179642', 'tblTempUsageDetail_20' ) end [2025-01-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179642', 'tblTempVendorCDR_20' ) start [2025-01-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179642', 'tblTempVendorCDR_20' ) end [2025-01-05 10:34:19] Production.INFO: ProcessCDR(1,14179642,1,1,2) [2025-01-05 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179642', 'tblTempUsageDetail_20' ) start [2025-01-05 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179642', 'tblTempUsageDetail_20' ) end [2025-01-05 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:34:23] Production.INFO: ==4961== Releasing lock... [2025-01-05 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:35:05 [end_date_ymd] => 2025-01-05 10:35:05 [RateCDR] => 1 ) [2025-01-05 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:35:05' and `end` < '2025-01-05 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:35:18] Production.INFO: count ==304 [2025-01-05 10:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:35:05 - End Time 2025-01-05 10:35:05 [2025-01-05 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179647', 'tblTempUsageDetail_20' ) start [2025-01-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179647', 'tblTempUsageDetail_20' ) end [2025-01-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179647', 'tblTempVendorCDR_20' ) start [2025-01-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179647', 'tblTempVendorCDR_20' ) end [2025-01-05 10:35:18] Production.INFO: ProcessCDR(1,14179647,1,1,2) [2025-01-05 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179647', 'tblTempUsageDetail_20' ) start [2025-01-05 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179647', 'tblTempUsageDetail_20' ) end [2025-01-05 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:35:21] Production.INFO: ==5047== Releasing lock... [2025-01-05 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:36:06 [end_date_ymd] => 2025-01-05 10:36:06 [RateCDR] => 1 ) [2025-01-05 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:36:06' and `end` < '2025-01-05 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:36:21] Production.INFO: count ==304 [2025-01-05 10:36:21] Production.ERROR: pbx CDR StartTime 2025-01-05 07:36:06 - End Time 2025-01-05 10:36:06 [2025-01-05 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179652', 'tblTempUsageDetail_20' ) start [2025-01-05 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179652', 'tblTempUsageDetail_20' ) end [2025-01-05 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179652', 'tblTempVendorCDR_20' ) start [2025-01-05 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179652', 'tblTempVendorCDR_20' ) end [2025-01-05 10:36:21] Production.INFO: ProcessCDR(1,14179652,1,1,2) [2025-01-05 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179652', 'tblTempUsageDetail_20' ) start [2025-01-05 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179652', 'tblTempUsageDetail_20' ) end [2025-01-05 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:36:24] Production.INFO: ==5131== Releasing lock... [2025-01-05 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:36:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:37:05 [end_date_ymd] => 2025-01-05 10:37:05 [RateCDR] => 1 ) [2025-01-05 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:37:05' and `end` < '2025-01-05 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:37:17] Production.INFO: count ==304 [2025-01-05 10:37:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:37:05 - End Time 2025-01-05 10:37:05 [2025-01-05 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179657', 'tblTempUsageDetail_20' ) start [2025-01-05 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179657', 'tblTempUsageDetail_20' ) end [2025-01-05 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179657', 'tblTempVendorCDR_20' ) start [2025-01-05 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179657', 'tblTempVendorCDR_20' ) end [2025-01-05 10:37:17] Production.INFO: ProcessCDR(1,14179657,1,1,2) [2025-01-05 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179657', 'tblTempUsageDetail_20' ) start [2025-01-05 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179657', 'tblTempUsageDetail_20' ) end [2025-01-05 10:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:37:20] Production.INFO: ==5217== Releasing lock... [2025-01-05 10:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:38:05 [end_date_ymd] => 2025-01-05 10:38:05 [RateCDR] => 1 ) [2025-01-05 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:38:05' and `end` < '2025-01-05 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:38:18] Production.INFO: count ==306 [2025-01-05 10:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:38:05 - End Time 2025-01-05 10:38:05 [2025-01-05 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179662', 'tblTempUsageDetail_20' ) start [2025-01-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179662', 'tblTempUsageDetail_20' ) end [2025-01-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179662', 'tblTempVendorCDR_20' ) start [2025-01-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179662', 'tblTempVendorCDR_20' ) end [2025-01-05 10:38:18] Production.INFO: ProcessCDR(1,14179662,1,1,2) [2025-01-05 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179662', 'tblTempUsageDetail_20' ) start [2025-01-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179662', 'tblTempUsageDetail_20' ) end [2025-01-05 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:38:23] Production.INFO: ==5301== Releasing lock... [2025-01-05 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:38:23] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:39:04 [end_date_ymd] => 2025-01-05 10:39:04 [RateCDR] => 1 ) [2025-01-05 10:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:39:04' and `end` < '2025-01-05 10:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:39:18] Production.INFO: count ==307 [2025-01-05 10:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:39:04 - End Time 2025-01-05 10:39:04 [2025-01-05 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179667', 'tblTempUsageDetail_20' ) start [2025-01-05 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179667', 'tblTempUsageDetail_20' ) end [2025-01-05 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179667', 'tblTempVendorCDR_20' ) start [2025-01-05 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179667', 'tblTempVendorCDR_20' ) end [2025-01-05 10:39:18] Production.INFO: ProcessCDR(1,14179667,1,1,2) [2025-01-05 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179667', 'tblTempUsageDetail_20' ) start [2025-01-05 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179667', 'tblTempUsageDetail_20' ) end [2025-01-05 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:39:23] Production.INFO: ==5381== Releasing lock... [2025-01-05 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:39:23] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:40:06 [end_date_ymd] => 2025-01-05 10:40:06 [RateCDR] => 1 ) [2025-01-05 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:40:06' and `end` < '2025-01-05 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:40:19] Production.INFO: count ==315 [2025-01-05 10:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:40:06 - End Time 2025-01-05 10:40:06 [2025-01-05 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179673', 'tblTempUsageDetail_20' ) start [2025-01-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179673', 'tblTempUsageDetail_20' ) end [2025-01-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179673', 'tblTempVendorCDR_20' ) start [2025-01-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179673', 'tblTempVendorCDR_20' ) end [2025-01-05 10:40:19] Production.INFO: ProcessCDR(1,14179673,1,1,2) [2025-01-05 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179673', 'tblTempUsageDetail_20' ) start [2025-01-05 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179673', 'tblTempUsageDetail_20' ) end [2025-01-05 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:40:22] Production.INFO: ==5464== Releasing lock... [2025-01-05 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:40:22] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:41:05 [end_date_ymd] => 2025-01-05 10:41:05 [RateCDR] => 1 ) [2025-01-05 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:41:05' and `end` < '2025-01-05 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:41:17] Production.INFO: count ==333 [2025-01-05 10:41:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:41:05 - End Time 2025-01-05 10:41:05 [2025-01-05 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179678', 'tblTempUsageDetail_20' ) start [2025-01-05 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179678', 'tblTempUsageDetail_20' ) end [2025-01-05 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179678', 'tblTempVendorCDR_20' ) start [2025-01-05 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179678', 'tblTempVendorCDR_20' ) end [2025-01-05 10:41:17] Production.INFO: ProcessCDR(1,14179678,1,1,2) [2025-01-05 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179678', 'tblTempUsageDetail_20' ) start [2025-01-05 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179678', 'tblTempUsageDetail_20' ) end [2025-01-05 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:41:21] Production.INFO: ==5549== Releasing lock... [2025-01-05 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:42:05 [end_date_ymd] => 2025-01-05 10:42:05 [RateCDR] => 1 ) [2025-01-05 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:42:05' and `end` < '2025-01-05 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:42:19] Production.INFO: count ==333 [2025-01-05 10:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:42:05 - End Time 2025-01-05 10:42:05 [2025-01-05 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179683', 'tblTempUsageDetail_20' ) start [2025-01-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179683', 'tblTempUsageDetail_20' ) end [2025-01-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179683', 'tblTempVendorCDR_20' ) start [2025-01-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179683', 'tblTempVendorCDR_20' ) end [2025-01-05 10:42:19] Production.INFO: ProcessCDR(1,14179683,1,1,2) [2025-01-05 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179683', 'tblTempUsageDetail_20' ) start [2025-01-05 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179683', 'tblTempUsageDetail_20' ) end [2025-01-05 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:42:22] Production.INFO: ==5635== Releasing lock... [2025-01-05 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:43:05 [end_date_ymd] => 2025-01-05 10:43:05 [RateCDR] => 1 ) [2025-01-05 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:43:05' and `end` < '2025-01-05 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:43:19] Production.INFO: count ==337 [2025-01-05 10:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:43:05 - End Time 2025-01-05 10:43:05 [2025-01-05 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179688', 'tblTempUsageDetail_20' ) start [2025-01-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179688', 'tblTempUsageDetail_20' ) end [2025-01-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179688', 'tblTempVendorCDR_20' ) start [2025-01-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179688', 'tblTempVendorCDR_20' ) end [2025-01-05 10:43:19] Production.INFO: ProcessCDR(1,14179688,1,1,2) [2025-01-05 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179688', 'tblTempUsageDetail_20' ) start [2025-01-05 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179688', 'tblTempUsageDetail_20' ) end [2025-01-05 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:43:22] Production.INFO: ==5716== Releasing lock... [2025-01-05 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:43:22] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:44:05 [end_date_ymd] => 2025-01-05 10:44:05 [RateCDR] => 1 ) [2025-01-05 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:44:05' and `end` < '2025-01-05 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:44:19] Production.INFO: count ==338 [2025-01-05 10:44:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:44:05 - End Time 2025-01-05 10:44:05 [2025-01-05 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179693', 'tblTempUsageDetail_20' ) start [2025-01-05 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179693', 'tblTempUsageDetail_20' ) end [2025-01-05 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179693', 'tblTempVendorCDR_20' ) start [2025-01-05 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179693', 'tblTempVendorCDR_20' ) end [2025-01-05 10:44:19] Production.INFO: ProcessCDR(1,14179693,1,1,2) [2025-01-05 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179693', 'tblTempUsageDetail_20' ) start [2025-01-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179693', 'tblTempUsageDetail_20' ) end [2025-01-05 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:44:24] Production.INFO: ==5803== Releasing lock... [2025-01-05 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:44:24] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:45:05 [end_date_ymd] => 2025-01-05 10:45:05 [RateCDR] => 1 ) [2025-01-05 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:45:05' and `end` < '2025-01-05 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:45:18] Production.INFO: count ==338 [2025-01-05 10:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:45:05 - End Time 2025-01-05 10:45:05 [2025-01-05 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179698', 'tblTempUsageDetail_20' ) start [2025-01-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179698', 'tblTempUsageDetail_20' ) end [2025-01-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179698', 'tblTempVendorCDR_20' ) start [2025-01-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179698', 'tblTempVendorCDR_20' ) end [2025-01-05 10:45:18] Production.INFO: ProcessCDR(1,14179698,1,1,2) [2025-01-05 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179698', 'tblTempUsageDetail_20' ) start [2025-01-05 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179698', 'tblTempUsageDetail_20' ) end [2025-01-05 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:45:21] Production.INFO: ==5897== Releasing lock... [2025-01-05 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:45:21] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:46:05 [end_date_ymd] => 2025-01-05 10:46:05 [RateCDR] => 1 ) [2025-01-05 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:46:05' and `end` < '2025-01-05 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:46:18] Production.INFO: count ==340 [2025-01-05 10:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:46:05 - End Time 2025-01-05 10:46:05 [2025-01-05 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179702', 'tblTempUsageDetail_20' ) start [2025-01-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179702', 'tblTempUsageDetail_20' ) end [2025-01-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179702', 'tblTempVendorCDR_20' ) start [2025-01-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179702', 'tblTempVendorCDR_20' ) end [2025-01-05 10:46:18] Production.INFO: ProcessCDR(1,14179702,1,1,2) [2025-01-05 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179702', 'tblTempUsageDetail_20' ) start [2025-01-05 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179702', 'tblTempUsageDetail_20' ) end [2025-01-05 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:46:22] Production.INFO: ==5990== Releasing lock... [2025-01-05 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-05 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:47:05 [end_date_ymd] => 2025-01-05 10:47:05 [RateCDR] => 1 ) [2025-01-05 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:47:05' and `end` < '2025-01-05 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:47:18] Production.INFO: count ==342 [2025-01-05 10:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:47:05 - End Time 2025-01-05 10:47:05 [2025-01-05 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179708', 'tblTempUsageDetail_20' ) start [2025-01-05 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179708', 'tblTempUsageDetail_20' ) end [2025-01-05 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179708', 'tblTempVendorCDR_20' ) start [2025-01-05 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179708', 'tblTempVendorCDR_20' ) end [2025-01-05 10:47:18] Production.INFO: ProcessCDR(1,14179708,1,1,2) [2025-01-05 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179708', 'tblTempUsageDetail_20' ) start [2025-01-05 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179708', 'tblTempUsageDetail_20' ) end [2025-01-05 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:47:23] Production.INFO: ==6079== Releasing lock... [2025-01-05 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-05 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:48:05 [end_date_ymd] => 2025-01-05 10:48:05 [RateCDR] => 1 ) [2025-01-05 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:48:05' and `end` < '2025-01-05 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:48:19] Production.INFO: count ==344 [2025-01-05 10:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:48:05 - End Time 2025-01-05 10:48:05 [2025-01-05 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179713', 'tblTempUsageDetail_20' ) start [2025-01-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179713', 'tblTempUsageDetail_20' ) end [2025-01-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179713', 'tblTempVendorCDR_20' ) start [2025-01-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179713', 'tblTempVendorCDR_20' ) end [2025-01-05 10:48:19] Production.INFO: ProcessCDR(1,14179713,1,1,2) [2025-01-05 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179713', 'tblTempUsageDetail_20' ) start [2025-01-05 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179713', 'tblTempUsageDetail_20' ) end [2025-01-05 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:48:24] Production.INFO: ==6211== Releasing lock... [2025-01-05 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:48:24] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:49:05 [end_date_ymd] => 2025-01-05 10:49:05 [RateCDR] => 1 ) [2025-01-05 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:49:05' and `end` < '2025-01-05 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:49:18] Production.INFO: count ==345 [2025-01-05 10:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:49:05 - End Time 2025-01-05 10:49:05 [2025-01-05 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179718', 'tblTempUsageDetail_20' ) start [2025-01-05 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179718', 'tblTempUsageDetail_20' ) end [2025-01-05 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179718', 'tblTempVendorCDR_20' ) start [2025-01-05 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179718', 'tblTempVendorCDR_20' ) end [2025-01-05 10:49:18] Production.INFO: ProcessCDR(1,14179718,1,1,2) [2025-01-05 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179718', 'tblTempUsageDetail_20' ) start [2025-01-05 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179718', 'tblTempUsageDetail_20' ) end [2025-01-05 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:49:22] Production.INFO: ==6300== Releasing lock... [2025-01-05 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:50:05 [end_date_ymd] => 2025-01-05 10:50:05 [RateCDR] => 1 ) [2025-01-05 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:50:05' and `end` < '2025-01-05 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:50:18] Production.INFO: count ==354 [2025-01-05 10:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:50:05 - End Time 2025-01-05 10:50:05 [2025-01-05 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179724', 'tblTempUsageDetail_20' ) start [2025-01-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179724', 'tblTempUsageDetail_20' ) end [2025-01-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179724', 'tblTempVendorCDR_20' ) start [2025-01-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179724', 'tblTempVendorCDR_20' ) end [2025-01-05 10:50:18] Production.INFO: ProcessCDR(1,14179724,1,1,2) [2025-01-05 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179724', 'tblTempUsageDetail_20' ) start [2025-01-05 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179724', 'tblTempUsageDetail_20' ) end [2025-01-05 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:50:23] Production.INFO: ==6391== Releasing lock... [2025-01-05 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-05 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:51:05 [end_date_ymd] => 2025-01-05 10:51:05 [RateCDR] => 1 ) [2025-01-05 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:51:05' and `end` < '2025-01-05 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:51:19] Production.INFO: count ==357 [2025-01-05 10:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:51:05 - End Time 2025-01-05 10:51:05 [2025-01-05 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179729', 'tblTempUsageDetail_20' ) start [2025-01-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179729', 'tblTempUsageDetail_20' ) end [2025-01-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179729', 'tblTempVendorCDR_20' ) start [2025-01-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179729', 'tblTempVendorCDR_20' ) end [2025-01-05 10:51:19] Production.INFO: ProcessCDR(1,14179729,1,1,2) [2025-01-05 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179729', 'tblTempUsageDetail_20' ) start [2025-01-05 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179729', 'tblTempUsageDetail_20' ) end [2025-01-05 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:51:24] Production.INFO: ==6479== Releasing lock... [2025-01-05 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:51:24] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:52:05 [end_date_ymd] => 2025-01-05 10:52:05 [RateCDR] => 1 ) [2025-01-05 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:52:05' and `end` < '2025-01-05 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:52:19] Production.INFO: count ==358 [2025-01-05 10:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 07:52:05 - End Time 2025-01-05 10:52:05 [2025-01-05 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179734', 'tblTempUsageDetail_20' ) start [2025-01-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179734', 'tblTempUsageDetail_20' ) end [2025-01-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179734', 'tblTempVendorCDR_20' ) start [2025-01-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179734', 'tblTempVendorCDR_20' ) end [2025-01-05 10:52:19] Production.INFO: ProcessCDR(1,14179734,1,1,2) [2025-01-05 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179734', 'tblTempUsageDetail_20' ) start [2025-01-05 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179734', 'tblTempUsageDetail_20' ) end [2025-01-05 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:52:24] Production.INFO: ==6569== Releasing lock... [2025-01-05 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:52:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-05 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:53:05 [end_date_ymd] => 2025-01-05 10:53:05 [RateCDR] => 1 ) [2025-01-05 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:53:05' and `end` < '2025-01-05 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:53:19] Production.INFO: count ==372 [2025-01-05 10:53:20] Production.ERROR: pbx CDR StartTime 2025-01-05 07:53:05 - End Time 2025-01-05 10:53:05 [2025-01-05 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179739', 'tblTempUsageDetail_20' ) start [2025-01-05 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179739', 'tblTempUsageDetail_20' ) end [2025-01-05 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179739', 'tblTempVendorCDR_20' ) start [2025-01-05 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179739', 'tblTempVendorCDR_20' ) end [2025-01-05 10:53:20] Production.INFO: ProcessCDR(1,14179739,1,1,2) [2025-01-05 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179739', 'tblTempUsageDetail_20' ) start [2025-01-05 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179739', 'tblTempUsageDetail_20' ) end [2025-01-05 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:53:24] Production.INFO: ==6657== Releasing lock... [2025-01-05 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:53:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:54:04 [end_date_ymd] => 2025-01-05 10:54:04 [RateCDR] => 1 ) [2025-01-05 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:54:04' and `end` < '2025-01-05 10:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:54:17] Production.INFO: count ==373 [2025-01-05 10:54:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:54:04 - End Time 2025-01-05 10:54:04 [2025-01-05 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179744', 'tblTempUsageDetail_20' ) start [2025-01-05 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179744', 'tblTempUsageDetail_20' ) end [2025-01-05 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179744', 'tblTempVendorCDR_20' ) start [2025-01-05 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179744', 'tblTempVendorCDR_20' ) end [2025-01-05 10:54:17] Production.INFO: ProcessCDR(1,14179744,1,1,2) [2025-01-05 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179744', 'tblTempUsageDetail_20' ) start [2025-01-05 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179744', 'tblTempUsageDetail_20' ) end [2025-01-05 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:54:21] Production.INFO: ==6750== Releasing lock... [2025-01-05 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:54:21] Production.INFO: 31 MB #Memory Used# [2025-01-05 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:55:05 [end_date_ymd] => 2025-01-05 10:55:05 [RateCDR] => 1 ) [2025-01-05 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:55:05' and `end` < '2025-01-05 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:55:18] Production.INFO: count ==375 [2025-01-05 10:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:55:05 - End Time 2025-01-05 10:55:05 [2025-01-05 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179749', 'tblTempUsageDetail_20' ) start [2025-01-05 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179749', 'tblTempUsageDetail_20' ) end [2025-01-05 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179749', 'tblTempVendorCDR_20' ) start [2025-01-05 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179749', 'tblTempVendorCDR_20' ) end [2025-01-05 10:55:18] Production.INFO: ProcessCDR(1,14179749,1,1,2) [2025-01-05 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179749', 'tblTempUsageDetail_20' ) start [2025-01-05 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179749', 'tblTempUsageDetail_20' ) end [2025-01-05 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:55:21] Production.INFO: ==6838== Releasing lock... [2025-01-05 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-05 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:56:05 [end_date_ymd] => 2025-01-05 10:56:05 [RateCDR] => 1 ) [2025-01-05 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:56:05' and `end` < '2025-01-05 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:56:20] Production.INFO: count ==377 [2025-01-05 10:56:20] Production.ERROR: pbx CDR StartTime 2025-01-05 07:56:05 - End Time 2025-01-05 10:56:05 [2025-01-05 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179754', 'tblTempUsageDetail_20' ) start [2025-01-05 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179754', 'tblTempUsageDetail_20' ) end [2025-01-05 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179754', 'tblTempVendorCDR_20' ) start [2025-01-05 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179754', 'tblTempVendorCDR_20' ) end [2025-01-05 10:56:20] Production.INFO: ProcessCDR(1,14179754,1,1,2) [2025-01-05 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179754', 'tblTempUsageDetail_20' ) start [2025-01-05 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179754', 'tblTempUsageDetail_20' ) end [2025-01-05 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:56:25] Production.INFO: ==6925== Releasing lock... [2025-01-05 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:56:25] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:57:04 [end_date_ymd] => 2025-01-05 10:57:04 [RateCDR] => 1 ) [2025-01-05 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:57:04' and `end` < '2025-01-05 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:57:17] Production.INFO: count ==380 [2025-01-05 10:57:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:57:04 - End Time 2025-01-05 10:57:04 [2025-01-05 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179759', 'tblTempUsageDetail_20' ) start [2025-01-05 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179759', 'tblTempUsageDetail_20' ) end [2025-01-05 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179759', 'tblTempVendorCDR_20' ) start [2025-01-05 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179759', 'tblTempVendorCDR_20' ) end [2025-01-05 10:57:17] Production.INFO: ProcessCDR(1,14179759,1,1,2) [2025-01-05 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179759', 'tblTempUsageDetail_20' ) start [2025-01-05 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179759', 'tblTempUsageDetail_20' ) end [2025-01-05 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:57:22] Production.INFO: ==7008== Releasing lock... [2025-01-05 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:58:05 [end_date_ymd] => 2025-01-05 10:58:05 [RateCDR] => 1 ) [2025-01-05 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:58:05' and `end` < '2025-01-05 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:58:18] Production.INFO: count ==391 [2025-01-05 10:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 07:58:05 - End Time 2025-01-05 10:58:05 [2025-01-05 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179764', 'tblTempUsageDetail_20' ) start [2025-01-05 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179764', 'tblTempUsageDetail_20' ) end [2025-01-05 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179764', 'tblTempVendorCDR_20' ) start [2025-01-05 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179764', 'tblTempVendorCDR_20' ) end [2025-01-05 10:58:18] Production.INFO: ProcessCDR(1,14179764,1,1,2) [2025-01-05 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179764', 'tblTempUsageDetail_20' ) start [2025-01-05 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179764', 'tblTempUsageDetail_20' ) end [2025-01-05 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:58:21] Production.INFO: ==7103== Releasing lock... [2025-01-05 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 07:59:04 [end_date_ymd] => 2025-01-05 10:59:04 [RateCDR] => 1 ) [2025-01-05 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 07:59:04' and `end` < '2025-01-05 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 10:59:17] Production.INFO: count ==406 [2025-01-05 10:59:17] Production.ERROR: pbx CDR StartTime 2025-01-05 07:59:04 - End Time 2025-01-05 10:59:04 [2025-01-05 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179769', 'tblTempUsageDetail_20' ) start [2025-01-05 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179769', 'tblTempUsageDetail_20' ) end [2025-01-05 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179769', 'tblTempVendorCDR_20' ) start [2025-01-05 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179769', 'tblTempVendorCDR_20' ) end [2025-01-05 10:59:17] Production.INFO: ProcessCDR(1,14179769,1,1,2) [2025-01-05 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179769', 'tblTempUsageDetail_20' ) start [2025-01-05 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179769', 'tblTempUsageDetail_20' ) end [2025-01-05 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 10:59:22] Production.INFO: ==7192== Releasing lock... [2025-01-05 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 10:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-05 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:00:06 [end_date_ymd] => 2025-01-05 11:00:06 [RateCDR] => 1 ) [2025-01-05 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:00:06' and `end` < '2025-01-05 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:00:18] Production.INFO: count ==418 [2025-01-05 11:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:00:06 - End Time 2025-01-05 11:00:06 [2025-01-05 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179774', 'tblTempUsageDetail_20' ) start [2025-01-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179774', 'tblTempUsageDetail_20' ) end [2025-01-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179774', 'tblTempVendorCDR_20' ) start [2025-01-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179774', 'tblTempVendorCDR_20' ) end [2025-01-05 11:00:19] Production.INFO: ProcessCDR(1,14179774,1,1,2) [2025-01-05 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179774', 'tblTempUsageDetail_20' ) start [2025-01-05 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179774', 'tblTempUsageDetail_20' ) end [2025-01-05 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:00:22] Production.INFO: ==7279== Releasing lock... [2025-01-05 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-05 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:01:05 [end_date_ymd] => 2025-01-05 11:01:05 [RateCDR] => 1 ) [2025-01-05 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:01:05' and `end` < '2025-01-05 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:01:18] Production.INFO: count ==462 [2025-01-05 11:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:01:05 - End Time 2025-01-05 11:01:05 [2025-01-05 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179780', 'tblTempUsageDetail_20' ) start [2025-01-05 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179780', 'tblTempUsageDetail_20' ) end [2025-01-05 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179780', 'tblTempVendorCDR_20' ) start [2025-01-05 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179780', 'tblTempVendorCDR_20' ) end [2025-01-05 11:01:18] Production.INFO: ProcessCDR(1,14179780,1,1,2) [2025-01-05 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179780', 'tblTempUsageDetail_20' ) start [2025-01-05 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179780', 'tblTempUsageDetail_20' ) end [2025-01-05 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:01:21] Production.INFO: ==7377== Releasing lock... [2025-01-05 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:01:21] Production.INFO: 32 MB #Memory Used# [2025-01-05 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:02:05 [end_date_ymd] => 2025-01-05 11:02:05 [RateCDR] => 1 ) [2025-01-05 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:02:05' and `end` < '2025-01-05 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:02:18] Production.INFO: count ==463 [2025-01-05 11:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:02:05 - End Time 2025-01-05 11:02:05 [2025-01-05 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179785', 'tblTempUsageDetail_20' ) start [2025-01-05 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179785', 'tblTempUsageDetail_20' ) end [2025-01-05 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179785', 'tblTempVendorCDR_20' ) start [2025-01-05 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179785', 'tblTempVendorCDR_20' ) end [2025-01-05 11:02:18] Production.INFO: ProcessCDR(1,14179785,1,1,2) [2025-01-05 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179785', 'tblTempUsageDetail_20' ) start [2025-01-05 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179785', 'tblTempUsageDetail_20' ) end [2025-01-05 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:02:22] Production.INFO: ==7545== Releasing lock... [2025-01-05 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-05 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:03:05 [end_date_ymd] => 2025-01-05 11:03:05 [RateCDR] => 1 ) [2025-01-05 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:03:05' and `end` < '2025-01-05 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:03:19] Production.INFO: count ==471 [2025-01-05 11:03:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:03:05 - End Time 2025-01-05 11:03:05 [2025-01-05 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179790', 'tblTempUsageDetail_20' ) start [2025-01-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179790', 'tblTempUsageDetail_20' ) end [2025-01-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179790', 'tblTempVendorCDR_20' ) start [2025-01-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179790', 'tblTempVendorCDR_20' ) end [2025-01-05 11:03:20] Production.INFO: ProcessCDR(1,14179790,1,1,2) [2025-01-05 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179790', 'tblTempUsageDetail_20' ) start [2025-01-05 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179790', 'tblTempUsageDetail_20' ) end [2025-01-05 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:03:24] Production.INFO: ==7630== Releasing lock... [2025-01-05 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:03:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-05 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:04:05 [end_date_ymd] => 2025-01-05 11:04:05 [RateCDR] => 1 ) [2025-01-05 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:04:05' and `end` < '2025-01-05 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:04:18] Production.INFO: count ==479 [2025-01-05 11:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:04:05 - End Time 2025-01-05 11:04:05 [2025-01-05 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179795', 'tblTempUsageDetail_20' ) start [2025-01-05 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179795', 'tblTempUsageDetail_20' ) end [2025-01-05 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179795', 'tblTempVendorCDR_20' ) start [2025-01-05 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179795', 'tblTempVendorCDR_20' ) end [2025-01-05 11:04:18] Production.INFO: ProcessCDR(1,14179795,1,1,2) [2025-01-05 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179795', 'tblTempUsageDetail_20' ) start [2025-01-05 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179795', 'tblTempUsageDetail_20' ) end [2025-01-05 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:04:23] Production.INFO: ==7759== Releasing lock... [2025-01-05 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:04:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-05 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:05:05 [end_date_ymd] => 2025-01-05 11:05:05 [RateCDR] => 1 ) [2025-01-05 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:05:05' and `end` < '2025-01-05 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:05:18] Production.INFO: count ==490 [2025-01-05 11:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:05:05 - End Time 2025-01-05 11:05:05 [2025-01-05 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179800', 'tblTempUsageDetail_20' ) start [2025-01-05 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179800', 'tblTempUsageDetail_20' ) end [2025-01-05 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179800', 'tblTempVendorCDR_20' ) start [2025-01-05 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179800', 'tblTempVendorCDR_20' ) end [2025-01-05 11:05:18] Production.INFO: ProcessCDR(1,14179800,1,1,2) [2025-01-05 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179800', 'tblTempUsageDetail_20' ) start [2025-01-05 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179800', 'tblTempUsageDetail_20' ) end [2025-01-05 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:05:22] Production.INFO: ==7924== Releasing lock... [2025-01-05 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:05:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-05 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:06:05 [end_date_ymd] => 2025-01-05 11:06:05 [RateCDR] => 1 ) [2025-01-05 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:06:05' and `end` < '2025-01-05 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:06:17] Production.INFO: count ==492 [2025-01-05 11:06:17] Production.ERROR: pbx CDR StartTime 2025-01-05 08:06:05 - End Time 2025-01-05 11:06:05 [2025-01-05 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179805', 'tblTempUsageDetail_20' ) start [2025-01-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179805', 'tblTempUsageDetail_20' ) end [2025-01-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179805', 'tblTempVendorCDR_20' ) start [2025-01-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179805', 'tblTempVendorCDR_20' ) end [2025-01-05 11:06:18] Production.INFO: ProcessCDR(1,14179805,1,1,2) [2025-01-05 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179805', 'tblTempUsageDetail_20' ) start [2025-01-05 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179805', 'tblTempUsageDetail_20' ) end [2025-01-05 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:06:22] Production.INFO: ==8005== Releasing lock... [2025-01-05 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-05 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:07:05 [end_date_ymd] => 2025-01-05 11:07:05 [RateCDR] => 1 ) [2025-01-05 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:07:05' and `end` < '2025-01-05 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:07:20] Production.INFO: count ==493 [2025-01-05 11:07:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:07:05 - End Time 2025-01-05 11:07:05 [2025-01-05 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179810', 'tblTempUsageDetail_20' ) start [2025-01-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179810', 'tblTempUsageDetail_20' ) end [2025-01-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179810', 'tblTempVendorCDR_20' ) start [2025-01-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179810', 'tblTempVendorCDR_20' ) end [2025-01-05 11:07:20] Production.INFO: ProcessCDR(1,14179810,1,1,2) [2025-01-05 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179810', 'tblTempUsageDetail_20' ) start [2025-01-05 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179810', 'tblTempUsageDetail_20' ) end [2025-01-05 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:07:25] Production.INFO: ==8088== Releasing lock... [2025-01-05 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:07:25] Production.INFO: 32.25 MB #Memory Used# [2025-01-05 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:08:05 [end_date_ymd] => 2025-01-05 11:08:05 [RateCDR] => 1 ) [2025-01-05 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:08:05' and `end` < '2025-01-05 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:08:18] Production.INFO: count ==495 [2025-01-05 11:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:08:05 - End Time 2025-01-05 11:08:05 [2025-01-05 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179815', 'tblTempUsageDetail_20' ) start [2025-01-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179815', 'tblTempUsageDetail_20' ) end [2025-01-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179815', 'tblTempVendorCDR_20' ) start [2025-01-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179815', 'tblTempVendorCDR_20' ) end [2025-01-05 11:08:18] Production.INFO: ProcessCDR(1,14179815,1,1,2) [2025-01-05 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179815', 'tblTempUsageDetail_20' ) start [2025-01-05 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179815', 'tblTempUsageDetail_20' ) end [2025-01-05 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:08:23] Production.INFO: ==8250== Releasing lock... [2025-01-05 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:08:23] Production.INFO: 32 MB #Memory Used# [2025-01-05 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:09:05 [end_date_ymd] => 2025-01-05 11:09:05 [RateCDR] => 1 ) [2025-01-05 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:09:05' and `end` < '2025-01-05 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:09:18] Production.INFO: count ==496 [2025-01-05 11:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:09:05 - End Time 2025-01-05 11:09:05 [2025-01-05 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179820', 'tblTempUsageDetail_20' ) start [2025-01-05 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179820', 'tblTempUsageDetail_20' ) end [2025-01-05 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179820', 'tblTempVendorCDR_20' ) start [2025-01-05 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179820', 'tblTempVendorCDR_20' ) end [2025-01-05 11:09:18] Production.INFO: ProcessCDR(1,14179820,1,1,2) [2025-01-05 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179820', 'tblTempUsageDetail_20' ) start [2025-01-05 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179820', 'tblTempUsageDetail_20' ) end [2025-01-05 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:09:23] Production.INFO: ==8339== Releasing lock... [2025-01-05 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:09:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-05 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:10:05 [end_date_ymd] => 2025-01-05 11:10:05 [RateCDR] => 1 ) [2025-01-05 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:10:05' and `end` < '2025-01-05 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:10:18] Production.INFO: count ==519 [2025-01-05 11:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:10:05 - End Time 2025-01-05 11:10:05 [2025-01-05 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179825', 'tblTempUsageDetail_20' ) start [2025-01-05 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179825', 'tblTempUsageDetail_20' ) end [2025-01-05 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179825', 'tblTempVendorCDR_20' ) start [2025-01-05 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179825', 'tblTempVendorCDR_20' ) end [2025-01-05 11:10:18] Production.INFO: ProcessCDR(1,14179825,1,1,2) [2025-01-05 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179825', 'tblTempUsageDetail_20' ) start [2025-01-05 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179825', 'tblTempUsageDetail_20' ) end [2025-01-05 11:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:10:23] Production.INFO: ==8424== Releasing lock... [2025-01-05 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:10:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-05 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:11:05 [end_date_ymd] => 2025-01-05 11:11:05 [RateCDR] => 1 ) [2025-01-05 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:11:05' and `end` < '2025-01-05 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:11:19] Production.INFO: count ==575 [2025-01-05 11:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:11:05 - End Time 2025-01-05 11:11:05 [2025-01-05 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179831', 'tblTempUsageDetail_20' ) start [2025-01-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179831', 'tblTempUsageDetail_20' ) end [2025-01-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179831', 'tblTempVendorCDR_20' ) start [2025-01-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179831', 'tblTempVendorCDR_20' ) end [2025-01-05 11:11:19] Production.INFO: ProcessCDR(1,14179831,1,1,2) [2025-01-05 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179831', 'tblTempUsageDetail_20' ) start [2025-01-05 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179831', 'tblTempUsageDetail_20' ) end [2025-01-05 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:11:23] Production.INFO: ==8511== Releasing lock... [2025-01-05 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:11:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:12:06 [end_date_ymd] => 2025-01-05 11:12:06 [RateCDR] => 1 ) [2025-01-05 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:12:06' and `end` < '2025-01-05 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:12:18] Production.INFO: count ==582 [2025-01-05 11:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:12:06 - End Time 2025-01-05 11:12:06 [2025-01-05 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179836', 'tblTempUsageDetail_20' ) start [2025-01-05 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179836', 'tblTempUsageDetail_20' ) end [2025-01-05 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179836', 'tblTempVendorCDR_20' ) start [2025-01-05 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179836', 'tblTempVendorCDR_20' ) end [2025-01-05 11:12:19] Production.INFO: ProcessCDR(1,14179836,1,1,2) [2025-01-05 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179836', 'tblTempUsageDetail_20' ) start [2025-01-05 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179836', 'tblTempUsageDetail_20' ) end [2025-01-05 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:12:23] Production.INFO: ==8672== Releasing lock... [2025-01-05 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:12:23] Production.INFO: 33 MB #Memory Used# [2025-01-05 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:13:05 [end_date_ymd] => 2025-01-05 11:13:05 [RateCDR] => 1 ) [2025-01-05 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:13:05' and `end` < '2025-01-05 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:13:19] Production.INFO: count ==593 [2025-01-05 11:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:13:05 - End Time 2025-01-05 11:13:05 [2025-01-05 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179841', 'tblTempUsageDetail_20' ) start [2025-01-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179841', 'tblTempUsageDetail_20' ) end [2025-01-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179841', 'tblTempVendorCDR_20' ) start [2025-01-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179841', 'tblTempVendorCDR_20' ) end [2025-01-05 11:13:19] Production.INFO: ProcessCDR(1,14179841,1,1,2) [2025-01-05 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179841', 'tblTempUsageDetail_20' ) start [2025-01-05 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179841', 'tblTempUsageDetail_20' ) end [2025-01-05 11:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:13:24] Production.INFO: ==8754== Releasing lock... [2025-01-05 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:13:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:14:05 [end_date_ymd] => 2025-01-05 11:14:05 [RateCDR] => 1 ) [2025-01-05 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:14:05' and `end` < '2025-01-05 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:14:18] Production.INFO: count ==601 [2025-01-05 11:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:14:05 - End Time 2025-01-05 11:14:05 [2025-01-05 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179846', 'tblTempUsageDetail_20' ) start [2025-01-05 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179846', 'tblTempUsageDetail_20' ) end [2025-01-05 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179846', 'tblTempVendorCDR_20' ) start [2025-01-05 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179846', 'tblTempVendorCDR_20' ) end [2025-01-05 11:14:18] Production.INFO: ProcessCDR(1,14179846,1,1,2) [2025-01-05 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179846', 'tblTempUsageDetail_20' ) start [2025-01-05 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179846', 'tblTempUsageDetail_20' ) end [2025-01-05 11:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:14:23] Production.INFO: ==8838== Releasing lock... [2025-01-05 11:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:14:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:15:05 [end_date_ymd] => 2025-01-05 11:15:05 [RateCDR] => 1 ) [2025-01-05 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:15:05' and `end` < '2025-01-05 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:15:17] Production.INFO: count ==601 [2025-01-05 11:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:15:05 - End Time 2025-01-05 11:15:05 [2025-01-05 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179851', 'tblTempUsageDetail_20' ) start [2025-01-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179851', 'tblTempUsageDetail_20' ) end [2025-01-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179851', 'tblTempVendorCDR_20' ) start [2025-01-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179851', 'tblTempVendorCDR_20' ) end [2025-01-05 11:15:18] Production.INFO: ProcessCDR(1,14179851,1,1,2) [2025-01-05 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179851', 'tblTempUsageDetail_20' ) start [2025-01-05 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179851', 'tblTempUsageDetail_20' ) end [2025-01-05 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:15:21] Production.INFO: ==8998== Releasing lock... [2025-01-05 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:16:05 [end_date_ymd] => 2025-01-05 11:16:05 [RateCDR] => 1 ) [2025-01-05 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:16:05' and `end` < '2025-01-05 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:16:18] Production.INFO: count ==602 [2025-01-05 11:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:16:05 - End Time 2025-01-05 11:16:05 [2025-01-05 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179856', 'tblTempUsageDetail_20' ) start [2025-01-05 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179856', 'tblTempUsageDetail_20' ) end [2025-01-05 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179856', 'tblTempVendorCDR_20' ) start [2025-01-05 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179856', 'tblTempVendorCDR_20' ) end [2025-01-05 11:16:18] Production.INFO: ProcessCDR(1,14179856,1,1,2) [2025-01-05 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179856', 'tblTempUsageDetail_20' ) start [2025-01-05 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179856', 'tblTempUsageDetail_20' ) end [2025-01-05 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:16:23] Production.INFO: ==9086== Releasing lock... [2025-01-05 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:16:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:17:05 [end_date_ymd] => 2025-01-05 11:17:05 [RateCDR] => 1 ) [2025-01-05 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:17:05' and `end` < '2025-01-05 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:17:18] Production.INFO: count ==605 [2025-01-05 11:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:17:05 - End Time 2025-01-05 11:17:05 [2025-01-05 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179861', 'tblTempUsageDetail_20' ) start [2025-01-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179861', 'tblTempUsageDetail_20' ) end [2025-01-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179861', 'tblTempVendorCDR_20' ) start [2025-01-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179861', 'tblTempVendorCDR_20' ) end [2025-01-05 11:17:18] Production.INFO: ProcessCDR(1,14179861,1,1,2) [2025-01-05 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179861', 'tblTempUsageDetail_20' ) start [2025-01-05 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179861', 'tblTempUsageDetail_20' ) end [2025-01-05 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:17:21] Production.INFO: ==9170== Releasing lock... [2025-01-05 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:18:06 [end_date_ymd] => 2025-01-05 11:18:06 [RateCDR] => 1 ) [2025-01-05 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:18:06' and `end` < '2025-01-05 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:18:19] Production.INFO: count ==613 [2025-01-05 11:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:18:06 - End Time 2025-01-05 11:18:06 [2025-01-05 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179866', 'tblTempUsageDetail_20' ) start [2025-01-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179866', 'tblTempUsageDetail_20' ) end [2025-01-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179866', 'tblTempVendorCDR_20' ) start [2025-01-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179866', 'tblTempVendorCDR_20' ) end [2025-01-05 11:18:19] Production.INFO: ProcessCDR(1,14179866,1,1,2) [2025-01-05 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179866', 'tblTempUsageDetail_20' ) start [2025-01-05 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179866', 'tblTempUsageDetail_20' ) end [2025-01-05 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:18:24] Production.INFO: ==9260== Releasing lock... [2025-01-05 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:18:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:19:05 [end_date_ymd] => 2025-01-05 11:19:05 [RateCDR] => 1 ) [2025-01-05 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:19:05' and `end` < '2025-01-05 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:19:19] Production.INFO: count ==618 [2025-01-05 11:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:19:05 - End Time 2025-01-05 11:19:05 [2025-01-05 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179871', 'tblTempUsageDetail_20' ) start [2025-01-05 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179871', 'tblTempUsageDetail_20' ) end [2025-01-05 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179871', 'tblTempVendorCDR_20' ) start [2025-01-05 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179871', 'tblTempVendorCDR_20' ) end [2025-01-05 11:19:19] Production.INFO: ProcessCDR(1,14179871,1,1,2) [2025-01-05 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179871', 'tblTempUsageDetail_20' ) start [2025-01-05 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179871', 'tblTempUsageDetail_20' ) end [2025-01-05 11:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:19:24] Production.INFO: ==9386== Releasing lock... [2025-01-05 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:19:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:20:05 [end_date_ymd] => 2025-01-05 11:20:05 [RateCDR] => 1 ) [2025-01-05 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:20:05' and `end` < '2025-01-05 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:20:18] Production.INFO: count ==627 [2025-01-05 11:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:20:05 - End Time 2025-01-05 11:20:05 [2025-01-05 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179876', 'tblTempUsageDetail_20' ) start [2025-01-05 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179876', 'tblTempUsageDetail_20' ) end [2025-01-05 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179876', 'tblTempVendorCDR_20' ) start [2025-01-05 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179876', 'tblTempVendorCDR_20' ) end [2025-01-05 11:20:18] Production.INFO: ProcessCDR(1,14179876,1,1,2) [2025-01-05 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179876', 'tblTempUsageDetail_20' ) start [2025-01-05 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179876', 'tblTempUsageDetail_20' ) end [2025-01-05 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:20:23] Production.INFO: ==9466== Releasing lock... [2025-01-05 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:21:04 [end_date_ymd] => 2025-01-05 11:21:04 [RateCDR] => 1 ) [2025-01-05 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:21:04' and `end` < '2025-01-05 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:21:18] Production.INFO: count ==643 [2025-01-05 11:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:21:04 - End Time 2025-01-05 11:21:04 [2025-01-05 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179882', 'tblTempUsageDetail_20' ) start [2025-01-05 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179882', 'tblTempUsageDetail_20' ) end [2025-01-05 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179882', 'tblTempVendorCDR_20' ) start [2025-01-05 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179882', 'tblTempVendorCDR_20' ) end [2025-01-05 11:21:18] Production.INFO: ProcessCDR(1,14179882,1,1,2) [2025-01-05 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179882', 'tblTempUsageDetail_20' ) start [2025-01-05 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179882', 'tblTempUsageDetail_20' ) end [2025-01-05 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:21:23] Production.INFO: ==9544== Releasing lock... [2025-01-05 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:22:05 [end_date_ymd] => 2025-01-05 11:22:05 [RateCDR] => 1 ) [2025-01-05 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:22:05' and `end` < '2025-01-05 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:22:19] Production.INFO: count ==645 [2025-01-05 11:22:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:22:05 - End Time 2025-01-05 11:22:05 [2025-01-05 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179887', 'tblTempUsageDetail_20' ) start [2025-01-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179887', 'tblTempUsageDetail_20' ) end [2025-01-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179887', 'tblTempVendorCDR_20' ) start [2025-01-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179887', 'tblTempVendorCDR_20' ) end [2025-01-05 11:22:19] Production.INFO: ProcessCDR(1,14179887,1,1,2) [2025-01-05 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179887', 'tblTempUsageDetail_20' ) start [2025-01-05 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179887', 'tblTempUsageDetail_20' ) end [2025-01-05 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:22:24] Production.INFO: ==9621== Releasing lock... [2025-01-05 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:22:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:23:05 [end_date_ymd] => 2025-01-05 11:23:05 [RateCDR] => 1 ) [2025-01-05 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:23:05' and `end` < '2025-01-05 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:23:19] Production.INFO: count ==645 [2025-01-05 11:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:23:05 - End Time 2025-01-05 11:23:05 [2025-01-05 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179892', 'tblTempUsageDetail_20' ) start [2025-01-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179892', 'tblTempUsageDetail_20' ) end [2025-01-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179892', 'tblTempVendorCDR_20' ) start [2025-01-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179892', 'tblTempVendorCDR_20' ) end [2025-01-05 11:23:19] Production.INFO: ProcessCDR(1,14179892,1,1,2) [2025-01-05 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179892', 'tblTempUsageDetail_20' ) start [2025-01-05 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179892', 'tblTempUsageDetail_20' ) end [2025-01-05 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:23:22] Production.INFO: ==9696== Releasing lock... [2025-01-05 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:23:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:24:05 [end_date_ymd] => 2025-01-05 11:24:05 [RateCDR] => 1 ) [2025-01-05 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:24:05' and `end` < '2025-01-05 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:24:18] Production.INFO: count ==652 [2025-01-05 11:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:24:05 - End Time 2025-01-05 11:24:05 [2025-01-05 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179897', 'tblTempUsageDetail_20' ) start [2025-01-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179897', 'tblTempUsageDetail_20' ) end [2025-01-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179897', 'tblTempVendorCDR_20' ) start [2025-01-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179897', 'tblTempVendorCDR_20' ) end [2025-01-05 11:24:18] Production.INFO: ProcessCDR(1,14179897,1,1,2) [2025-01-05 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179897', 'tblTempUsageDetail_20' ) start [2025-01-05 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179897', 'tblTempUsageDetail_20' ) end [2025-01-05 11:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:24:21] Production.INFO: ==9772== Releasing lock... [2025-01-05 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:25:05 [end_date_ymd] => 2025-01-05 11:25:05 [RateCDR] => 1 ) [2025-01-05 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:25:05' and `end` < '2025-01-05 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:25:18] Production.INFO: count ==658 [2025-01-05 11:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:25:05 - End Time 2025-01-05 11:25:05 [2025-01-05 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179902', 'tblTempUsageDetail_20' ) start [2025-01-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179902', 'tblTempUsageDetail_20' ) end [2025-01-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179902', 'tblTempVendorCDR_20' ) start [2025-01-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179902', 'tblTempVendorCDR_20' ) end [2025-01-05 11:25:18] Production.INFO: ProcessCDR(1,14179902,1,1,2) [2025-01-05 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179902', 'tblTempUsageDetail_20' ) start [2025-01-05 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179902', 'tblTempUsageDetail_20' ) end [2025-01-05 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:25:23] Production.INFO: ==9849== Releasing lock... [2025-01-05 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:26:04 [end_date_ymd] => 2025-01-05 11:26:04 [RateCDR] => 1 ) [2025-01-05 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:26:04' and `end` < '2025-01-05 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:26:18] Production.INFO: count ==660 [2025-01-05 11:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:26:04 - End Time 2025-01-05 11:26:04 [2025-01-05 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179907', 'tblTempUsageDetail_20' ) start [2025-01-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179907', 'tblTempUsageDetail_20' ) end [2025-01-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179907', 'tblTempVendorCDR_20' ) start [2025-01-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179907', 'tblTempVendorCDR_20' ) end [2025-01-05 11:26:18] Production.INFO: ProcessCDR(1,14179907,1,1,2) [2025-01-05 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179907', 'tblTempUsageDetail_20' ) start [2025-01-05 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179907', 'tblTempUsageDetail_20' ) end [2025-01-05 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:26:23] Production.INFO: ==9927== Releasing lock... [2025-01-05 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:26:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:27:05 [end_date_ymd] => 2025-01-05 11:27:05 [RateCDR] => 1 ) [2025-01-05 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:27:05' and `end` < '2025-01-05 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:27:18] Production.INFO: count ==662 [2025-01-05 11:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:27:05 - End Time 2025-01-05 11:27:05 [2025-01-05 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179912', 'tblTempUsageDetail_20' ) start [2025-01-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179912', 'tblTempUsageDetail_20' ) end [2025-01-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179912', 'tblTempVendorCDR_20' ) start [2025-01-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179912', 'tblTempVendorCDR_20' ) end [2025-01-05 11:27:18] Production.INFO: ProcessCDR(1,14179912,1,1,2) [2025-01-05 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179912', 'tblTempUsageDetail_20' ) start [2025-01-05 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179912', 'tblTempUsageDetail_20' ) end [2025-01-05 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:27:22] Production.INFO: ==10007== Releasing lock... [2025-01-05 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:27:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:28:05 [end_date_ymd] => 2025-01-05 11:28:05 [RateCDR] => 1 ) [2025-01-05 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:28:05' and `end` < '2025-01-05 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:28:20] Production.INFO: count ==665 [2025-01-05 11:28:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:28:05 - End Time 2025-01-05 11:28:05 [2025-01-05 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179917', 'tblTempUsageDetail_20' ) start [2025-01-05 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179917', 'tblTempUsageDetail_20' ) end [2025-01-05 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179917', 'tblTempVendorCDR_20' ) start [2025-01-05 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179917', 'tblTempVendorCDR_20' ) end [2025-01-05 11:28:20] Production.INFO: ProcessCDR(1,14179917,1,1,2) [2025-01-05 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179917', 'tblTempUsageDetail_20' ) start [2025-01-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179917', 'tblTempUsageDetail_20' ) end [2025-01-05 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:28:24] Production.INFO: ==10085== Releasing lock... [2025-01-05 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:28:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:29:05 [end_date_ymd] => 2025-01-05 11:29:05 [RateCDR] => 1 ) [2025-01-05 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:29:05' and `end` < '2025-01-05 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:29:19] Production.INFO: count ==668 [2025-01-05 11:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:29:05 - End Time 2025-01-05 11:29:05 [2025-01-05 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179922', 'tblTempUsageDetail_20' ) start [2025-01-05 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179922', 'tblTempUsageDetail_20' ) end [2025-01-05 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179922', 'tblTempVendorCDR_20' ) start [2025-01-05 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179922', 'tblTempVendorCDR_20' ) end [2025-01-05 11:29:19] Production.INFO: ProcessCDR(1,14179922,1,1,2) [2025-01-05 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179922', 'tblTempUsageDetail_20' ) start [2025-01-05 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179922', 'tblTempUsageDetail_20' ) end [2025-01-05 11:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:29:24] Production.INFO: ==10167== Releasing lock... [2025-01-05 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:29:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:30:05 [end_date_ymd] => 2025-01-05 11:30:05 [RateCDR] => 1 ) [2025-01-05 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:30:05' and `end` < '2025-01-05 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:30:20] Production.INFO: count ==673 [2025-01-05 11:30:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:30:05 - End Time 2025-01-05 11:30:05 [2025-01-05 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179928', 'tblTempUsageDetail_20' ) start [2025-01-05 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179928', 'tblTempUsageDetail_20' ) end [2025-01-05 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179928', 'tblTempVendorCDR_20' ) start [2025-01-05 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179928', 'tblTempVendorCDR_20' ) end [2025-01-05 11:30:20] Production.INFO: ProcessCDR(1,14179928,1,1,2) [2025-01-05 11:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179928', 'tblTempUsageDetail_20' ) start [2025-01-05 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179928', 'tblTempUsageDetail_20' ) end [2025-01-05 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:30:24] Production.INFO: ==10250== Releasing lock... [2025-01-05 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:30:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:31:05 [end_date_ymd] => 2025-01-05 11:31:05 [RateCDR] => 1 ) [2025-01-05 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:31:05' and `end` < '2025-01-05 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:31:18] Production.INFO: count ==680 [2025-01-05 11:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:31:05 - End Time 2025-01-05 11:31:05 [2025-01-05 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179933', 'tblTempUsageDetail_20' ) start [2025-01-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179933', 'tblTempUsageDetail_20' ) end [2025-01-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179933', 'tblTempVendorCDR_20' ) start [2025-01-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179933', 'tblTempVendorCDR_20' ) end [2025-01-05 11:31:18] Production.INFO: ProcessCDR(1,14179933,1,1,2) [2025-01-05 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179933', 'tblTempUsageDetail_20' ) start [2025-01-05 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179933', 'tblTempUsageDetail_20' ) end [2025-01-05 11:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:31:22] Production.INFO: ==10335== Releasing lock... [2025-01-05 11:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:32:05 [end_date_ymd] => 2025-01-05 11:32:05 [RateCDR] => 1 ) [2025-01-05 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:32:05' and `end` < '2025-01-05 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:32:18] Production.INFO: count ==682 [2025-01-05 11:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:32:05 - End Time 2025-01-05 11:32:05 [2025-01-05 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179938', 'tblTempUsageDetail_20' ) start [2025-01-05 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179938', 'tblTempUsageDetail_20' ) end [2025-01-05 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179938', 'tblTempVendorCDR_20' ) start [2025-01-05 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179938', 'tblTempVendorCDR_20' ) end [2025-01-05 11:32:18] Production.INFO: ProcessCDR(1,14179938,1,1,2) [2025-01-05 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179938', 'tblTempUsageDetail_20' ) start [2025-01-05 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179938', 'tblTempUsageDetail_20' ) end [2025-01-05 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:32:23] Production.INFO: ==10411== Releasing lock... [2025-01-05 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:33:04 [end_date_ymd] => 2025-01-05 11:33:04 [RateCDR] => 1 ) [2025-01-05 11:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:33:04' and `end` < '2025-01-05 11:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:33:17] Production.INFO: count ==684 [2025-01-05 11:33:17] Production.ERROR: pbx CDR StartTime 2025-01-05 08:33:04 - End Time 2025-01-05 11:33:04 [2025-01-05 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179943', 'tblTempUsageDetail_20' ) start [2025-01-05 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179943', 'tblTempUsageDetail_20' ) end [2025-01-05 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179943', 'tblTempVendorCDR_20' ) start [2025-01-05 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179943', 'tblTempVendorCDR_20' ) end [2025-01-05 11:33:17] Production.INFO: ProcessCDR(1,14179943,1,1,2) [2025-01-05 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179943', 'tblTempUsageDetail_20' ) start [2025-01-05 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179943', 'tblTempUsageDetail_20' ) end [2025-01-05 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:33:22] Production.INFO: ==10484== Releasing lock... [2025-01-05 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:34:05 [end_date_ymd] => 2025-01-05 11:34:05 [RateCDR] => 1 ) [2025-01-05 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:34:05' and `end` < '2025-01-05 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:34:19] Production.INFO: count ==686 [2025-01-05 11:34:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:34:05 - End Time 2025-01-05 11:34:05 [2025-01-05 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179948', 'tblTempUsageDetail_20' ) start [2025-01-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179948', 'tblTempUsageDetail_20' ) end [2025-01-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179948', 'tblTempVendorCDR_20' ) start [2025-01-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179948', 'tblTempVendorCDR_20' ) end [2025-01-05 11:34:20] Production.INFO: ProcessCDR(1,14179948,1,1,2) [2025-01-05 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179948', 'tblTempUsageDetail_20' ) start [2025-01-05 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179948', 'tblTempUsageDetail_20' ) end [2025-01-05 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:34:25] Production.INFO: ==10560== Releasing lock... [2025-01-05 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:34:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:35:04 [end_date_ymd] => 2025-01-05 11:35:04 [RateCDR] => 1 ) [2025-01-05 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:35:04' and `end` < '2025-01-05 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:35:17] Production.INFO: count ==690 [2025-01-05 11:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:35:04 - End Time 2025-01-05 11:35:04 [2025-01-05 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179953', 'tblTempUsageDetail_20' ) start [2025-01-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179953', 'tblTempUsageDetail_20' ) end [2025-01-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179953', 'tblTempVendorCDR_20' ) start [2025-01-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179953', 'tblTempVendorCDR_20' ) end [2025-01-05 11:35:18] Production.INFO: ProcessCDR(1,14179953,1,1,2) [2025-01-05 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179953', 'tblTempUsageDetail_20' ) start [2025-01-05 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179953', 'tblTempUsageDetail_20' ) end [2025-01-05 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:35:22] Production.INFO: ==10676== Releasing lock... [2025-01-05 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:36:05 [end_date_ymd] => 2025-01-05 11:36:05 [RateCDR] => 1 ) [2025-01-05 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:36:05' and `end` < '2025-01-05 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:36:19] Production.INFO: count ==693 [2025-01-05 11:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:36:05 - End Time 2025-01-05 11:36:05 [2025-01-05 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179957', 'tblTempUsageDetail_20' ) start [2025-01-05 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179957', 'tblTempUsageDetail_20' ) end [2025-01-05 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179957', 'tblTempVendorCDR_20' ) start [2025-01-05 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179957', 'tblTempVendorCDR_20' ) end [2025-01-05 11:36:19] Production.INFO: ProcessCDR(1,14179957,1,1,2) [2025-01-05 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179957', 'tblTempUsageDetail_20' ) start [2025-01-05 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179957', 'tblTempUsageDetail_20' ) end [2025-01-05 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:36:23] Production.INFO: ==10753== Releasing lock... [2025-01-05 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:36:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:37:05 [end_date_ymd] => 2025-01-05 11:37:05 [RateCDR] => 1 ) [2025-01-05 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:37:05' and `end` < '2025-01-05 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:37:19] Production.INFO: count ==702 [2025-01-05 11:37:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:37:05 - End Time 2025-01-05 11:37:05 [2025-01-05 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179963', 'tblTempUsageDetail_20' ) start [2025-01-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179963', 'tblTempUsageDetail_20' ) end [2025-01-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179963', 'tblTempVendorCDR_20' ) start [2025-01-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179963', 'tblTempVendorCDR_20' ) end [2025-01-05 11:37:19] Production.INFO: ProcessCDR(1,14179963,1,1,2) [2025-01-05 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179963', 'tblTempUsageDetail_20' ) start [2025-01-05 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179963', 'tblTempUsageDetail_20' ) end [2025-01-05 11:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:37:24] Production.INFO: ==10828== Releasing lock... [2025-01-05 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:38:05 [end_date_ymd] => 2025-01-05 11:38:05 [RateCDR] => 1 ) [2025-01-05 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:38:05' and `end` < '2025-01-05 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:38:18] Production.INFO: count ==707 [2025-01-05 11:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:38:05 - End Time 2025-01-05 11:38:05 [2025-01-05 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179968', 'tblTempUsageDetail_20' ) start [2025-01-05 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179968', 'tblTempUsageDetail_20' ) end [2025-01-05 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179968', 'tblTempVendorCDR_20' ) start [2025-01-05 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179968', 'tblTempVendorCDR_20' ) end [2025-01-05 11:38:18] Production.INFO: ProcessCDR(1,14179968,1,1,2) [2025-01-05 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179968', 'tblTempUsageDetail_20' ) start [2025-01-05 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179968', 'tblTempUsageDetail_20' ) end [2025-01-05 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:38:23] Production.INFO: ==10901== Releasing lock... [2025-01-05 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:38:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:39:06 [end_date_ymd] => 2025-01-05 11:39:06 [RateCDR] => 1 ) [2025-01-05 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:39:06' and `end` < '2025-01-05 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:39:19] Production.INFO: count ==710 [2025-01-05 11:39:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:39:06 - End Time 2025-01-05 11:39:06 [2025-01-05 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179973', 'tblTempUsageDetail_20' ) start [2025-01-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179973', 'tblTempUsageDetail_20' ) end [2025-01-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179973', 'tblTempVendorCDR_20' ) start [2025-01-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179973', 'tblTempVendorCDR_20' ) end [2025-01-05 11:39:19] Production.INFO: ProcessCDR(1,14179973,1,1,2) [2025-01-05 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179973', 'tblTempUsageDetail_20' ) start [2025-01-05 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179973', 'tblTempUsageDetail_20' ) end [2025-01-05 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:39:23] Production.INFO: ==10977== Releasing lock... [2025-01-05 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:40:05 [end_date_ymd] => 2025-01-05 11:40:05 [RateCDR] => 1 ) [2025-01-05 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:40:05' and `end` < '2025-01-05 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:40:18] Production.INFO: count ==717 [2025-01-05 11:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:40:05 - End Time 2025-01-05 11:40:05 [2025-01-05 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179979', 'tblTempUsageDetail_20' ) start [2025-01-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179979', 'tblTempUsageDetail_20' ) end [2025-01-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179979', 'tblTempVendorCDR_20' ) start [2025-01-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179979', 'tblTempVendorCDR_20' ) end [2025-01-05 11:40:19] Production.INFO: ProcessCDR(1,14179979,1,1,2) [2025-01-05 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179979', 'tblTempUsageDetail_20' ) start [2025-01-05 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179979', 'tblTempUsageDetail_20' ) end [2025-01-05 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:40:23] Production.INFO: ==11055== Releasing lock... [2025-01-05 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:40:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:41:05 [end_date_ymd] => 2025-01-05 11:41:05 [RateCDR] => 1 ) [2025-01-05 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:41:05' and `end` < '2025-01-05 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:41:18] Production.INFO: count ==745 [2025-01-05 11:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:41:05 - End Time 2025-01-05 11:41:05 [2025-01-05 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179984', 'tblTempUsageDetail_20' ) start [2025-01-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179984', 'tblTempUsageDetail_20' ) end [2025-01-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179984', 'tblTempVendorCDR_20' ) start [2025-01-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179984', 'tblTempVendorCDR_20' ) end [2025-01-05 11:41:18] Production.INFO: ProcessCDR(1,14179984,1,1,2) [2025-01-05 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179984', 'tblTempUsageDetail_20' ) start [2025-01-05 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179984', 'tblTempUsageDetail_20' ) end [2025-01-05 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:41:23] Production.INFO: ==11137== Releasing lock... [2025-01-05 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:41:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:42:05 [end_date_ymd] => 2025-01-05 11:42:05 [RateCDR] => 1 ) [2025-01-05 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:42:05' and `end` < '2025-01-05 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:42:18] Production.INFO: count ==748 [2025-01-05 11:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:42:05 - End Time 2025-01-05 11:42:05 [2025-01-05 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179989', 'tblTempUsageDetail_20' ) start [2025-01-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179989', 'tblTempUsageDetail_20' ) end [2025-01-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179989', 'tblTempVendorCDR_20' ) start [2025-01-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179989', 'tblTempVendorCDR_20' ) end [2025-01-05 11:42:18] Production.INFO: ProcessCDR(1,14179989,1,1,2) [2025-01-05 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179989', 'tblTempUsageDetail_20' ) start [2025-01-05 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179989', 'tblTempUsageDetail_20' ) end [2025-01-05 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:42:22] Production.INFO: ==11212== Releasing lock... [2025-01-05 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:43:05 [end_date_ymd] => 2025-01-05 11:43:05 [RateCDR] => 1 ) [2025-01-05 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:43:05' and `end` < '2025-01-05 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:43:18] Production.INFO: count ==750 [2025-01-05 11:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:43:05 - End Time 2025-01-05 11:43:05 [2025-01-05 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179994', 'tblTempUsageDetail_20' ) start [2025-01-05 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179994', 'tblTempUsageDetail_20' ) end [2025-01-05 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179994', 'tblTempVendorCDR_20' ) start [2025-01-05 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179994', 'tblTempVendorCDR_20' ) end [2025-01-05 11:43:18] Production.INFO: ProcessCDR(1,14179994,1,1,2) [2025-01-05 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179994', 'tblTempUsageDetail_20' ) start [2025-01-05 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179994', 'tblTempUsageDetail_20' ) end [2025-01-05 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:43:23] Production.INFO: ==11295== Releasing lock... [2025-01-05 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:43:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:44:05 [end_date_ymd] => 2025-01-05 11:44:05 [RateCDR] => 1 ) [2025-01-05 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:44:05' and `end` < '2025-01-05 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:44:21] Production.INFO: count ==751 [2025-01-05 11:44:21] Production.ERROR: pbx CDR StartTime 2025-01-05 08:44:05 - End Time 2025-01-05 11:44:05 [2025-01-05 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179999', 'tblTempUsageDetail_20' ) start [2025-01-05 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14179999', 'tblTempUsageDetail_20' ) end [2025-01-05 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179999', 'tblTempVendorCDR_20' ) start [2025-01-05 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14179999', 'tblTempVendorCDR_20' ) end [2025-01-05 11:44:21] Production.INFO: ProcessCDR(1,14179999,1,1,2) [2025-01-05 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14179999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14179999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14179999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14179999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179999', 'tblTempUsageDetail_20' ) start [2025-01-05 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14179999', 'tblTempUsageDetail_20' ) end [2025-01-05 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:44:26] Production.INFO: ==11375== Releasing lock... [2025-01-05 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:44:26] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:45:05 [end_date_ymd] => 2025-01-05 11:45:05 [RateCDR] => 1 ) [2025-01-05 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:45:05' and `end` < '2025-01-05 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:45:19] Production.INFO: count ==754 [2025-01-05 11:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:45:05 - End Time 2025-01-05 11:45:05 [2025-01-05 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180004', 'tblTempUsageDetail_20' ) start [2025-01-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180004', 'tblTempUsageDetail_20' ) end [2025-01-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180004', 'tblTempVendorCDR_20' ) start [2025-01-05 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180004', 'tblTempVendorCDR_20' ) end [2025-01-05 11:45:20] Production.INFO: ProcessCDR(1,14180004,1,1,2) [2025-01-05 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180004', 'tblTempUsageDetail_20' ) start [2025-01-05 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180004', 'tblTempUsageDetail_20' ) end [2025-01-05 11:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:45:24] Production.INFO: ==11451== Releasing lock... [2025-01-05 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:45:24] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:46:04 [end_date_ymd] => 2025-01-05 11:46:04 [RateCDR] => 1 ) [2025-01-05 11:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:46:04' and `end` < '2025-01-05 11:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:46:17] Production.INFO: count ==774 [2025-01-05 11:46:17] Production.ERROR: pbx CDR StartTime 2025-01-05 08:46:04 - End Time 2025-01-05 11:46:04 [2025-01-05 11:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180009', 'tblTempUsageDetail_20' ) start [2025-01-05 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180009', 'tblTempUsageDetail_20' ) end [2025-01-05 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180009', 'tblTempVendorCDR_20' ) start [2025-01-05 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180009', 'tblTempVendorCDR_20' ) end [2025-01-05 11:46:17] Production.INFO: ProcessCDR(1,14180009,1,1,2) [2025-01-05 11:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180009', 'tblTempUsageDetail_20' ) start [2025-01-05 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180009', 'tblTempUsageDetail_20' ) end [2025-01-05 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:46:21] Production.INFO: ==11530== Releasing lock... [2025-01-05 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:46:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:47:05 [end_date_ymd] => 2025-01-05 11:47:05 [RateCDR] => 1 ) [2025-01-05 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:47:05' and `end` < '2025-01-05 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:47:18] Production.INFO: count ==776 [2025-01-05 11:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:47:05 - End Time 2025-01-05 11:47:05 [2025-01-05 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180014', 'tblTempUsageDetail_20' ) start [2025-01-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180014', 'tblTempUsageDetail_20' ) end [2025-01-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180014', 'tblTempVendorCDR_20' ) start [2025-01-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180014', 'tblTempVendorCDR_20' ) end [2025-01-05 11:47:18] Production.INFO: ProcessCDR(1,14180014,1,1,2) [2025-01-05 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180014', 'tblTempUsageDetail_20' ) start [2025-01-05 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180014', 'tblTempUsageDetail_20' ) end [2025-01-05 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:47:22] Production.INFO: ==11610== Releasing lock... [2025-01-05 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:47:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:48:05 [end_date_ymd] => 2025-01-05 11:48:05 [RateCDR] => 1 ) [2025-01-05 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:48:05' and `end` < '2025-01-05 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:48:18] Production.INFO: count ==777 [2025-01-05 11:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:48:05 - End Time 2025-01-05 11:48:05 [2025-01-05 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180019', 'tblTempUsageDetail_20' ) start [2025-01-05 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180019', 'tblTempUsageDetail_20' ) end [2025-01-05 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180019', 'tblTempVendorCDR_20' ) start [2025-01-05 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180019', 'tblTempVendorCDR_20' ) end [2025-01-05 11:48:19] Production.INFO: ProcessCDR(1,14180019,1,1,2) [2025-01-05 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180019', 'tblTempUsageDetail_20' ) start [2025-01-05 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180019', 'tblTempUsageDetail_20' ) end [2025-01-05 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:48:23] Production.INFO: ==11688== Releasing lock... [2025-01-05 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:48:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:49:05 [end_date_ymd] => 2025-01-05 11:49:05 [RateCDR] => 1 ) [2025-01-05 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:49:05' and `end` < '2025-01-05 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:49:20] Production.INFO: count ==778 [2025-01-05 11:49:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:49:05 - End Time 2025-01-05 11:49:05 [2025-01-05 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180024', 'tblTempUsageDetail_20' ) start [2025-01-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180024', 'tblTempUsageDetail_20' ) end [2025-01-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180024', 'tblTempVendorCDR_20' ) start [2025-01-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180024', 'tblTempVendorCDR_20' ) end [2025-01-05 11:49:20] Production.INFO: ProcessCDR(1,14180024,1,1,2) [2025-01-05 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180024', 'tblTempUsageDetail_20' ) start [2025-01-05 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180024', 'tblTempUsageDetail_20' ) end [2025-01-05 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:49:25] Production.INFO: ==11764== Releasing lock... [2025-01-05 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:49:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:50:05 [end_date_ymd] => 2025-01-05 11:50:05 [RateCDR] => 1 ) [2025-01-05 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:50:05' and `end` < '2025-01-05 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:50:18] Production.INFO: count ==772 [2025-01-05 11:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:50:05 - End Time 2025-01-05 11:50:05 [2025-01-05 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180030', 'tblTempUsageDetail_20' ) start [2025-01-05 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180030', 'tblTempUsageDetail_20' ) end [2025-01-05 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180030', 'tblTempVendorCDR_20' ) start [2025-01-05 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180030', 'tblTempVendorCDR_20' ) end [2025-01-05 11:50:18] Production.INFO: ProcessCDR(1,14180030,1,1,2) [2025-01-05 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180030', 'tblTempUsageDetail_20' ) start [2025-01-05 11:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180030', 'tblTempUsageDetail_20' ) end [2025-01-05 11:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:50:21] Production.INFO: ==11846== Releasing lock... [2025-01-05 11:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:50:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:51:05 [end_date_ymd] => 2025-01-05 11:51:05 [RateCDR] => 1 ) [2025-01-05 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:51:05' and `end` < '2025-01-05 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:51:17] Production.INFO: count ==781 [2025-01-05 11:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:51:05 - End Time 2025-01-05 11:51:05 [2025-01-05 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180035', 'tblTempUsageDetail_20' ) start [2025-01-05 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180035', 'tblTempUsageDetail_20' ) end [2025-01-05 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180035', 'tblTempVendorCDR_20' ) start [2025-01-05 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180035', 'tblTempVendorCDR_20' ) end [2025-01-05 11:51:18] Production.INFO: ProcessCDR(1,14180035,1,1,2) [2025-01-05 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180035', 'tblTempUsageDetail_20' ) start [2025-01-05 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180035', 'tblTempUsageDetail_20' ) end [2025-01-05 11:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:51:21] Production.INFO: ==11969== Releasing lock... [2025-01-05 11:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:51:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:52:04 [end_date_ymd] => 2025-01-05 11:52:04 [RateCDR] => 1 ) [2025-01-05 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:52:04' and `end` < '2025-01-05 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:52:19] Production.INFO: count ==781 [2025-01-05 11:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:52:04 - End Time 2025-01-05 11:52:04 [2025-01-05 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180040', 'tblTempUsageDetail_20' ) start [2025-01-05 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180040', 'tblTempUsageDetail_20' ) end [2025-01-05 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180040', 'tblTempVendorCDR_20' ) start [2025-01-05 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180040', 'tblTempVendorCDR_20' ) end [2025-01-05 11:52:19] Production.INFO: ProcessCDR(1,14180040,1,1,2) [2025-01-05 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180040', 'tblTempUsageDetail_20' ) start [2025-01-05 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180040', 'tblTempUsageDetail_20' ) end [2025-01-05 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:52:22] Production.INFO: ==12046== Releasing lock... [2025-01-05 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:52:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:53:05 [end_date_ymd] => 2025-01-05 11:53:05 [RateCDR] => 1 ) [2025-01-05 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:53:05' and `end` < '2025-01-05 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:53:19] Production.INFO: count ==782 [2025-01-05 11:53:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:53:05 - End Time 2025-01-05 11:53:05 [2025-01-05 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180045', 'tblTempUsageDetail_20' ) start [2025-01-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180045', 'tblTempUsageDetail_20' ) end [2025-01-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180045', 'tblTempVendorCDR_20' ) start [2025-01-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180045', 'tblTempVendorCDR_20' ) end [2025-01-05 11:53:20] Production.INFO: ProcessCDR(1,14180045,1,1,2) [2025-01-05 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180045', 'tblTempUsageDetail_20' ) start [2025-01-05 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180045', 'tblTempUsageDetail_20' ) end [2025-01-05 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:53:23] Production.INFO: ==12127== Releasing lock... [2025-01-05 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:53:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:54:05 [end_date_ymd] => 2025-01-05 11:54:05 [RateCDR] => 1 ) [2025-01-05 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:54:05' and `end` < '2025-01-05 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:54:18] Production.INFO: count ==782 [2025-01-05 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:54:05 - End Time 2025-01-05 11:54:05 [2025-01-05 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180050', 'tblTempUsageDetail_20' ) start [2025-01-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180050', 'tblTempUsageDetail_20' ) end [2025-01-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180050', 'tblTempVendorCDR_20' ) start [2025-01-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180050', 'tblTempVendorCDR_20' ) end [2025-01-05 11:54:18] Production.INFO: ProcessCDR(1,14180050,1,1,2) [2025-01-05 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180050', 'tblTempUsageDetail_20' ) start [2025-01-05 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180050', 'tblTempUsageDetail_20' ) end [2025-01-05 11:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:54:21] Production.INFO: ==12209== Releasing lock... [2025-01-05 11:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:54:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:55:05 [end_date_ymd] => 2025-01-05 11:55:05 [RateCDR] => 1 ) [2025-01-05 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:55:05' and `end` < '2025-01-05 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:55:17] Production.INFO: count ==784 [2025-01-05 11:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:55:05 - End Time 2025-01-05 11:55:05 [2025-01-05 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180055', 'tblTempUsageDetail_20' ) start [2025-01-05 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180055', 'tblTempUsageDetail_20' ) end [2025-01-05 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180055', 'tblTempVendorCDR_20' ) start [2025-01-05 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180055', 'tblTempVendorCDR_20' ) end [2025-01-05 11:55:18] Production.INFO: ProcessCDR(1,14180055,1,1,2) [2025-01-05 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180055', 'tblTempUsageDetail_20' ) start [2025-01-05 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180055', 'tblTempUsageDetail_20' ) end [2025-01-05 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:55:21] Production.INFO: ==12290== Releasing lock... [2025-01-05 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:55:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:56:05 [end_date_ymd] => 2025-01-05 11:56:05 [RateCDR] => 1 ) [2025-01-05 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:56:05' and `end` < '2025-01-05 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:56:19] Production.INFO: count ==796 [2025-01-05 11:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 08:56:05 - End Time 2025-01-05 11:56:05 [2025-01-05 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180060', 'tblTempUsageDetail_20' ) start [2025-01-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180060', 'tblTempUsageDetail_20' ) end [2025-01-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180060', 'tblTempVendorCDR_20' ) start [2025-01-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180060', 'tblTempVendorCDR_20' ) end [2025-01-05 11:56:19] Production.INFO: ProcessCDR(1,14180060,1,1,2) [2025-01-05 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180060', 'tblTempUsageDetail_20' ) start [2025-01-05 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180060', 'tblTempUsageDetail_20' ) end [2025-01-05 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:56:24] Production.INFO: ==12379== Releasing lock... [2025-01-05 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:56:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:57:05 [end_date_ymd] => 2025-01-05 11:57:05 [RateCDR] => 1 ) [2025-01-05 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:57:05' and `end` < '2025-01-05 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:57:19] Production.INFO: count ==796 [2025-01-05 11:57:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:57:05 - End Time 2025-01-05 11:57:05 [2025-01-05 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180065', 'tblTempUsageDetail_20' ) start [2025-01-05 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180065', 'tblTempUsageDetail_20' ) end [2025-01-05 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180065', 'tblTempVendorCDR_20' ) start [2025-01-05 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180065', 'tblTempVendorCDR_20' ) end [2025-01-05 11:57:20] Production.INFO: ProcessCDR(1,14180065,1,1,2) [2025-01-05 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180065', 'tblTempUsageDetail_20' ) start [2025-01-05 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180065', 'tblTempUsageDetail_20' ) end [2025-01-05 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:57:23] Production.INFO: ==12460== Releasing lock... [2025-01-05 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:57:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:58:05 [end_date_ymd] => 2025-01-05 11:58:05 [RateCDR] => 1 ) [2025-01-05 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:58:05' and `end` < '2025-01-05 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:58:20] Production.INFO: count ==796 [2025-01-05 11:58:20] Production.ERROR: pbx CDR StartTime 2025-01-05 08:58:05 - End Time 2025-01-05 11:58:05 [2025-01-05 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180070', 'tblTempUsageDetail_20' ) start [2025-01-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180070', 'tblTempUsageDetail_20' ) end [2025-01-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180070', 'tblTempVendorCDR_20' ) start [2025-01-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180070', 'tblTempVendorCDR_20' ) end [2025-01-05 11:58:20] Production.INFO: ProcessCDR(1,14180070,1,1,2) [2025-01-05 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180070', 'tblTempUsageDetail_20' ) start [2025-01-05 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180070', 'tblTempUsageDetail_20' ) end [2025-01-05 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:58:23] Production.INFO: ==12543== Releasing lock... [2025-01-05 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:58:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 08:59:05 [end_date_ymd] => 2025-01-05 11:59:05 [RateCDR] => 1 ) [2025-01-05 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 08:59:05' and `end` < '2025-01-05 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 11:59:18] Production.INFO: count ==796 [2025-01-05 11:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 08:59:05 - End Time 2025-01-05 11:59:05 [2025-01-05 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180075', 'tblTempUsageDetail_20' ) start [2025-01-05 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180075', 'tblTempUsageDetail_20' ) end [2025-01-05 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180075', 'tblTempVendorCDR_20' ) start [2025-01-05 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180075', 'tblTempVendorCDR_20' ) end [2025-01-05 11:59:18] Production.INFO: ProcessCDR(1,14180075,1,1,2) [2025-01-05 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180075', 'tblTempUsageDetail_20' ) start [2025-01-05 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180075', 'tblTempUsageDetail_20' ) end [2025-01-05 11:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 11:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 11:59:21] Production.INFO: ==12624== Releasing lock... [2025-01-05 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 11:59:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:00:06 [end_date_ymd] => 2025-01-05 12:00:06 [RateCDR] => 1 ) [2025-01-05 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:00:06' and `end` < '2025-01-05 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:00:18] Production.INFO: count ==804 [2025-01-05 12:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:00:06 - End Time 2025-01-05 12:00:06 [2025-01-05 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180081', 'tblTempUsageDetail_20' ) start [2025-01-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180081', 'tblTempUsageDetail_20' ) end [2025-01-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180081', 'tblTempVendorCDR_20' ) start [2025-01-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180081', 'tblTempVendorCDR_20' ) end [2025-01-05 12:00:19] Production.INFO: ProcessCDR(1,14180081,1,1,2) [2025-01-05 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180081', 'tblTempUsageDetail_20' ) start [2025-01-05 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180081', 'tblTempUsageDetail_20' ) end [2025-01-05 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:00:22] Production.INFO: ==12707== Releasing lock... [2025-01-05 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:01:05 [end_date_ymd] => 2025-01-05 12:01:05 [RateCDR] => 1 ) [2025-01-05 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:01:05' and `end` < '2025-01-05 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:01:17] Production.INFO: count ==825 [2025-01-05 12:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:01:05 - End Time 2025-01-05 12:01:05 [2025-01-05 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180086', 'tblTempUsageDetail_20' ) start [2025-01-05 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180086', 'tblTempUsageDetail_20' ) end [2025-01-05 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180086', 'tblTempVendorCDR_20' ) start [2025-01-05 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180086', 'tblTempVendorCDR_20' ) end [2025-01-05 12:01:18] Production.INFO: ProcessCDR(1,14180086,1,1,2) [2025-01-05 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180086', 'tblTempUsageDetail_20' ) start [2025-01-05 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180086', 'tblTempUsageDetail_20' ) end [2025-01-05 12:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:01:22] Production.INFO: ==12805== Releasing lock... [2025-01-05 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:01:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:02:05 [end_date_ymd] => 2025-01-05 12:02:05 [RateCDR] => 1 ) [2025-01-05 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:02:05' and `end` < '2025-01-05 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:02:18] Production.INFO: count ==831 [2025-01-05 12:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:02:05 - End Time 2025-01-05 12:02:05 [2025-01-05 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180091', 'tblTempUsageDetail_20' ) start [2025-01-05 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180091', 'tblTempUsageDetail_20' ) end [2025-01-05 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180091', 'tblTempVendorCDR_20' ) start [2025-01-05 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180091', 'tblTempVendorCDR_20' ) end [2025-01-05 12:02:18] Production.INFO: ProcessCDR(1,14180091,1,1,2) [2025-01-05 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180091', 'tblTempUsageDetail_20' ) start [2025-01-05 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180091', 'tblTempUsageDetail_20' ) end [2025-01-05 12:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:02:21] Production.INFO: ==12886== Releasing lock... [2025-01-05 12:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:02:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:03:04 [end_date_ymd] => 2025-01-05 12:03:04 [RateCDR] => 1 ) [2025-01-05 12:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:03:04' and `end` < '2025-01-05 12:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:03:17] Production.INFO: count ==833 [2025-01-05 12:03:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:03:04 - End Time 2025-01-05 12:03:04 [2025-01-05 12:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180096', 'tblTempUsageDetail_20' ) start [2025-01-05 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180096', 'tblTempUsageDetail_20' ) end [2025-01-05 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180096', 'tblTempVendorCDR_20' ) start [2025-01-05 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180096', 'tblTempVendorCDR_20' ) end [2025-01-05 12:03:17] Production.INFO: ProcessCDR(1,14180096,1,1,2) [2025-01-05 12:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180096', 'tblTempUsageDetail_20' ) start [2025-01-05 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180096', 'tblTempUsageDetail_20' ) end [2025-01-05 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:03:22] Production.INFO: ==12963== Releasing lock... [2025-01-05 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:04:04 [end_date_ymd] => 2025-01-05 12:04:04 [RateCDR] => 1 ) [2025-01-05 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:04:04' and `end` < '2025-01-05 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:04:17] Production.INFO: count ==849 [2025-01-05 12:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:04:04 - End Time 2025-01-05 12:04:04 [2025-01-05 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180101', 'tblTempUsageDetail_20' ) start [2025-01-05 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180101', 'tblTempUsageDetail_20' ) end [2025-01-05 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180101', 'tblTempVendorCDR_20' ) start [2025-01-05 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180101', 'tblTempVendorCDR_20' ) end [2025-01-05 12:04:18] Production.INFO: ProcessCDR(1,14180101,1,1,2) [2025-01-05 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180101', 'tblTempUsageDetail_20' ) start [2025-01-05 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180101', 'tblTempUsageDetail_20' ) end [2025-01-05 12:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:04:21] Production.INFO: ==13042== Releasing lock... [2025-01-05 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:05:04 [end_date_ymd] => 2025-01-05 12:05:04 [RateCDR] => 1 ) [2025-01-05 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:05:04' and `end` < '2025-01-05 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:05:17] Production.INFO: count ==851 [2025-01-05 12:05:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:05:04 - End Time 2025-01-05 12:05:04 [2025-01-05 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180106', 'tblTempUsageDetail_20' ) start [2025-01-05 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180106', 'tblTempUsageDetail_20' ) end [2025-01-05 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180106', 'tblTempVendorCDR_20' ) start [2025-01-05 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180106', 'tblTempVendorCDR_20' ) end [2025-01-05 12:05:17] Production.INFO: ProcessCDR(1,14180106,1,1,2) [2025-01-05 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180106', 'tblTempUsageDetail_20' ) start [2025-01-05 12:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180106', 'tblTempUsageDetail_20' ) end [2025-01-05 12:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:05:20] Production.INFO: ==13118== Releasing lock... [2025-01-05 12:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:05:20] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:06:05 [end_date_ymd] => 2025-01-05 12:06:05 [RateCDR] => 1 ) [2025-01-05 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:06:05' and `end` < '2025-01-05 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:06:18] Production.INFO: count ==851 [2025-01-05 12:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:06:05 - End Time 2025-01-05 12:06:05 [2025-01-05 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180111', 'tblTempUsageDetail_20' ) start [2025-01-05 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180111', 'tblTempUsageDetail_20' ) end [2025-01-05 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180111', 'tblTempVendorCDR_20' ) start [2025-01-05 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180111', 'tblTempVendorCDR_20' ) end [2025-01-05 12:06:18] Production.INFO: ProcessCDR(1,14180111,1,1,2) [2025-01-05 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180111', 'tblTempUsageDetail_20' ) start [2025-01-05 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180111', 'tblTempUsageDetail_20' ) end [2025-01-05 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:06:22] Production.INFO: ==13240== Releasing lock... [2025-01-05 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:06:22] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:07:04 [end_date_ymd] => 2025-01-05 12:07:04 [RateCDR] => 1 ) [2025-01-05 12:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:07:04' and `end` < '2025-01-05 12:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:07:17] Production.INFO: count ==852 [2025-01-05 12:07:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:07:04 - End Time 2025-01-05 12:07:04 [2025-01-05 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180116', 'tblTempUsageDetail_20' ) start [2025-01-05 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180116', 'tblTempUsageDetail_20' ) end [2025-01-05 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180116', 'tblTempVendorCDR_20' ) start [2025-01-05 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180116', 'tblTempVendorCDR_20' ) end [2025-01-05 12:07:17] Production.INFO: ProcessCDR(1,14180116,1,1,2) [2025-01-05 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180116', 'tblTempUsageDetail_20' ) start [2025-01-05 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180116', 'tblTempUsageDetail_20' ) end [2025-01-05 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:07:22] Production.INFO: ==13320== Releasing lock... [2025-01-05 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:08:05 [end_date_ymd] => 2025-01-05 12:08:05 [RateCDR] => 1 ) [2025-01-05 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:08:05' and `end` < '2025-01-05 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:08:19] Production.INFO: count ==865 [2025-01-05 12:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:08:05 - End Time 2025-01-05 12:08:05 [2025-01-05 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180121', 'tblTempUsageDetail_20' ) start [2025-01-05 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180121', 'tblTempUsageDetail_20' ) end [2025-01-05 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180121', 'tblTempVendorCDR_20' ) start [2025-01-05 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180121', 'tblTempVendorCDR_20' ) end [2025-01-05 12:08:20] Production.INFO: ProcessCDR(1,14180121,1,1,2) [2025-01-05 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180121', 'tblTempUsageDetail_20' ) start [2025-01-05 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180121', 'tblTempUsageDetail_20' ) end [2025-01-05 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:08:24] Production.INFO: ==13400== Releasing lock... [2025-01-05 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:08:24] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:09:05 [end_date_ymd] => 2025-01-05 12:09:05 [RateCDR] => 1 ) [2025-01-05 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:09:05' and `end` < '2025-01-05 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:09:18] Production.INFO: count ==866 [2025-01-05 12:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:09:05 - End Time 2025-01-05 12:09:05 [2025-01-05 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180126', 'tblTempUsageDetail_20' ) start [2025-01-05 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180126', 'tblTempUsageDetail_20' ) end [2025-01-05 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180126', 'tblTempVendorCDR_20' ) start [2025-01-05 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180126', 'tblTempVendorCDR_20' ) end [2025-01-05 12:09:18] Production.INFO: ProcessCDR(1,14180126,1,1,2) [2025-01-05 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180126', 'tblTempUsageDetail_20' ) start [2025-01-05 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180126', 'tblTempUsageDetail_20' ) end [2025-01-05 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:09:23] Production.INFO: ==13484== Releasing lock... [2025-01-05 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:10:05 [end_date_ymd] => 2025-01-05 12:10:05 [RateCDR] => 1 ) [2025-01-05 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:10:05' and `end` < '2025-01-05 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:10:18] Production.INFO: count ==871 [2025-01-05 12:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:10:05 - End Time 2025-01-05 12:10:05 [2025-01-05 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180132', 'tblTempUsageDetail_20' ) start [2025-01-05 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180132', 'tblTempUsageDetail_20' ) end [2025-01-05 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180132', 'tblTempVendorCDR_20' ) start [2025-01-05 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180132', 'tblTempVendorCDR_20' ) end [2025-01-05 12:10:18] Production.INFO: ProcessCDR(1,14180132,1,1,2) [2025-01-05 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180132', 'tblTempUsageDetail_20' ) start [2025-01-05 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180132', 'tblTempUsageDetail_20' ) end [2025-01-05 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:10:23] Production.INFO: ==13565== Releasing lock... [2025-01-05 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:10:23] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:11:05 [end_date_ymd] => 2025-01-05 12:11:05 [RateCDR] => 1 ) [2025-01-05 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:11:05' and `end` < '2025-01-05 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:11:18] Production.INFO: count ==905 [2025-01-05 12:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:11:05 - End Time 2025-01-05 12:11:05 [2025-01-05 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180137', 'tblTempUsageDetail_20' ) start [2025-01-05 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180137', 'tblTempUsageDetail_20' ) end [2025-01-05 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180137', 'tblTempVendorCDR_20' ) start [2025-01-05 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180137', 'tblTempVendorCDR_20' ) end [2025-01-05 12:11:18] Production.INFO: ProcessCDR(1,14180137,1,1,2) [2025-01-05 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180137', 'tblTempUsageDetail_20' ) start [2025-01-05 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180137', 'tblTempUsageDetail_20' ) end [2025-01-05 12:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:11:21] Production.INFO: ==13649== Releasing lock... [2025-01-05 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:12:05 [end_date_ymd] => 2025-01-05 12:12:05 [RateCDR] => 1 ) [2025-01-05 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:12:05' and `end` < '2025-01-05 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:12:20] Production.INFO: count ==903 [2025-01-05 12:12:20] Production.ERROR: pbx CDR StartTime 2025-01-05 09:12:05 - End Time 2025-01-05 12:12:05 [2025-01-05 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180142', 'tblTempUsageDetail_20' ) start [2025-01-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180142', 'tblTempUsageDetail_20' ) end [2025-01-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180142', 'tblTempVendorCDR_20' ) start [2025-01-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180142', 'tblTempVendorCDR_20' ) end [2025-01-05 12:12:20] Production.INFO: ProcessCDR(1,14180142,1,1,2) [2025-01-05 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180142', 'tblTempUsageDetail_20' ) start [2025-01-05 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180142', 'tblTempUsageDetail_20' ) end [2025-01-05 12:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:12:23] Production.INFO: ==13729== Releasing lock... [2025-01-05 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:12:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:13:05 [end_date_ymd] => 2025-01-05 12:13:05 [RateCDR] => 1 ) [2025-01-05 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:13:05' and `end` < '2025-01-05 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:13:18] Production.INFO: count ==904 [2025-01-05 12:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:13:05 - End Time 2025-01-05 12:13:05 [2025-01-05 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180147', 'tblTempUsageDetail_20' ) start [2025-01-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180147', 'tblTempUsageDetail_20' ) end [2025-01-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180147', 'tblTempVendorCDR_20' ) start [2025-01-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180147', 'tblTempVendorCDR_20' ) end [2025-01-05 12:13:18] Production.INFO: ProcessCDR(1,14180147,1,1,2) [2025-01-05 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180147', 'tblTempUsageDetail_20' ) start [2025-01-05 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180147', 'tblTempUsageDetail_20' ) end [2025-01-05 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:13:22] Production.INFO: ==13808== Releasing lock... [2025-01-05 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:14:05 [end_date_ymd] => 2025-01-05 12:14:05 [RateCDR] => 1 ) [2025-01-05 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:14:05' and `end` < '2025-01-05 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:14:19] Production.INFO: count ==905 [2025-01-05 12:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:14:05 - End Time 2025-01-05 12:14:05 [2025-01-05 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180152', 'tblTempUsageDetail_20' ) start [2025-01-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180152', 'tblTempUsageDetail_20' ) end [2025-01-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180152', 'tblTempVendorCDR_20' ) start [2025-01-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180152', 'tblTempVendorCDR_20' ) end [2025-01-05 12:14:19] Production.INFO: ProcessCDR(1,14180152,1,1,2) [2025-01-05 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180152', 'tblTempUsageDetail_20' ) start [2025-01-05 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180152', 'tblTempUsageDetail_20' ) end [2025-01-05 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:14:23] Production.INFO: ==13892== Releasing lock... [2025-01-05 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:14:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:15:05 [end_date_ymd] => 2025-01-05 12:15:05 [RateCDR] => 1 ) [2025-01-05 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:15:05' and `end` < '2025-01-05 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:15:19] Production.INFO: count ==894 [2025-01-05 12:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:15:05 - End Time 2025-01-05 12:15:05 [2025-01-05 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180157', 'tblTempUsageDetail_20' ) start [2025-01-05 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180157', 'tblTempUsageDetail_20' ) end [2025-01-05 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180157', 'tblTempVendorCDR_20' ) start [2025-01-05 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180157', 'tblTempVendorCDR_20' ) end [2025-01-05 12:15:19] Production.INFO: ProcessCDR(1,14180157,1,1,2) [2025-01-05 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180157', 'tblTempUsageDetail_20' ) start [2025-01-05 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180157', 'tblTempUsageDetail_20' ) end [2025-01-05 12:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:15:24] Production.INFO: ==13971== Releasing lock... [2025-01-05 12:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:15:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:16:05 [end_date_ymd] => 2025-01-05 12:16:05 [RateCDR] => 1 ) [2025-01-05 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:16:05' and `end` < '2025-01-05 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:16:18] Production.INFO: count ==897 [2025-01-05 12:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:16:05 - End Time 2025-01-05 12:16:05 [2025-01-05 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180162', 'tblTempUsageDetail_20' ) start [2025-01-05 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180162', 'tblTempUsageDetail_20' ) end [2025-01-05 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180162', 'tblTempVendorCDR_20' ) start [2025-01-05 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180162', 'tblTempVendorCDR_20' ) end [2025-01-05 12:16:18] Production.INFO: ProcessCDR(1,14180162,1,1,2) [2025-01-05 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180162', 'tblTempUsageDetail_20' ) start [2025-01-05 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180162', 'tblTempUsageDetail_20' ) end [2025-01-05 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:16:22] Production.INFO: ==14054== Releasing lock... [2025-01-05 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 12:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:17:04 [end_date_ymd] => 2025-01-05 12:17:04 [RateCDR] => 1 ) [2025-01-05 12:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:17:04' and `end` < '2025-01-05 12:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:17:17] Production.INFO: count ==903 [2025-01-05 12:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:17:04 - End Time 2025-01-05 12:17:04 [2025-01-05 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180167', 'tblTempUsageDetail_20' ) start [2025-01-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180167', 'tblTempUsageDetail_20' ) end [2025-01-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180167', 'tblTempVendorCDR_20' ) start [2025-01-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180167', 'tblTempVendorCDR_20' ) end [2025-01-05 12:17:18] Production.INFO: ProcessCDR(1,14180167,1,1,2) [2025-01-05 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180167', 'tblTempUsageDetail_20' ) start [2025-01-05 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180167', 'tblTempUsageDetail_20' ) end [2025-01-05 12:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:17:21] Production.INFO: ==14133== Releasing lock... [2025-01-05 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:17:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:18:05 [end_date_ymd] => 2025-01-05 12:18:05 [RateCDR] => 1 ) [2025-01-05 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:18:05' and `end` < '2025-01-05 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:18:19] Production.INFO: count ==904 [2025-01-05 12:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:18:05 - End Time 2025-01-05 12:18:05 [2025-01-05 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180172', 'tblTempUsageDetail_20' ) start [2025-01-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180172', 'tblTempUsageDetail_20' ) end [2025-01-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180172', 'tblTempVendorCDR_20' ) start [2025-01-05 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180172', 'tblTempVendorCDR_20' ) end [2025-01-05 12:18:20] Production.INFO: ProcessCDR(1,14180172,1,1,2) [2025-01-05 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180172', 'tblTempUsageDetail_20' ) start [2025-01-05 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180172', 'tblTempUsageDetail_20' ) end [2025-01-05 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:18:24] Production.INFO: ==14235== Releasing lock... [2025-01-05 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:18:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:19:05 [end_date_ymd] => 2025-01-05 12:19:05 [RateCDR] => 1 ) [2025-01-05 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:19:05' and `end` < '2025-01-05 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:19:21] Production.INFO: count ==906 [2025-01-05 12:19:21] Production.ERROR: pbx CDR StartTime 2025-01-05 09:19:05 - End Time 2025-01-05 12:19:05 [2025-01-05 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180177', 'tblTempUsageDetail_20' ) start [2025-01-05 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180177', 'tblTempUsageDetail_20' ) end [2025-01-05 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180177', 'tblTempVendorCDR_20' ) start [2025-01-05 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180177', 'tblTempVendorCDR_20' ) end [2025-01-05 12:19:21] Production.INFO: ProcessCDR(1,14180177,1,1,2) [2025-01-05 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180177', 'tblTempUsageDetail_20' ) start [2025-01-05 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180177', 'tblTempUsageDetail_20' ) end [2025-01-05 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:19:25] Production.INFO: ==14315== Releasing lock... [2025-01-05 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:19:25] Production.INFO: 35 MB #Memory Used# [2025-01-05 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:20:06 [end_date_ymd] => 2025-01-05 12:20:06 [RateCDR] => 1 ) [2025-01-05 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:20:06' and `end` < '2025-01-05 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:20:19] Production.INFO: count ==919 [2025-01-05 12:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:20:06 - End Time 2025-01-05 12:20:06 [2025-01-05 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180182', 'tblTempUsageDetail_20' ) start [2025-01-05 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180182', 'tblTempUsageDetail_20' ) end [2025-01-05 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180182', 'tblTempVendorCDR_20' ) start [2025-01-05 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180182', 'tblTempVendorCDR_20' ) end [2025-01-05 12:20:19] Production.INFO: ProcessCDR(1,14180182,1,1,2) [2025-01-05 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180182', 'tblTempUsageDetail_20' ) start [2025-01-05 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180182', 'tblTempUsageDetail_20' ) end [2025-01-05 12:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:20:22] Production.INFO: ==14398== Releasing lock... [2025-01-05 12:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:21:04 [end_date_ymd] => 2025-01-05 12:21:04 [RateCDR] => 1 ) [2025-01-05 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:21:04' and `end` < '2025-01-05 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:21:18] Production.INFO: count ==949 [2025-01-05 12:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:21:04 - End Time 2025-01-05 12:21:04 [2025-01-05 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180188', 'tblTempUsageDetail_20' ) start [2025-01-05 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180188', 'tblTempUsageDetail_20' ) end [2025-01-05 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180188', 'tblTempVendorCDR_20' ) start [2025-01-05 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180188', 'tblTempVendorCDR_20' ) end [2025-01-05 12:21:19] Production.INFO: ProcessCDR(1,14180188,1,1,2) [2025-01-05 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180188', 'tblTempUsageDetail_20' ) start [2025-01-05 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180188', 'tblTempUsageDetail_20' ) end [2025-01-05 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:21:23] Production.INFO: ==14486== Releasing lock... [2025-01-05 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:21:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:22:05 [end_date_ymd] => 2025-01-05 12:22:05 [RateCDR] => 1 ) [2025-01-05 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:22:05' and `end` < '2025-01-05 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:22:18] Production.INFO: count ==951 [2025-01-05 12:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:22:05 - End Time 2025-01-05 12:22:05 [2025-01-05 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180193', 'tblTempUsageDetail_20' ) start [2025-01-05 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180193', 'tblTempUsageDetail_20' ) end [2025-01-05 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180193', 'tblTempVendorCDR_20' ) start [2025-01-05 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180193', 'tblTempVendorCDR_20' ) end [2025-01-05 12:22:18] Production.INFO: ProcessCDR(1,14180193,1,1,2) [2025-01-05 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180193', 'tblTempUsageDetail_20' ) start [2025-01-05 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180193', 'tblTempUsageDetail_20' ) end [2025-01-05 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:22:23] Production.INFO: ==14611== Releasing lock... [2025-01-05 12:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:22:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:23:04 [end_date_ymd] => 2025-01-05 12:23:04 [RateCDR] => 1 ) [2025-01-05 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:23:04' and `end` < '2025-01-05 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:23:17] Production.INFO: count ==954 [2025-01-05 12:23:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:23:04 - End Time 2025-01-05 12:23:04 [2025-01-05 12:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180198', 'tblTempUsageDetail_20' ) start [2025-01-05 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180198', 'tblTempUsageDetail_20' ) end [2025-01-05 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180198', 'tblTempVendorCDR_20' ) start [2025-01-05 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180198', 'tblTempVendorCDR_20' ) end [2025-01-05 12:23:17] Production.INFO: ProcessCDR(1,14180198,1,1,2) [2025-01-05 12:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180198', 'tblTempUsageDetail_20' ) start [2025-01-05 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180198', 'tblTempUsageDetail_20' ) end [2025-01-05 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:23:22] Production.INFO: ==14694== Releasing lock... [2025-01-05 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:23:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:24:05 [end_date_ymd] => 2025-01-05 12:24:05 [RateCDR] => 1 ) [2025-01-05 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:24:05' and `end` < '2025-01-05 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:24:18] Production.INFO: count ==954 [2025-01-05 12:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:24:05 - End Time 2025-01-05 12:24:05 [2025-01-05 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180203', 'tblTempUsageDetail_20' ) start [2025-01-05 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180203', 'tblTempUsageDetail_20' ) end [2025-01-05 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180203', 'tblTempVendorCDR_20' ) start [2025-01-05 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180203', 'tblTempVendorCDR_20' ) end [2025-01-05 12:24:18] Production.INFO: ProcessCDR(1,14180203,1,1,2) [2025-01-05 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180203', 'tblTempUsageDetail_20' ) start [2025-01-05 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180203', 'tblTempUsageDetail_20' ) end [2025-01-05 12:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:24:21] Production.INFO: ==14782== Releasing lock... [2025-01-05 12:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:24:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:25:05 [end_date_ymd] => 2025-01-05 12:25:05 [RateCDR] => 1 ) [2025-01-05 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:25:05' and `end` < '2025-01-05 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:25:18] Production.INFO: count ==954 [2025-01-05 12:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:25:05 - End Time 2025-01-05 12:25:05 [2025-01-05 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180208', 'tblTempUsageDetail_20' ) start [2025-01-05 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180208', 'tblTempUsageDetail_20' ) end [2025-01-05 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180208', 'tblTempVendorCDR_20' ) start [2025-01-05 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180208', 'tblTempVendorCDR_20' ) end [2025-01-05 12:25:18] Production.INFO: ProcessCDR(1,14180208,1,1,2) [2025-01-05 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180208', 'tblTempUsageDetail_20' ) start [2025-01-05 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180208', 'tblTempUsageDetail_20' ) end [2025-01-05 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:25:21] Production.INFO: ==14870== Releasing lock... [2025-01-05 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:25:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:26:05 [end_date_ymd] => 2025-01-05 12:26:05 [RateCDR] => 1 ) [2025-01-05 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:26:05' and `end` < '2025-01-05 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:26:19] Production.INFO: count ==953 [2025-01-05 12:26:20] Production.ERROR: pbx CDR StartTime 2025-01-05 09:26:05 - End Time 2025-01-05 12:26:05 [2025-01-05 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180213', 'tblTempUsageDetail_20' ) start [2025-01-05 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180213', 'tblTempUsageDetail_20' ) end [2025-01-05 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180213', 'tblTempVendorCDR_20' ) start [2025-01-05 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180213', 'tblTempVendorCDR_20' ) end [2025-01-05 12:26:20] Production.INFO: ProcessCDR(1,14180213,1,1,2) [2025-01-05 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180213', 'tblTempUsageDetail_20' ) start [2025-01-05 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180213', 'tblTempUsageDetail_20' ) end [2025-01-05 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:26:23] Production.INFO: ==14953== Releasing lock... [2025-01-05 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:26:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:27:05 [end_date_ymd] => 2025-01-05 12:27:05 [RateCDR] => 1 ) [2025-01-05 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:27:05' and `end` < '2025-01-05 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:27:18] Production.INFO: count ==963 [2025-01-05 12:27:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:27:05 - End Time 2025-01-05 12:27:05 [2025-01-05 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180218', 'tblTempUsageDetail_20' ) start [2025-01-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180218', 'tblTempUsageDetail_20' ) end [2025-01-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180218', 'tblTempVendorCDR_20' ) start [2025-01-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180218', 'tblTempVendorCDR_20' ) end [2025-01-05 12:27:19] Production.INFO: ProcessCDR(1,14180218,1,1,2) [2025-01-05 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180218', 'tblTempUsageDetail_20' ) start [2025-01-05 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180218', 'tblTempUsageDetail_20' ) end [2025-01-05 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:27:22] Production.INFO: ==15037== Releasing lock... [2025-01-05 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:27:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:28:04 [end_date_ymd] => 2025-01-05 12:28:04 [RateCDR] => 1 ) [2025-01-05 12:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:28:04' and `end` < '2025-01-05 12:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:28:17] Production.INFO: count ==966 [2025-01-05 12:28:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:28:04 - End Time 2025-01-05 12:28:04 [2025-01-05 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180223', 'tblTempUsageDetail_20' ) start [2025-01-05 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180223', 'tblTempUsageDetail_20' ) end [2025-01-05 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180223', 'tblTempVendorCDR_20' ) start [2025-01-05 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180223', 'tblTempVendorCDR_20' ) end [2025-01-05 12:28:18] Production.INFO: ProcessCDR(1,14180223,1,1,2) [2025-01-05 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180223', 'tblTempUsageDetail_20' ) start [2025-01-05 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180223', 'tblTempUsageDetail_20' ) end [2025-01-05 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:28:21] Production.INFO: ==15121== Releasing lock... [2025-01-05 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:29:05 [end_date_ymd] => 2025-01-05 12:29:05 [RateCDR] => 1 ) [2025-01-05 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:29:05' and `end` < '2025-01-05 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:29:18] Production.INFO: count ==971 [2025-01-05 12:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:29:05 - End Time 2025-01-05 12:29:05 [2025-01-05 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180228', 'tblTempUsageDetail_20' ) start [2025-01-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180228', 'tblTempUsageDetail_20' ) end [2025-01-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180228', 'tblTempVendorCDR_20' ) start [2025-01-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180228', 'tblTempVendorCDR_20' ) end [2025-01-05 12:29:18] Production.INFO: ProcessCDR(1,14180228,1,1,2) [2025-01-05 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180228', 'tblTempUsageDetail_20' ) start [2025-01-05 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180228', 'tblTempUsageDetail_20' ) end [2025-01-05 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:29:22] Production.INFO: ==15211== Releasing lock... [2025-01-05 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:29:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:30:05 [end_date_ymd] => 2025-01-05 12:30:05 [RateCDR] => 1 ) [2025-01-05 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:30:05' and `end` < '2025-01-05 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:30:18] Production.INFO: count ==975 [2025-01-05 12:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:30:05 - End Time 2025-01-05 12:30:05 [2025-01-05 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180234', 'tblTempUsageDetail_20' ) start [2025-01-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180234', 'tblTempUsageDetail_20' ) end [2025-01-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180234', 'tblTempVendorCDR_20' ) start [2025-01-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180234', 'tblTempVendorCDR_20' ) end [2025-01-05 12:30:19] Production.INFO: ProcessCDR(1,14180234,1,1,2) [2025-01-05 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180234', 'tblTempUsageDetail_20' ) start [2025-01-05 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180234', 'tblTempUsageDetail_20' ) end [2025-01-05 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:30:22] Production.INFO: ==15301== Releasing lock... [2025-01-05 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:30:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:31:05 [end_date_ymd] => 2025-01-05 12:31:05 [RateCDR] => 1 ) [2025-01-05 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:31:05' and `end` < '2025-01-05 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:31:18] Production.INFO: count ==991 [2025-01-05 12:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:31:05 - End Time 2025-01-05 12:31:05 [2025-01-05 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180237', 'tblTempUsageDetail_20' ) start [2025-01-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180237', 'tblTempUsageDetail_20' ) end [2025-01-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180237', 'tblTempVendorCDR_20' ) start [2025-01-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180237', 'tblTempVendorCDR_20' ) end [2025-01-05 12:31:18] Production.INFO: ProcessCDR(1,14180237,1,1,2) [2025-01-05 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180237', 'tblTempUsageDetail_20' ) start [2025-01-05 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180237', 'tblTempUsageDetail_20' ) end [2025-01-05 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:31:21] Production.INFO: ==15390== Releasing lock... [2025-01-05 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:31:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:32:06 [end_date_ymd] => 2025-01-05 12:32:06 [RateCDR] => 1 ) [2025-01-05 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:32:06' and `end` < '2025-01-05 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:32:20] Production.INFO: count ==991 [2025-01-05 12:32:20] Production.ERROR: pbx CDR StartTime 2025-01-05 09:32:06 - End Time 2025-01-05 12:32:06 [2025-01-05 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180244', 'tblTempUsageDetail_20' ) start [2025-01-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180244', 'tblTempUsageDetail_20' ) end [2025-01-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180244', 'tblTempVendorCDR_20' ) start [2025-01-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180244', 'tblTempVendorCDR_20' ) end [2025-01-05 12:32:20] Production.INFO: ProcessCDR(1,14180244,1,1,2) [2025-01-05 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180244', 'tblTempUsageDetail_20' ) start [2025-01-05 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180244', 'tblTempUsageDetail_20' ) end [2025-01-05 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:32:25] Production.INFO: ==15471== Releasing lock... [2025-01-05 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:32:25] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:33:04 [end_date_ymd] => 2025-01-05 12:33:04 [RateCDR] => 1 ) [2025-01-05 12:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:33:04' and `end` < '2025-01-05 12:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:33:20] Production.INFO: count ==992 [2025-01-05 12:33:20] Production.ERROR: pbx CDR StartTime 2025-01-05 09:33:04 - End Time 2025-01-05 12:33:04 [2025-01-05 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180249', 'tblTempUsageDetail_20' ) start [2025-01-05 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180249', 'tblTempUsageDetail_20' ) end [2025-01-05 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180249', 'tblTempVendorCDR_20' ) start [2025-01-05 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180249', 'tblTempVendorCDR_20' ) end [2025-01-05 12:33:20] Production.INFO: ProcessCDR(1,14180249,1,1,2) [2025-01-05 12:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180249', 'tblTempUsageDetail_20' ) start [2025-01-05 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180249', 'tblTempUsageDetail_20' ) end [2025-01-05 12:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:33:24] Production.INFO: ==15553== Releasing lock... [2025-01-05 12:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:33:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:34:05 [end_date_ymd] => 2025-01-05 12:34:05 [RateCDR] => 1 ) [2025-01-05 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:34:05' and `end` < '2025-01-05 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:34:18] Production.INFO: count ==994 [2025-01-05 12:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:34:05 - End Time 2025-01-05 12:34:05 [2025-01-05 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180254', 'tblTempUsageDetail_20' ) start [2025-01-05 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180254', 'tblTempUsageDetail_20' ) end [2025-01-05 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180254', 'tblTempVendorCDR_20' ) start [2025-01-05 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180254', 'tblTempVendorCDR_20' ) end [2025-01-05 12:34:18] Production.INFO: ProcessCDR(1,14180254,1,1,2) [2025-01-05 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180254', 'tblTempUsageDetail_20' ) start [2025-01-05 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180254', 'tblTempUsageDetail_20' ) end [2025-01-05 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:34:23] Production.INFO: ==15633== Releasing lock... [2025-01-05 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:34:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:35:05 [end_date_ymd] => 2025-01-05 12:35:05 [RateCDR] => 1 ) [2025-01-05 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:35:05' and `end` < '2025-01-05 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:35:18] Production.INFO: count ==995 [2025-01-05 12:35:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:35:05 - End Time 2025-01-05 12:35:05 [2025-01-05 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180259', 'tblTempUsageDetail_20' ) start [2025-01-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180259', 'tblTempUsageDetail_20' ) end [2025-01-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180259', 'tblTempVendorCDR_20' ) start [2025-01-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180259', 'tblTempVendorCDR_20' ) end [2025-01-05 12:35:19] Production.INFO: ProcessCDR(1,14180259,1,1,2) [2025-01-05 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180259', 'tblTempUsageDetail_20' ) start [2025-01-05 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180259', 'tblTempUsageDetail_20' ) end [2025-01-05 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:35:23] Production.INFO: ==15717== Releasing lock... [2025-01-05 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:35:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:36:05 [end_date_ymd] => 2025-01-05 12:36:05 [RateCDR] => 1 ) [2025-01-05 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:36:05' and `end` < '2025-01-05 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:36:18] Production.INFO: count ==997 [2025-01-05 12:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:36:05 - End Time 2025-01-05 12:36:05 [2025-01-05 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180264', 'tblTempUsageDetail_20' ) start [2025-01-05 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180264', 'tblTempUsageDetail_20' ) end [2025-01-05 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180264', 'tblTempVendorCDR_20' ) start [2025-01-05 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180264', 'tblTempVendorCDR_20' ) end [2025-01-05 12:36:18] Production.INFO: ProcessCDR(1,14180264,1,1,2) [2025-01-05 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180264', 'tblTempUsageDetail_20' ) start [2025-01-05 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180264', 'tblTempUsageDetail_20' ) end [2025-01-05 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:36:23] Production.INFO: ==15800== Releasing lock... [2025-01-05 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:36:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:37:05 [end_date_ymd] => 2025-01-05 12:37:05 [RateCDR] => 1 ) [2025-01-05 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:37:05' and `end` < '2025-01-05 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:37:18] Production.INFO: count ==1010 [2025-01-05 12:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:37:05 - End Time 2025-01-05 12:37:05 [2025-01-05 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180269', 'tblTempUsageDetail_20' ) start [2025-01-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180269', 'tblTempUsageDetail_20' ) end [2025-01-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180269', 'tblTempVendorCDR_20' ) start [2025-01-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180269', 'tblTempVendorCDR_20' ) end [2025-01-05 12:37:18] Production.INFO: ProcessCDR(1,14180269,1,1,2) [2025-01-05 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180269', 'tblTempUsageDetail_20' ) start [2025-01-05 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180269', 'tblTempUsageDetail_20' ) end [2025-01-05 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:37:23] Production.INFO: ==15880== Releasing lock... [2025-01-05 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:37:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:38:05 [end_date_ymd] => 2025-01-05 12:38:05 [RateCDR] => 1 ) [2025-01-05 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:38:05' and `end` < '2025-01-05 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:38:18] Production.INFO: count ==1011 [2025-01-05 12:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:38:05 - End Time 2025-01-05 12:38:05 [2025-01-05 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180274', 'tblTempUsageDetail_20' ) start [2025-01-05 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180274', 'tblTempUsageDetail_20' ) end [2025-01-05 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180274', 'tblTempVendorCDR_20' ) start [2025-01-05 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180274', 'tblTempVendorCDR_20' ) end [2025-01-05 12:38:18] Production.INFO: ProcessCDR(1,14180274,1,1,2) [2025-01-05 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180274', 'tblTempUsageDetail_20' ) start [2025-01-05 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180274', 'tblTempUsageDetail_20' ) end [2025-01-05 12:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:38:22] Production.INFO: ==16000== Releasing lock... [2025-01-05 12:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:39:04 [end_date_ymd] => 2025-01-05 12:39:04 [RateCDR] => 1 ) [2025-01-05 12:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:39:04' and `end` < '2025-01-05 12:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:39:17] Production.INFO: count ==1011 [2025-01-05 12:39:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:39:04 - End Time 2025-01-05 12:39:04 [2025-01-05 12:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180279', 'tblTempUsageDetail_20' ) start [2025-01-05 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180279', 'tblTempUsageDetail_20' ) end [2025-01-05 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180279', 'tblTempVendorCDR_20' ) start [2025-01-05 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180279', 'tblTempVendorCDR_20' ) end [2025-01-05 12:39:17] Production.INFO: ProcessCDR(1,14180279,1,1,2) [2025-01-05 12:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180279', 'tblTempUsageDetail_20' ) start [2025-01-05 12:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180279', 'tblTempUsageDetail_20' ) end [2025-01-05 12:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:39:20] Production.INFO: ==16082== Releasing lock... [2025-01-05 12:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:39:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:40:05 [end_date_ymd] => 2025-01-05 12:40:05 [RateCDR] => 1 ) [2025-01-05 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:40:05' and `end` < '2025-01-05 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:40:18] Production.INFO: count ==1015 [2025-01-05 12:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:40:05 - End Time 2025-01-05 12:40:05 [2025-01-05 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180284', 'tblTempUsageDetail_20' ) start [2025-01-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180284', 'tblTempUsageDetail_20' ) end [2025-01-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180284', 'tblTempVendorCDR_20' ) start [2025-01-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180284', 'tblTempVendorCDR_20' ) end [2025-01-05 12:40:19] Production.INFO: ProcessCDR(1,14180284,1,1,2) [2025-01-05 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180284', 'tblTempUsageDetail_20' ) start [2025-01-05 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180284', 'tblTempUsageDetail_20' ) end [2025-01-05 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:40:22] Production.INFO: ==16167== Releasing lock... [2025-01-05 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:40:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:41:04 [end_date_ymd] => 2025-01-05 12:41:04 [RateCDR] => 1 ) [2025-01-05 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:41:04' and `end` < '2025-01-05 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:41:17] Production.INFO: count ==1047 [2025-01-05 12:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:41:04 - End Time 2025-01-05 12:41:04 [2025-01-05 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180290', 'tblTempUsageDetail_20' ) start [2025-01-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180290', 'tblTempUsageDetail_20' ) end [2025-01-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180290', 'tblTempVendorCDR_20' ) start [2025-01-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180290', 'tblTempVendorCDR_20' ) end [2025-01-05 12:41:18] Production.INFO: ProcessCDR(1,14180290,1,1,2) [2025-01-05 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180290', 'tblTempUsageDetail_20' ) start [2025-01-05 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180290', 'tblTempUsageDetail_20' ) end [2025-01-05 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:41:22] Production.INFO: ==16255== Releasing lock... [2025-01-05 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:42:05 [end_date_ymd] => 2025-01-05 12:42:05 [RateCDR] => 1 ) [2025-01-05 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:42:05' and `end` < '2025-01-05 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:42:19] Production.INFO: count ==1056 [2025-01-05 12:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:42:05 - End Time 2025-01-05 12:42:05 [2025-01-05 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180295', 'tblTempUsageDetail_20' ) start [2025-01-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180295', 'tblTempUsageDetail_20' ) end [2025-01-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180295', 'tblTempVendorCDR_20' ) start [2025-01-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180295', 'tblTempVendorCDR_20' ) end [2025-01-05 12:42:19] Production.INFO: ProcessCDR(1,14180295,1,1,2) [2025-01-05 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180295', 'tblTempUsageDetail_20' ) start [2025-01-05 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180295', 'tblTempUsageDetail_20' ) end [2025-01-05 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:42:24] Production.INFO: ==16337== Releasing lock... [2025-01-05 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:42:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:43:05 [end_date_ymd] => 2025-01-05 12:43:05 [RateCDR] => 1 ) [2025-01-05 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:43:05' and `end` < '2025-01-05 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:43:18] Production.INFO: count ==1065 [2025-01-05 12:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:43:05 - End Time 2025-01-05 12:43:05 [2025-01-05 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180300', 'tblTempUsageDetail_20' ) start [2025-01-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180300', 'tblTempUsageDetail_20' ) end [2025-01-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180300', 'tblTempVendorCDR_20' ) start [2025-01-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180300', 'tblTempVendorCDR_20' ) end [2025-01-05 12:43:18] Production.INFO: ProcessCDR(1,14180300,1,1,2) [2025-01-05 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180300', 'tblTempUsageDetail_20' ) start [2025-01-05 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180300', 'tblTempUsageDetail_20' ) end [2025-01-05 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:43:23] Production.INFO: ==16417== Releasing lock... [2025-01-05 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:43:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:44:05 [end_date_ymd] => 2025-01-05 12:44:05 [RateCDR] => 1 ) [2025-01-05 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:44:05' and `end` < '2025-01-05 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:44:18] Production.INFO: count ==1072 [2025-01-05 12:44:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:44:05 - End Time 2025-01-05 12:44:05 [2025-01-05 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180305', 'tblTempUsageDetail_20' ) start [2025-01-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180305', 'tblTempUsageDetail_20' ) end [2025-01-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180305', 'tblTempVendorCDR_20' ) start [2025-01-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180305', 'tblTempVendorCDR_20' ) end [2025-01-05 12:44:19] Production.INFO: ProcessCDR(1,14180305,1,1,2) [2025-01-05 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180305', 'tblTempUsageDetail_20' ) start [2025-01-05 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180305', 'tblTempUsageDetail_20' ) end [2025-01-05 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:44:23] Production.INFO: ==16495== Releasing lock... [2025-01-05 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:44:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:45:06 [end_date_ymd] => 2025-01-05 12:45:06 [RateCDR] => 1 ) [2025-01-05 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:45:06' and `end` < '2025-01-05 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:45:19] Production.INFO: count ==1083 [2025-01-05 12:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:45:06 - End Time 2025-01-05 12:45:06 [2025-01-05 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180310', 'tblTempUsageDetail_20' ) start [2025-01-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180310', 'tblTempUsageDetail_20' ) end [2025-01-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180310', 'tblTempVendorCDR_20' ) start [2025-01-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180310', 'tblTempVendorCDR_20' ) end [2025-01-05 12:45:19] Production.INFO: ProcessCDR(1,14180310,1,1,2) [2025-01-05 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180310', 'tblTempUsageDetail_20' ) start [2025-01-05 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180310', 'tblTempUsageDetail_20' ) end [2025-01-05 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:45:24] Production.INFO: ==16579== Releasing lock... [2025-01-05 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:45:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:46:04 [end_date_ymd] => 2025-01-05 12:46:04 [RateCDR] => 1 ) [2025-01-05 12:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:46:04' and `end` < '2025-01-05 12:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:46:17] Production.INFO: count ==1089 [2025-01-05 12:46:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:46:04 - End Time 2025-01-05 12:46:04 [2025-01-05 12:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180315', 'tblTempUsageDetail_20' ) start [2025-01-05 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180315', 'tblTempUsageDetail_20' ) end [2025-01-05 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180315', 'tblTempVendorCDR_20' ) start [2025-01-05 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180315', 'tblTempVendorCDR_20' ) end [2025-01-05 12:46:17] Production.INFO: ProcessCDR(1,14180315,1,1,2) [2025-01-05 12:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180315', 'tblTempUsageDetail_20' ) start [2025-01-05 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180315', 'tblTempUsageDetail_20' ) end [2025-01-05 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:46:22] Production.INFO: ==16660== Releasing lock... [2025-01-05 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:47:05 [end_date_ymd] => 2025-01-05 12:47:05 [RateCDR] => 1 ) [2025-01-05 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:47:05' and `end` < '2025-01-05 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:47:18] Production.INFO: count ==1092 [2025-01-05 12:47:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:47:05 - End Time 2025-01-05 12:47:05 [2025-01-05 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180320', 'tblTempUsageDetail_20' ) start [2025-01-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180320', 'tblTempUsageDetail_20' ) end [2025-01-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180320', 'tblTempVendorCDR_20' ) start [2025-01-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180320', 'tblTempVendorCDR_20' ) end [2025-01-05 12:47:19] Production.INFO: ProcessCDR(1,14180320,1,1,2) [2025-01-05 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180320', 'tblTempUsageDetail_20' ) start [2025-01-05 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180320', 'tblTempUsageDetail_20' ) end [2025-01-05 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:47:23] Production.INFO: ==16744== Releasing lock... [2025-01-05 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:47:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:48:05 [end_date_ymd] => 2025-01-05 12:48:05 [RateCDR] => 1 ) [2025-01-05 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:48:05' and `end` < '2025-01-05 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:48:18] Production.INFO: count ==1099 [2025-01-05 12:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:48:05 - End Time 2025-01-05 12:48:05 [2025-01-05 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180325', 'tblTempUsageDetail_20' ) start [2025-01-05 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180325', 'tblTempUsageDetail_20' ) end [2025-01-05 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180325', 'tblTempVendorCDR_20' ) start [2025-01-05 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180325', 'tblTempVendorCDR_20' ) end [2025-01-05 12:48:18] Production.INFO: ProcessCDR(1,14180325,1,1,2) [2025-01-05 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180325', 'tblTempUsageDetail_20' ) start [2025-01-05 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180325', 'tblTempUsageDetail_20' ) end [2025-01-05 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:48:23] Production.INFO: ==16825== Releasing lock... [2025-01-05 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:48:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:49:05 [end_date_ymd] => 2025-01-05 12:49:05 [RateCDR] => 1 ) [2025-01-05 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:49:05' and `end` < '2025-01-05 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:49:19] Production.INFO: count ==1100 [2025-01-05 12:49:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:49:05 - End Time 2025-01-05 12:49:05 [2025-01-05 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180330', 'tblTempUsageDetail_20' ) start [2025-01-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180330', 'tblTempUsageDetail_20' ) end [2025-01-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180330', 'tblTempVendorCDR_20' ) start [2025-01-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180330', 'tblTempVendorCDR_20' ) end [2025-01-05 12:49:19] Production.INFO: ProcessCDR(1,14180330,1,1,2) [2025-01-05 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180330', 'tblTempUsageDetail_20' ) start [2025-01-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180330', 'tblTempUsageDetail_20' ) end [2025-01-05 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:49:24] Production.INFO: ==16906== Releasing lock... [2025-01-05 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:49:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:50:05 [end_date_ymd] => 2025-01-05 12:50:05 [RateCDR] => 1 ) [2025-01-05 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:50:05' and `end` < '2025-01-05 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:50:18] Production.INFO: count ==1113 [2025-01-05 12:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:50:05 - End Time 2025-01-05 12:50:05 [2025-01-05 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180336', 'tblTempUsageDetail_20' ) start [2025-01-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180336', 'tblTempUsageDetail_20' ) end [2025-01-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180336', 'tblTempVendorCDR_20' ) start [2025-01-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180336', 'tblTempVendorCDR_20' ) end [2025-01-05 12:50:19] Production.INFO: ProcessCDR(1,14180336,1,1,2) [2025-01-05 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180336', 'tblTempUsageDetail_20' ) start [2025-01-05 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180336', 'tblTempUsageDetail_20' ) end [2025-01-05 12:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:50:23] Production.INFO: ==16994== Releasing lock... [2025-01-05 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:51:05 [end_date_ymd] => 2025-01-05 12:51:05 [RateCDR] => 1 ) [2025-01-05 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:51:05' and `end` < '2025-01-05 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:51:18] Production.INFO: count ==1147 [2025-01-05 12:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:51:05 - End Time 2025-01-05 12:51:05 [2025-01-05 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180341', 'tblTempUsageDetail_20' ) start [2025-01-05 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180341', 'tblTempUsageDetail_20' ) end [2025-01-05 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180341', 'tblTempVendorCDR_20' ) start [2025-01-05 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180341', 'tblTempVendorCDR_20' ) end [2025-01-05 12:51:18] Production.INFO: ProcessCDR(1,14180341,1,1,2) [2025-01-05 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180341', 'tblTempUsageDetail_20' ) start [2025-01-05 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180341', 'tblTempUsageDetail_20' ) end [2025-01-05 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:51:21] Production.INFO: ==17080== Releasing lock... [2025-01-05 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:51:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:52:05 [end_date_ymd] => 2025-01-05 12:52:05 [RateCDR] => 1 ) [2025-01-05 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:52:05' and `end` < '2025-01-05 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:52:18] Production.INFO: count ==1147 [2025-01-05 12:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:52:05 - End Time 2025-01-05 12:52:05 [2025-01-05 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180346', 'tblTempUsageDetail_20' ) start [2025-01-05 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180346', 'tblTempUsageDetail_20' ) end [2025-01-05 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180346', 'tblTempVendorCDR_20' ) start [2025-01-05 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180346', 'tblTempVendorCDR_20' ) end [2025-01-05 12:52:18] Production.INFO: ProcessCDR(1,14180346,1,1,2) [2025-01-05 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180346', 'tblTempUsageDetail_20' ) start [2025-01-05 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180346', 'tblTempUsageDetail_20' ) end [2025-01-05 12:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:52:21] Production.INFO: ==17165== Releasing lock... [2025-01-05 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:52:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:53:04 [end_date_ymd] => 2025-01-05 12:53:04 [RateCDR] => 1 ) [2025-01-05 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:53:04' and `end` < '2025-01-05 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:53:17] Production.INFO: count ==1150 [2025-01-05 12:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:53:04 - End Time 2025-01-05 12:53:04 [2025-01-05 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180351', 'tblTempUsageDetail_20' ) start [2025-01-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180351', 'tblTempUsageDetail_20' ) end [2025-01-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180351', 'tblTempVendorCDR_20' ) start [2025-01-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180351', 'tblTempVendorCDR_20' ) end [2025-01-05 12:53:18] Production.INFO: ProcessCDR(1,14180351,1,1,2) [2025-01-05 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180351', 'tblTempUsageDetail_20' ) start [2025-01-05 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180351', 'tblTempUsageDetail_20' ) end [2025-01-05 12:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:53:21] Production.INFO: ==17286== Releasing lock... [2025-01-05 12:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:54:04 [end_date_ymd] => 2025-01-05 12:54:04 [RateCDR] => 1 ) [2025-01-05 12:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:54:04' and `end` < '2025-01-05 12:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:54:17] Production.INFO: count ==1151 [2025-01-05 12:54:17] Production.ERROR: pbx CDR StartTime 2025-01-05 09:54:04 - End Time 2025-01-05 12:54:04 [2025-01-05 12:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180356', 'tblTempUsageDetail_20' ) start [2025-01-05 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180356', 'tblTempUsageDetail_20' ) end [2025-01-05 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180356', 'tblTempVendorCDR_20' ) start [2025-01-05 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180356', 'tblTempVendorCDR_20' ) end [2025-01-05 12:54:17] Production.INFO: ProcessCDR(1,14180356,1,1,2) [2025-01-05 12:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180356', 'tblTempUsageDetail_20' ) start [2025-01-05 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180356', 'tblTempUsageDetail_20' ) end [2025-01-05 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:54:22] Production.INFO: ==17368== Releasing lock... [2025-01-05 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:55:05 [end_date_ymd] => 2025-01-05 12:55:05 [RateCDR] => 1 ) [2025-01-05 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:55:05' and `end` < '2025-01-05 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:55:18] Production.INFO: count ==1157 [2025-01-05 12:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 09:55:05 - End Time 2025-01-05 12:55:05 [2025-01-05 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180361', 'tblTempUsageDetail_20' ) start [2025-01-05 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180361', 'tblTempUsageDetail_20' ) end [2025-01-05 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180361', 'tblTempVendorCDR_20' ) start [2025-01-05 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180361', 'tblTempVendorCDR_20' ) end [2025-01-05 12:55:18] Production.INFO: ProcessCDR(1,14180361,1,1,2) [2025-01-05 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180361', 'tblTempUsageDetail_20' ) start [2025-01-05 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180361', 'tblTempUsageDetail_20' ) end [2025-01-05 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:55:23] Production.INFO: ==17452== Releasing lock... [2025-01-05 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:55:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:56:05 [end_date_ymd] => 2025-01-05 12:56:05 [RateCDR] => 1 ) [2025-01-05 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:56:05' and `end` < '2025-01-05 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:56:18] Production.INFO: count ==1155 [2025-01-05 12:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:56:05 - End Time 2025-01-05 12:56:05 [2025-01-05 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180366', 'tblTempUsageDetail_20' ) start [2025-01-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180366', 'tblTempUsageDetail_20' ) end [2025-01-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180366', 'tblTempVendorCDR_20' ) start [2025-01-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180366', 'tblTempVendorCDR_20' ) end [2025-01-05 12:56:19] Production.INFO: ProcessCDR(1,14180366,1,1,2) [2025-01-05 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180366', 'tblTempUsageDetail_20' ) start [2025-01-05 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180366', 'tblTempUsageDetail_20' ) end [2025-01-05 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:56:22] Production.INFO: ==17532== Releasing lock... [2025-01-05 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:57:05 [end_date_ymd] => 2025-01-05 12:57:05 [RateCDR] => 1 ) [2025-01-05 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:57:05' and `end` < '2025-01-05 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:57:18] Production.INFO: count ==1157 [2025-01-05 12:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:57:05 - End Time 2025-01-05 12:57:05 [2025-01-05 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180371', 'tblTempUsageDetail_20' ) start [2025-01-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180371', 'tblTempUsageDetail_20' ) end [2025-01-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180371', 'tblTempVendorCDR_20' ) start [2025-01-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180371', 'tblTempVendorCDR_20' ) end [2025-01-05 12:57:19] Production.INFO: ProcessCDR(1,14180371,1,1,2) [2025-01-05 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180371', 'tblTempUsageDetail_20' ) start [2025-01-05 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180371', 'tblTempUsageDetail_20' ) end [2025-01-05 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:57:23] Production.INFO: ==17613== Releasing lock... [2025-01-05 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:57:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:58:05 [end_date_ymd] => 2025-01-05 12:58:05 [RateCDR] => 1 ) [2025-01-05 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:58:05' and `end` < '2025-01-05 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:58:18] Production.INFO: count ==1158 [2025-01-05 12:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:58:05 - End Time 2025-01-05 12:58:05 [2025-01-05 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180376', 'tblTempUsageDetail_20' ) start [2025-01-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180376', 'tblTempUsageDetail_20' ) end [2025-01-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180376', 'tblTempVendorCDR_20' ) start [2025-01-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180376', 'tblTempVendorCDR_20' ) end [2025-01-05 12:58:19] Production.INFO: ProcessCDR(1,14180376,1,1,2) [2025-01-05 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180376', 'tblTempUsageDetail_20' ) start [2025-01-05 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180376', 'tblTempUsageDetail_20' ) end [2025-01-05 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:58:23] Production.INFO: ==17694== Releasing lock... [2025-01-05 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 09:59:05 [end_date_ymd] => 2025-01-05 12:59:05 [RateCDR] => 1 ) [2025-01-05 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 09:59:05' and `end` < '2025-01-05 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 12:59:18] Production.INFO: count ==1163 [2025-01-05 12:59:19] Production.ERROR: pbx CDR StartTime 2025-01-05 09:59:05 - End Time 2025-01-05 12:59:05 [2025-01-05 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180381', 'tblTempUsageDetail_20' ) start [2025-01-05 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180381', 'tblTempUsageDetail_20' ) end [2025-01-05 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180381', 'tblTempVendorCDR_20' ) start [2025-01-05 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180381', 'tblTempVendorCDR_20' ) end [2025-01-05 12:59:19] Production.INFO: ProcessCDR(1,14180381,1,1,2) [2025-01-05 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180381', 'tblTempUsageDetail_20' ) start [2025-01-05 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180381', 'tblTempUsageDetail_20' ) end [2025-01-05 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 12:59:22] Production.INFO: ==17776== Releasing lock... [2025-01-05 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 12:59:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:00:06 [end_date_ymd] => 2025-01-05 13:00:06 [RateCDR] => 1 ) [2025-01-05 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:00:06' and `end` < '2025-01-05 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:00:19] Production.INFO: count ==1175 [2025-01-05 13:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:00:06 - End Time 2025-01-05 13:00:06 [2025-01-05 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180387', 'tblTempUsageDetail_20' ) start [2025-01-05 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180387', 'tblTempUsageDetail_20' ) end [2025-01-05 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180387', 'tblTempVendorCDR_20' ) start [2025-01-05 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180387', 'tblTempVendorCDR_20' ) end [2025-01-05 13:00:19] Production.INFO: ProcessCDR(1,14180387,1,1,2) [2025-01-05 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180387', 'tblTempUsageDetail_20' ) start [2025-01-05 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180387', 'tblTempUsageDetail_20' ) end [2025-01-05 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:00:24] Production.INFO: ==17863== Releasing lock... [2025-01-05 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:00:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:01:05 [end_date_ymd] => 2025-01-05 13:01:05 [RateCDR] => 1 ) [2025-01-05 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:01:05' and `end` < '2025-01-05 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:01:18] Production.INFO: count ==1226 [2025-01-05 13:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:01:05 - End Time 2025-01-05 13:01:05 [2025-01-05 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180392', 'tblTempUsageDetail_20' ) start [2025-01-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180392', 'tblTempUsageDetail_20' ) end [2025-01-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180392', 'tblTempVendorCDR_20' ) start [2025-01-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180392', 'tblTempVendorCDR_20' ) end [2025-01-05 13:01:18] Production.INFO: ProcessCDR(1,14180392,1,1,2) [2025-01-05 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180392', 'tblTempUsageDetail_20' ) start [2025-01-05 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180392', 'tblTempUsageDetail_20' ) end [2025-01-05 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:01:23] Production.INFO: ==17961== Releasing lock... [2025-01-05 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:01:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:02:05 [end_date_ymd] => 2025-01-05 13:02:05 [RateCDR] => 1 ) [2025-01-05 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:02:05' and `end` < '2025-01-05 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:02:19] Production.INFO: count ==1231 [2025-01-05 13:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:02:05 - End Time 2025-01-05 13:02:05 [2025-01-05 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180397', 'tblTempUsageDetail_20' ) start [2025-01-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180397', 'tblTempUsageDetail_20' ) end [2025-01-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180397', 'tblTempVendorCDR_20' ) start [2025-01-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180397', 'tblTempVendorCDR_20' ) end [2025-01-05 13:02:19] Production.INFO: ProcessCDR(1,14180397,1,1,2) [2025-01-05 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180397', 'tblTempUsageDetail_20' ) start [2025-01-05 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180397', 'tblTempUsageDetail_20' ) end [2025-01-05 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:02:23] Production.INFO: ==18041== Releasing lock... [2025-01-05 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:02:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:03:05 [end_date_ymd] => 2025-01-05 13:03:05 [RateCDR] => 1 ) [2025-01-05 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:03:05' and `end` < '2025-01-05 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:03:18] Production.INFO: count ==1234 [2025-01-05 13:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:03:05 - End Time 2025-01-05 13:03:05 [2025-01-05 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180402', 'tblTempUsageDetail_20' ) start [2025-01-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180402', 'tblTempUsageDetail_20' ) end [2025-01-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180402', 'tblTempVendorCDR_20' ) start [2025-01-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180402', 'tblTempVendorCDR_20' ) end [2025-01-05 13:03:18] Production.INFO: ProcessCDR(1,14180402,1,1,2) [2025-01-05 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180402', 'tblTempUsageDetail_20' ) start [2025-01-05 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180402', 'tblTempUsageDetail_20' ) end [2025-01-05 13:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:03:22] Production.INFO: ==18123== Releasing lock... [2025-01-05 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:04:05 [end_date_ymd] => 2025-01-05 13:04:05 [RateCDR] => 1 ) [2025-01-05 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:04:05' and `end` < '2025-01-05 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:04:19] Production.INFO: count ==1231 [2025-01-05 13:04:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:04:05 - End Time 2025-01-05 13:04:05 [2025-01-05 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180407', 'tblTempUsageDetail_20' ) start [2025-01-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180407', 'tblTempUsageDetail_20' ) end [2025-01-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180407', 'tblTempVendorCDR_20' ) start [2025-01-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180407', 'tblTempVendorCDR_20' ) end [2025-01-05 13:04:19] Production.INFO: ProcessCDR(1,14180407,1,1,2) [2025-01-05 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180407', 'tblTempUsageDetail_20' ) start [2025-01-05 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180407', 'tblTempUsageDetail_20' ) end [2025-01-05 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:04:23] Production.INFO: ==18201== Releasing lock... [2025-01-05 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:04:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:05:04 [end_date_ymd] => 2025-01-05 13:05:04 [RateCDR] => 1 ) [2025-01-05 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:05:04' and `end` < '2025-01-05 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:05:17] Production.INFO: count ==1236 [2025-01-05 13:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:05:04 - End Time 2025-01-05 13:05:04 [2025-01-05 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180412', 'tblTempUsageDetail_20' ) start [2025-01-05 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180412', 'tblTempUsageDetail_20' ) end [2025-01-05 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180412', 'tblTempVendorCDR_20' ) start [2025-01-05 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180412', 'tblTempVendorCDR_20' ) end [2025-01-05 13:05:18] Production.INFO: ProcessCDR(1,14180412,1,1,2) [2025-01-05 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180412', 'tblTempUsageDetail_20' ) start [2025-01-05 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180412', 'tblTempUsageDetail_20' ) end [2025-01-05 13:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:05:21] Production.INFO: ==18284== Releasing lock... [2025-01-05 13:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:06:05 [end_date_ymd] => 2025-01-05 13:06:05 [RateCDR] => 1 ) [2025-01-05 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:06:05' and `end` < '2025-01-05 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:06:18] Production.INFO: count ==1238 [2025-01-05 13:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:06:05 - End Time 2025-01-05 13:06:05 [2025-01-05 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180417', 'tblTempUsageDetail_20' ) start [2025-01-05 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180417', 'tblTempUsageDetail_20' ) end [2025-01-05 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180417', 'tblTempVendorCDR_20' ) start [2025-01-05 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180417', 'tblTempVendorCDR_20' ) end [2025-01-05 13:06:18] Production.INFO: ProcessCDR(1,14180417,1,1,2) [2025-01-05 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180417', 'tblTempUsageDetail_20' ) start [2025-01-05 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180417', 'tblTempUsageDetail_20' ) end [2025-01-05 13:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:06:22] Production.INFO: ==18371== Releasing lock... [2025-01-05 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:07:05 [end_date_ymd] => 2025-01-05 13:07:05 [RateCDR] => 1 ) [2025-01-05 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:07:05' and `end` < '2025-01-05 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:07:18] Production.INFO: count ==1242 [2025-01-05 13:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:07:05 - End Time 2025-01-05 13:07:05 [2025-01-05 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180422', 'tblTempUsageDetail_20' ) start [2025-01-05 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180422', 'tblTempUsageDetail_20' ) end [2025-01-05 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180422', 'tblTempVendorCDR_20' ) start [2025-01-05 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180422', 'tblTempVendorCDR_20' ) end [2025-01-05 13:07:18] Production.INFO: ProcessCDR(1,14180422,1,1,2) [2025-01-05 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180422', 'tblTempUsageDetail_20' ) start [2025-01-05 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180422', 'tblTempUsageDetail_20' ) end [2025-01-05 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:07:23] Production.INFO: ==18451== Releasing lock... [2025-01-05 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:07:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:08:05 [end_date_ymd] => 2025-01-05 13:08:05 [RateCDR] => 1 ) [2025-01-05 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:08:05' and `end` < '2025-01-05 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:08:18] Production.INFO: count ==1242 [2025-01-05 13:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:08:05 - End Time 2025-01-05 13:08:05 [2025-01-05 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180427', 'tblTempUsageDetail_20' ) start [2025-01-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180427', 'tblTempUsageDetail_20' ) end [2025-01-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180427', 'tblTempVendorCDR_20' ) start [2025-01-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180427', 'tblTempVendorCDR_20' ) end [2025-01-05 13:08:19] Production.INFO: ProcessCDR(1,14180427,1,1,2) [2025-01-05 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180427', 'tblTempUsageDetail_20' ) start [2025-01-05 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180427', 'tblTempUsageDetail_20' ) end [2025-01-05 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:08:22] Production.INFO: ==18528== Releasing lock... [2025-01-05 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:08:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:09:05 [end_date_ymd] => 2025-01-05 13:09:05 [RateCDR] => 1 ) [2025-01-05 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:09:05' and `end` < '2025-01-05 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:09:18] Production.INFO: count ==1225 [2025-01-05 13:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:09:05 - End Time 2025-01-05 13:09:05 [2025-01-05 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180432', 'tblTempUsageDetail_20' ) start [2025-01-05 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180432', 'tblTempUsageDetail_20' ) end [2025-01-05 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180432', 'tblTempVendorCDR_20' ) start [2025-01-05 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180432', 'tblTempVendorCDR_20' ) end [2025-01-05 13:09:18] Production.INFO: ProcessCDR(1,14180432,1,1,2) [2025-01-05 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180432', 'tblTempUsageDetail_20' ) start [2025-01-05 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180432', 'tblTempUsageDetail_20' ) end [2025-01-05 13:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:09:21] Production.INFO: ==18645== Releasing lock... [2025-01-05 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:10:06 [end_date_ymd] => 2025-01-05 13:10:06 [RateCDR] => 1 ) [2025-01-05 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:10:06' and `end` < '2025-01-05 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:10:18] Production.INFO: count ==1230 [2025-01-05 13:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:10:06 - End Time 2025-01-05 13:10:06 [2025-01-05 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180438', 'tblTempUsageDetail_20' ) start [2025-01-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180438', 'tblTempUsageDetail_20' ) end [2025-01-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180438', 'tblTempVendorCDR_20' ) start [2025-01-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180438', 'tblTempVendorCDR_20' ) end [2025-01-05 13:10:19] Production.INFO: ProcessCDR(1,14180438,1,1,2) [2025-01-05 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180438', 'tblTempUsageDetail_20' ) start [2025-01-05 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180438', 'tblTempUsageDetail_20' ) end [2025-01-05 13:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:10:22] Production.INFO: ==18724== Releasing lock... [2025-01-05 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:11:04 [end_date_ymd] => 2025-01-05 13:11:04 [RateCDR] => 1 ) [2025-01-05 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:11:04' and `end` < '2025-01-05 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:11:17] Production.INFO: count ==1259 [2025-01-05 13:11:17] Production.ERROR: pbx CDR StartTime 2025-01-05 10:11:04 - End Time 2025-01-05 13:11:04 [2025-01-05 13:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180443', 'tblTempUsageDetail_20' ) start [2025-01-05 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180443', 'tblTempUsageDetail_20' ) end [2025-01-05 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180443', 'tblTempVendorCDR_20' ) start [2025-01-05 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180443', 'tblTempVendorCDR_20' ) end [2025-01-05 13:11:18] Production.INFO: ProcessCDR(1,14180443,1,1,2) [2025-01-05 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180443', 'tblTempUsageDetail_20' ) start [2025-01-05 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180443', 'tblTempUsageDetail_20' ) end [2025-01-05 13:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:11:22] Production.INFO: ==18806== Releasing lock... [2025-01-05 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:12:06 [end_date_ymd] => 2025-01-05 13:12:06 [RateCDR] => 1 ) [2025-01-05 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:12:06' and `end` < '2025-01-05 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:12:19] Production.INFO: count ==1259 [2025-01-05 13:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:12:06 - End Time 2025-01-05 13:12:06 [2025-01-05 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180448', 'tblTempUsageDetail_20' ) start [2025-01-05 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180448', 'tblTempUsageDetail_20' ) end [2025-01-05 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180448', 'tblTempVendorCDR_20' ) start [2025-01-05 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180448', 'tblTempVendorCDR_20' ) end [2025-01-05 13:12:19] Production.INFO: ProcessCDR(1,14180448,1,1,2) [2025-01-05 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180448', 'tblTempUsageDetail_20' ) start [2025-01-05 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180448', 'tblTempUsageDetail_20' ) end [2025-01-05 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:12:23] Production.INFO: ==18884== Releasing lock... [2025-01-05 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:12:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:13:05 [end_date_ymd] => 2025-01-05 13:13:05 [RateCDR] => 1 ) [2025-01-05 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:13:05' and `end` < '2025-01-05 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:13:18] Production.INFO: count ==1265 [2025-01-05 13:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:13:05 - End Time 2025-01-05 13:13:05 [2025-01-05 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180453', 'tblTempUsageDetail_20' ) start [2025-01-05 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180453', 'tblTempUsageDetail_20' ) end [2025-01-05 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180453', 'tblTempVendorCDR_20' ) start [2025-01-05 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180453', 'tblTempVendorCDR_20' ) end [2025-01-05 13:13:18] Production.INFO: ProcessCDR(1,14180453,1,1,2) [2025-01-05 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180453', 'tblTempUsageDetail_20' ) start [2025-01-05 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180453', 'tblTempUsageDetail_20' ) end [2025-01-05 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:13:22] Production.INFO: ==18962== Releasing lock... [2025-01-05 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:14:05 [end_date_ymd] => 2025-01-05 13:14:05 [RateCDR] => 1 ) [2025-01-05 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:14:05' and `end` < '2025-01-05 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:14:18] Production.INFO: count ==1267 [2025-01-05 13:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:14:05 - End Time 2025-01-05 13:14:05 [2025-01-05 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180458', 'tblTempUsageDetail_20' ) start [2025-01-05 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180458', 'tblTempUsageDetail_20' ) end [2025-01-05 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180458', 'tblTempVendorCDR_20' ) start [2025-01-05 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180458', 'tblTempVendorCDR_20' ) end [2025-01-05 13:14:19] Production.INFO: ProcessCDR(1,14180458,1,1,2) [2025-01-05 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180458', 'tblTempUsageDetail_20' ) start [2025-01-05 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180458', 'tblTempUsageDetail_20' ) end [2025-01-05 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:14:23] Production.INFO: ==19042== Releasing lock... [2025-01-05 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:14:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:15:05 [end_date_ymd] => 2025-01-05 13:15:05 [RateCDR] => 1 ) [2025-01-05 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:15:05' and `end` < '2025-01-05 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:15:18] Production.INFO: count ==1278 [2025-01-05 13:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:15:05 - End Time 2025-01-05 13:15:05 [2025-01-05 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180463', 'tblTempUsageDetail_20' ) start [2025-01-05 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180463', 'tblTempUsageDetail_20' ) end [2025-01-05 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180463', 'tblTempVendorCDR_20' ) start [2025-01-05 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180463', 'tblTempVendorCDR_20' ) end [2025-01-05 13:15:18] Production.INFO: ProcessCDR(1,14180463,1,1,2) [2025-01-05 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180463', 'tblTempUsageDetail_20' ) start [2025-01-05 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180463', 'tblTempUsageDetail_20' ) end [2025-01-05 13:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:15:21] Production.INFO: ==19124== Releasing lock... [2025-01-05 13:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:15:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:16:05 [end_date_ymd] => 2025-01-05 13:16:05 [RateCDR] => 1 ) [2025-01-05 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:16:05' and `end` < '2025-01-05 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:16:18] Production.INFO: count ==1281 [2025-01-05 13:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:16:05 - End Time 2025-01-05 13:16:05 [2025-01-05 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180468', 'tblTempUsageDetail_20' ) start [2025-01-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180468', 'tblTempUsageDetail_20' ) end [2025-01-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180468', 'tblTempVendorCDR_20' ) start [2025-01-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180468', 'tblTempVendorCDR_20' ) end [2025-01-05 13:16:18] Production.INFO: ProcessCDR(1,14180468,1,1,2) [2025-01-05 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180468', 'tblTempUsageDetail_20' ) start [2025-01-05 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180468', 'tblTempUsageDetail_20' ) end [2025-01-05 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:16:23] Production.INFO: ==19205== Releasing lock... [2025-01-05 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:16:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:17:05 [end_date_ymd] => 2025-01-05 13:17:05 [RateCDR] => 1 ) [2025-01-05 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:17:05' and `end` < '2025-01-05 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:17:17] Production.INFO: count ==1281 [2025-01-05 13:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:17:05 - End Time 2025-01-05 13:17:05 [2025-01-05 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180473', 'tblTempUsageDetail_20' ) start [2025-01-05 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180473', 'tblTempUsageDetail_20' ) end [2025-01-05 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180473', 'tblTempVendorCDR_20' ) start [2025-01-05 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180473', 'tblTempVendorCDR_20' ) end [2025-01-05 13:17:18] Production.INFO: ProcessCDR(1,14180473,1,1,2) [2025-01-05 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180473', 'tblTempUsageDetail_20' ) start [2025-01-05 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180473', 'tblTempUsageDetail_20' ) end [2025-01-05 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:17:22] Production.INFO: ==19289== Releasing lock... [2025-01-05 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:17:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:18:05 [end_date_ymd] => 2025-01-05 13:18:05 [RateCDR] => 1 ) [2025-01-05 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:18:05' and `end` < '2025-01-05 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:18:18] Production.INFO: count ==1267 [2025-01-05 13:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:18:05 - End Time 2025-01-05 13:18:05 [2025-01-05 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180478', 'tblTempUsageDetail_20' ) start [2025-01-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180478', 'tblTempUsageDetail_20' ) end [2025-01-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180478', 'tblTempVendorCDR_20' ) start [2025-01-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180478', 'tblTempVendorCDR_20' ) end [2025-01-05 13:18:18] Production.INFO: ProcessCDR(1,14180478,1,1,2) [2025-01-05 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180478', 'tblTempUsageDetail_20' ) start [2025-01-05 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180478', 'tblTempUsageDetail_20' ) end [2025-01-05 13:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:18:21] Production.INFO: ==19369== Releasing lock... [2025-01-05 13:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:18:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:19:05 [end_date_ymd] => 2025-01-05 13:19:05 [RateCDR] => 1 ) [2025-01-05 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:19:05' and `end` < '2025-01-05 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:19:18] Production.INFO: count ==1266 [2025-01-05 13:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:19:05 - End Time 2025-01-05 13:19:05 [2025-01-05 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180483', 'tblTempUsageDetail_20' ) start [2025-01-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180483', 'tblTempUsageDetail_20' ) end [2025-01-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180483', 'tblTempVendorCDR_20' ) start [2025-01-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180483', 'tblTempVendorCDR_20' ) end [2025-01-05 13:19:19] Production.INFO: ProcessCDR(1,14180483,1,1,2) [2025-01-05 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180483', 'tblTempUsageDetail_20' ) start [2025-01-05 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180483', 'tblTempUsageDetail_20' ) end [2025-01-05 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:19:22] Production.INFO: ==19453== Releasing lock... [2025-01-05 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:20:05 [end_date_ymd] => 2025-01-05 13:20:05 [RateCDR] => 1 ) [2025-01-05 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:20:05' and `end` < '2025-01-05 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:20:18] Production.INFO: count ==1268 [2025-01-05 13:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:20:05 - End Time 2025-01-05 13:20:05 [2025-01-05 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180489', 'tblTempUsageDetail_20' ) start [2025-01-05 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180489', 'tblTempUsageDetail_20' ) end [2025-01-05 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180489', 'tblTempVendorCDR_20' ) start [2025-01-05 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180489', 'tblTempVendorCDR_20' ) end [2025-01-05 13:20:18] Production.INFO: ProcessCDR(1,14180489,1,1,2) [2025-01-05 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180489', 'tblTempUsageDetail_20' ) start [2025-01-05 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180489', 'tblTempUsageDetail_20' ) end [2025-01-05 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:20:23] Production.INFO: ==19534== Releasing lock... [2025-01-05 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:20:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:21:05 [end_date_ymd] => 2025-01-05 13:21:05 [RateCDR] => 1 ) [2025-01-05 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:21:05' and `end` < '2025-01-05 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:21:19] Production.INFO: count ==1284 [2025-01-05 13:21:20] Production.ERROR: pbx CDR StartTime 2025-01-05 10:21:05 - End Time 2025-01-05 13:21:05 [2025-01-05 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180494', 'tblTempUsageDetail_20' ) start [2025-01-05 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180494', 'tblTempUsageDetail_20' ) end [2025-01-05 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180494', 'tblTempVendorCDR_20' ) start [2025-01-05 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180494', 'tblTempVendorCDR_20' ) end [2025-01-05 13:21:20] Production.INFO: ProcessCDR(1,14180494,1,1,2) [2025-01-05 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180494', 'tblTempUsageDetail_20' ) start [2025-01-05 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180494', 'tblTempUsageDetail_20' ) end [2025-01-05 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:21:23] Production.INFO: ==19621== Releasing lock... [2025-01-05 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:21:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:22:04 [end_date_ymd] => 2025-01-05 13:22:04 [RateCDR] => 1 ) [2025-01-05 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:22:04' and `end` < '2025-01-05 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:22:18] Production.INFO: count ==1277 [2025-01-05 13:22:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:22:04 - End Time 2025-01-05 13:22:04 [2025-01-05 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180499', 'tblTempUsageDetail_20' ) start [2025-01-05 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180499', 'tblTempUsageDetail_20' ) end [2025-01-05 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180499', 'tblTempVendorCDR_20' ) start [2025-01-05 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180499', 'tblTempVendorCDR_20' ) end [2025-01-05 13:22:19] Production.INFO: ProcessCDR(1,14180499,1,1,2) [2025-01-05 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180499', 'tblTempUsageDetail_20' ) start [2025-01-05 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180499', 'tblTempUsageDetail_20' ) end [2025-01-05 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:22:22] Production.INFO: ==19706== Releasing lock... [2025-01-05 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:23:05 [end_date_ymd] => 2025-01-05 13:23:05 [RateCDR] => 1 ) [2025-01-05 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:23:05' and `end` < '2025-01-05 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:23:18] Production.INFO: count ==1278 [2025-01-05 13:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:23:05 - End Time 2025-01-05 13:23:05 [2025-01-05 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180504', 'tblTempUsageDetail_20' ) start [2025-01-05 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180504', 'tblTempUsageDetail_20' ) end [2025-01-05 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180504', 'tblTempVendorCDR_20' ) start [2025-01-05 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180504', 'tblTempVendorCDR_20' ) end [2025-01-05 13:23:18] Production.INFO: ProcessCDR(1,14180504,1,1,2) [2025-01-05 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180504', 'tblTempUsageDetail_20' ) start [2025-01-05 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180504', 'tblTempUsageDetail_20' ) end [2025-01-05 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:23:23] Production.INFO: ==19789== Releasing lock... [2025-01-05 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:23:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:24:05 [end_date_ymd] => 2025-01-05 13:24:05 [RateCDR] => 1 ) [2025-01-05 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:24:05' and `end` < '2025-01-05 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:24:18] Production.INFO: count ==1278 [2025-01-05 13:24:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:24:05 - End Time 2025-01-05 13:24:05 [2025-01-05 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180509', 'tblTempUsageDetail_20' ) start [2025-01-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180509', 'tblTempUsageDetail_20' ) end [2025-01-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180509', 'tblTempVendorCDR_20' ) start [2025-01-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180509', 'tblTempVendorCDR_20' ) end [2025-01-05 13:24:19] Production.INFO: ProcessCDR(1,14180509,1,1,2) [2025-01-05 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180509', 'tblTempUsageDetail_20' ) start [2025-01-05 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180509', 'tblTempUsageDetail_20' ) end [2025-01-05 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:24:22] Production.INFO: ==19914== Releasing lock... [2025-01-05 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:25:05 [end_date_ymd] => 2025-01-05 13:25:05 [RateCDR] => 1 ) [2025-01-05 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:25:05' and `end` < '2025-01-05 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:25:17] Production.INFO: count ==1277 [2025-01-05 13:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:25:05 - End Time 2025-01-05 13:25:05 [2025-01-05 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180514', 'tblTempUsageDetail_20' ) start [2025-01-05 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180514', 'tblTempUsageDetail_20' ) end [2025-01-05 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180514', 'tblTempVendorCDR_20' ) start [2025-01-05 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180514', 'tblTempVendorCDR_20' ) end [2025-01-05 13:25:18] Production.INFO: ProcessCDR(1,14180514,1,1,2) [2025-01-05 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180514', 'tblTempUsageDetail_20' ) start [2025-01-05 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180514', 'tblTempUsageDetail_20' ) end [2025-01-05 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:25:21] Production.INFO: ==19997== Releasing lock... [2025-01-05 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:25:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:26:04 [end_date_ymd] => 2025-01-05 13:26:04 [RateCDR] => 1 ) [2025-01-05 13:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:26:04' and `end` < '2025-01-05 13:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:26:17] Production.INFO: count ==1278 [2025-01-05 13:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:26:04 - End Time 2025-01-05 13:26:04 [2025-01-05 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180519', 'tblTempUsageDetail_20' ) start [2025-01-05 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180519', 'tblTempUsageDetail_20' ) end [2025-01-05 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180519', 'tblTempVendorCDR_20' ) start [2025-01-05 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180519', 'tblTempVendorCDR_20' ) end [2025-01-05 13:26:18] Production.INFO: ProcessCDR(1,14180519,1,1,2) [2025-01-05 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180519', 'tblTempUsageDetail_20' ) start [2025-01-05 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180519', 'tblTempUsageDetail_20' ) end [2025-01-05 13:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:26:21] Production.INFO: ==20073== Releasing lock... [2025-01-05 13:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:27:05 [end_date_ymd] => 2025-01-05 13:27:05 [RateCDR] => 1 ) [2025-01-05 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:27:05' and `end` < '2025-01-05 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:27:18] Production.INFO: count ==1277 [2025-01-05 13:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:27:05 - End Time 2025-01-05 13:27:05 [2025-01-05 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180524', 'tblTempUsageDetail_20' ) start [2025-01-05 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180524', 'tblTempUsageDetail_20' ) end [2025-01-05 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180524', 'tblTempVendorCDR_20' ) start [2025-01-05 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180524', 'tblTempVendorCDR_20' ) end [2025-01-05 13:27:18] Production.INFO: ProcessCDR(1,14180524,1,1,2) [2025-01-05 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180524', 'tblTempUsageDetail_20' ) start [2025-01-05 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180524', 'tblTempUsageDetail_20' ) end [2025-01-05 13:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:27:21] Production.INFO: ==20156== Releasing lock... [2025-01-05 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:27:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:28:05 [end_date_ymd] => 2025-01-05 13:28:05 [RateCDR] => 1 ) [2025-01-05 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:28:05' and `end` < '2025-01-05 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:28:20] Production.INFO: count ==1264 [2025-01-05 13:28:20] Production.ERROR: pbx CDR StartTime 2025-01-05 10:28:05 - End Time 2025-01-05 13:28:05 [2025-01-05 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180529', 'tblTempUsageDetail_20' ) start [2025-01-05 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180529', 'tblTempUsageDetail_20' ) end [2025-01-05 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180529', 'tblTempVendorCDR_20' ) start [2025-01-05 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180529', 'tblTempVendorCDR_20' ) end [2025-01-05 13:28:20] Production.INFO: ProcessCDR(1,14180529,1,1,2) [2025-01-05 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180529', 'tblTempUsageDetail_20' ) start [2025-01-05 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180529', 'tblTempUsageDetail_20' ) end [2025-01-05 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:28:24] Production.INFO: ==20239== Releasing lock... [2025-01-05 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:28:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:29:04 [end_date_ymd] => 2025-01-05 13:29:04 [RateCDR] => 1 ) [2025-01-05 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:29:04' and `end` < '2025-01-05 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:29:19] Production.INFO: count ==1254 [2025-01-05 13:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:29:04 - End Time 2025-01-05 13:29:04 [2025-01-05 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180534', 'tblTempUsageDetail_20' ) start [2025-01-05 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180534', 'tblTempUsageDetail_20' ) end [2025-01-05 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180534', 'tblTempVendorCDR_20' ) start [2025-01-05 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180534', 'tblTempVendorCDR_20' ) end [2025-01-05 13:29:19] Production.INFO: ProcessCDR(1,14180534,1,1,2) [2025-01-05 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180534', 'tblTempUsageDetail_20' ) start [2025-01-05 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180534', 'tblTempUsageDetail_20' ) end [2025-01-05 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:29:23] Production.INFO: ==20319== Releasing lock... [2025-01-05 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:29:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:30:05 [end_date_ymd] => 2025-01-05 13:30:05 [RateCDR] => 1 ) [2025-01-05 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:30:05' and `end` < '2025-01-05 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:30:18] Production.INFO: count ==1254 [2025-01-05 13:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:30:05 - End Time 2025-01-05 13:30:05 [2025-01-05 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180539', 'tblTempUsageDetail_20' ) start [2025-01-05 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180539', 'tblTempUsageDetail_20' ) end [2025-01-05 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180539', 'tblTempVendorCDR_20' ) start [2025-01-05 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180539', 'tblTempVendorCDR_20' ) end [2025-01-05 13:30:18] Production.INFO: ProcessCDR(1,14180539,1,1,2) [2025-01-05 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180539', 'tblTempUsageDetail_20' ) start [2025-01-05 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180539', 'tblTempUsageDetail_20' ) end [2025-01-05 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:30:22] Production.INFO: ==20407== Releasing lock... [2025-01-05 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:31:04 [end_date_ymd] => 2025-01-05 13:31:04 [RateCDR] => 1 ) [2025-01-05 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:31:04' and `end` < '2025-01-05 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:31:17] Production.INFO: count ==1275 [2025-01-05 13:31:17] Production.ERROR: pbx CDR StartTime 2025-01-05 10:31:04 - End Time 2025-01-05 13:31:04 [2025-01-05 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180542', 'tblTempUsageDetail_20' ) start [2025-01-05 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180542', 'tblTempUsageDetail_20' ) end [2025-01-05 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180542', 'tblTempVendorCDR_20' ) start [2025-01-05 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180542', 'tblTempVendorCDR_20' ) end [2025-01-05 13:31:17] Production.INFO: ProcessCDR(1,14180542,1,1,2) [2025-01-05 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180542', 'tblTempUsageDetail_20' ) start [2025-01-05 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180542', 'tblTempUsageDetail_20' ) end [2025-01-05 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:31:22] Production.INFO: ==20494== Releasing lock... [2025-01-05 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:31:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:32:05 [end_date_ymd] => 2025-01-05 13:32:05 [RateCDR] => 1 ) [2025-01-05 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:32:05' and `end` < '2025-01-05 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:32:17] Production.INFO: count ==1274 [2025-01-05 13:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:32:05 - End Time 2025-01-05 13:32:05 [2025-01-05 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180550', 'tblTempUsageDetail_20' ) start [2025-01-05 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180550', 'tblTempUsageDetail_20' ) end [2025-01-05 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180550', 'tblTempVendorCDR_20' ) start [2025-01-05 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180550', 'tblTempVendorCDR_20' ) end [2025-01-05 13:32:18] Production.INFO: ProcessCDR(1,14180550,1,1,2) [2025-01-05 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180550', 'tblTempUsageDetail_20' ) start [2025-01-05 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180550', 'tblTempUsageDetail_20' ) end [2025-01-05 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:32:22] Production.INFO: ==20576== Releasing lock... [2025-01-05 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:32:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:33:04 [end_date_ymd] => 2025-01-05 13:33:04 [RateCDR] => 1 ) [2025-01-05 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:33:04' and `end` < '2025-01-05 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:33:17] Production.INFO: count ==1276 [2025-01-05 13:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:33:04 - End Time 2025-01-05 13:33:04 [2025-01-05 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180555', 'tblTempUsageDetail_20' ) start [2025-01-05 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180555', 'tblTempUsageDetail_20' ) end [2025-01-05 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180555', 'tblTempVendorCDR_20' ) start [2025-01-05 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180555', 'tblTempVendorCDR_20' ) end [2025-01-05 13:33:18] Production.INFO: ProcessCDR(1,14180555,1,1,2) [2025-01-05 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180555', 'tblTempUsageDetail_20' ) start [2025-01-05 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180555', 'tblTempUsageDetail_20' ) end [2025-01-05 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:33:22] Production.INFO: ==20661== Releasing lock... [2025-01-05 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:33:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:34:05 [end_date_ymd] => 2025-01-05 13:34:05 [RateCDR] => 1 ) [2025-01-05 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:34:05' and `end` < '2025-01-05 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:34:18] Production.INFO: count ==1274 [2025-01-05 13:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:34:05 - End Time 2025-01-05 13:34:05 [2025-01-05 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180560', 'tblTempUsageDetail_20' ) start [2025-01-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180560', 'tblTempUsageDetail_20' ) end [2025-01-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180560', 'tblTempVendorCDR_20' ) start [2025-01-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180560', 'tblTempVendorCDR_20' ) end [2025-01-05 13:34:19] Production.INFO: ProcessCDR(1,14180560,1,1,2) [2025-01-05 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180560', 'tblTempUsageDetail_20' ) start [2025-01-05 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180560', 'tblTempUsageDetail_20' ) end [2025-01-05 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:34:23] Production.INFO: ==20748== Releasing lock... [2025-01-05 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:34:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:35:04 [end_date_ymd] => 2025-01-05 13:35:04 [RateCDR] => 1 ) [2025-01-05 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:35:04' and `end` < '2025-01-05 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:35:17] Production.INFO: count ==1276 [2025-01-05 13:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:35:04 - End Time 2025-01-05 13:35:04 [2025-01-05 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180565', 'tblTempUsageDetail_20' ) start [2025-01-05 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180565', 'tblTempUsageDetail_20' ) end [2025-01-05 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180565', 'tblTempVendorCDR_20' ) start [2025-01-05 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180565', 'tblTempVendorCDR_20' ) end [2025-01-05 13:35:18] Production.INFO: ProcessCDR(1,14180565,1,1,2) [2025-01-05 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180565', 'tblTempUsageDetail_20' ) start [2025-01-05 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180565', 'tblTempUsageDetail_20' ) end [2025-01-05 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:35:22] Production.INFO: ==20831== Releasing lock... [2025-01-05 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:36:05 [end_date_ymd] => 2025-01-05 13:36:05 [RateCDR] => 1 ) [2025-01-05 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:36:05' and `end` < '2025-01-05 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:36:20] Production.INFO: count ==1285 [2025-01-05 13:36:20] Production.ERROR: pbx CDR StartTime 2025-01-05 10:36:05 - End Time 2025-01-05 13:36:05 [2025-01-05 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180570', 'tblTempUsageDetail_20' ) start [2025-01-05 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180570', 'tblTempUsageDetail_20' ) end [2025-01-05 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180570', 'tblTempVendorCDR_20' ) start [2025-01-05 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180570', 'tblTempVendorCDR_20' ) end [2025-01-05 13:36:20] Production.INFO: ProcessCDR(1,14180570,1,1,2) [2025-01-05 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180570', 'tblTempUsageDetail_20' ) start [2025-01-05 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180570', 'tblTempUsageDetail_20' ) end [2025-01-05 13:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:36:25] Production.INFO: ==20916== Releasing lock... [2025-01-05 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:36:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:37:05 [end_date_ymd] => 2025-01-05 13:37:05 [RateCDR] => 1 ) [2025-01-05 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:37:05' and `end` < '2025-01-05 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:37:18] Production.INFO: count ==1286 [2025-01-05 13:37:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:37:05 - End Time 2025-01-05 13:37:05 [2025-01-05 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180575', 'tblTempUsageDetail_20' ) start [2025-01-05 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180575', 'tblTempUsageDetail_20' ) end [2025-01-05 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180575', 'tblTempVendorCDR_20' ) start [2025-01-05 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180575', 'tblTempVendorCDR_20' ) end [2025-01-05 13:37:19] Production.INFO: ProcessCDR(1,14180575,1,1,2) [2025-01-05 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180575', 'tblTempUsageDetail_20' ) start [2025-01-05 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180575', 'tblTempUsageDetail_20' ) end [2025-01-05 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:37:23] Production.INFO: ==20999== Releasing lock... [2025-01-05 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:37:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:38:05 [end_date_ymd] => 2025-01-05 13:38:05 [RateCDR] => 1 ) [2025-01-05 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:38:05' and `end` < '2025-01-05 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:38:18] Production.INFO: count ==1288 [2025-01-05 13:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:38:05 - End Time 2025-01-05 13:38:05 [2025-01-05 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180580', 'tblTempUsageDetail_20' ) start [2025-01-05 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180580', 'tblTempUsageDetail_20' ) end [2025-01-05 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180580', 'tblTempVendorCDR_20' ) start [2025-01-05 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180580', 'tblTempVendorCDR_20' ) end [2025-01-05 13:38:18] Production.INFO: ProcessCDR(1,14180580,1,1,2) [2025-01-05 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180580', 'tblTempUsageDetail_20' ) start [2025-01-05 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180580', 'tblTempUsageDetail_20' ) end [2025-01-05 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:38:23] Production.INFO: ==21082== Releasing lock... [2025-01-05 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:39:05 [end_date_ymd] => 2025-01-05 13:39:05 [RateCDR] => 1 ) [2025-01-05 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:39:05' and `end` < '2025-01-05 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:39:18] Production.INFO: count ==1294 [2025-01-05 13:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:39:05 - End Time 2025-01-05 13:39:05 [2025-01-05 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180585', 'tblTempUsageDetail_20' ) start [2025-01-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180585', 'tblTempUsageDetail_20' ) end [2025-01-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180585', 'tblTempVendorCDR_20' ) start [2025-01-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180585', 'tblTempVendorCDR_20' ) end [2025-01-05 13:39:18] Production.INFO: ProcessCDR(1,14180585,1,1,2) [2025-01-05 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180585', 'tblTempUsageDetail_20' ) start [2025-01-05 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180585', 'tblTempUsageDetail_20' ) end [2025-01-05 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:39:21] Production.INFO: ==21164== Releasing lock... [2025-01-05 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:39:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:40:05 [end_date_ymd] => 2025-01-05 13:40:05 [RateCDR] => 1 ) [2025-01-05 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:40:05' and `end` < '2025-01-05 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:40:18] Production.INFO: count ==1298 [2025-01-05 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:40:05 - End Time 2025-01-05 13:40:05 [2025-01-05 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180590', 'tblTempUsageDetail_20' ) start [2025-01-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180590', 'tblTempUsageDetail_20' ) end [2025-01-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180590', 'tblTempVendorCDR_20' ) start [2025-01-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180590', 'tblTempVendorCDR_20' ) end [2025-01-05 13:40:19] Production.INFO: ProcessCDR(1,14180590,1,1,2) [2025-01-05 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180590', 'tblTempUsageDetail_20' ) start [2025-01-05 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180590', 'tblTempUsageDetail_20' ) end [2025-01-05 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:40:23] Production.INFO: ==21285== Releasing lock... [2025-01-05 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:40:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:41:05 [end_date_ymd] => 2025-01-05 13:41:05 [RateCDR] => 1 ) [2025-01-05 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:41:05' and `end` < '2025-01-05 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:41:18] Production.INFO: count ==1313 [2025-01-05 13:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:41:05 - End Time 2025-01-05 13:41:05 [2025-01-05 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180596', 'tblTempUsageDetail_20' ) start [2025-01-05 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180596', 'tblTempUsageDetail_20' ) end [2025-01-05 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180596', 'tblTempVendorCDR_20' ) start [2025-01-05 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180596', 'tblTempVendorCDR_20' ) end [2025-01-05 13:41:19] Production.INFO: ProcessCDR(1,14180596,1,1,2) [2025-01-05 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180596', 'tblTempUsageDetail_20' ) start [2025-01-05 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180596', 'tblTempUsageDetail_20' ) end [2025-01-05 13:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:41:23] Production.INFO: ==21373== Releasing lock... [2025-01-05 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:41:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:42:04 [end_date_ymd] => 2025-01-05 13:42:04 [RateCDR] => 1 ) [2025-01-05 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:42:04' and `end` < '2025-01-05 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:42:17] Production.INFO: count ==1315 [2025-01-05 13:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:42:04 - End Time 2025-01-05 13:42:04 [2025-01-05 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180601', 'tblTempUsageDetail_20' ) start [2025-01-05 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180601', 'tblTempUsageDetail_20' ) end [2025-01-05 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180601', 'tblTempVendorCDR_20' ) start [2025-01-05 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180601', 'tblTempVendorCDR_20' ) end [2025-01-05 13:42:18] Production.INFO: ProcessCDR(1,14180601,1,1,2) [2025-01-05 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180601', 'tblTempUsageDetail_20' ) start [2025-01-05 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180601', 'tblTempUsageDetail_20' ) end [2025-01-05 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:42:22] Production.INFO: ==21459== Releasing lock... [2025-01-05 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:42:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:43:05 [end_date_ymd] => 2025-01-05 13:43:05 [RateCDR] => 1 ) [2025-01-05 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:43:05' and `end` < '2025-01-05 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:43:20] Production.INFO: count ==1317 [2025-01-05 13:43:20] Production.ERROR: pbx CDR StartTime 2025-01-05 10:43:05 - End Time 2025-01-05 13:43:05 [2025-01-05 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180606', 'tblTempUsageDetail_20' ) start [2025-01-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180606', 'tblTempUsageDetail_20' ) end [2025-01-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180606', 'tblTempVendorCDR_20' ) start [2025-01-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180606', 'tblTempVendorCDR_20' ) end [2025-01-05 13:43:20] Production.INFO: ProcessCDR(1,14180606,1,1,2) [2025-01-05 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180606', 'tblTempUsageDetail_20' ) start [2025-01-05 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180606', 'tblTempUsageDetail_20' ) end [2025-01-05 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:43:23] Production.INFO: ==21544== Releasing lock... [2025-01-05 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:43:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:44:05 [end_date_ymd] => 2025-01-05 13:44:05 [RateCDR] => 1 ) [2025-01-05 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:44:05' and `end` < '2025-01-05 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:44:18] Production.INFO: count ==1316 [2025-01-05 13:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:44:05 - End Time 2025-01-05 13:44:05 [2025-01-05 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180611', 'tblTempUsageDetail_20' ) start [2025-01-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180611', 'tblTempUsageDetail_20' ) end [2025-01-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180611', 'tblTempVendorCDR_20' ) start [2025-01-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180611', 'tblTempVendorCDR_20' ) end [2025-01-05 13:44:18] Production.INFO: ProcessCDR(1,14180611,1,1,2) [2025-01-05 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180611', 'tblTempUsageDetail_20' ) start [2025-01-05 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180611', 'tblTempUsageDetail_20' ) end [2025-01-05 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:44:21] Production.INFO: ==21628== Releasing lock... [2025-01-05 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:44:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:45:05 [end_date_ymd] => 2025-01-05 13:45:05 [RateCDR] => 1 ) [2025-01-05 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:45:05' and `end` < '2025-01-05 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:45:18] Production.INFO: count ==1316 [2025-01-05 13:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:45:05 - End Time 2025-01-05 13:45:05 [2025-01-05 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180616', 'tblTempUsageDetail_20' ) start [2025-01-05 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180616', 'tblTempUsageDetail_20' ) end [2025-01-05 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180616', 'tblTempVendorCDR_20' ) start [2025-01-05 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180616', 'tblTempVendorCDR_20' ) end [2025-01-05 13:45:18] Production.INFO: ProcessCDR(1,14180616,1,1,2) [2025-01-05 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180616', 'tblTempUsageDetail_20' ) start [2025-01-05 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180616', 'tblTempUsageDetail_20' ) end [2025-01-05 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:45:22] Production.INFO: ==21710== Releasing lock... [2025-01-05 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:45:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:46:05 [end_date_ymd] => 2025-01-05 13:46:05 [RateCDR] => 1 ) [2025-01-05 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:46:05' and `end` < '2025-01-05 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:46:18] Production.INFO: count ==1315 [2025-01-05 13:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:46:05 - End Time 2025-01-05 13:46:05 [2025-01-05 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180621', 'tblTempUsageDetail_20' ) start [2025-01-05 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180621', 'tblTempUsageDetail_20' ) end [2025-01-05 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180621', 'tblTempVendorCDR_20' ) start [2025-01-05 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180621', 'tblTempVendorCDR_20' ) end [2025-01-05 13:46:18] Production.INFO: ProcessCDR(1,14180621,1,1,2) [2025-01-05 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180621', 'tblTempUsageDetail_20' ) start [2025-01-05 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180621', 'tblTempUsageDetail_20' ) end [2025-01-05 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:46:23] Production.INFO: ==21793== Releasing lock... [2025-01-05 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:46:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:47:05 [end_date_ymd] => 2025-01-05 13:47:05 [RateCDR] => 1 ) [2025-01-05 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:47:05' and `end` < '2025-01-05 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:47:18] Production.INFO: count ==1313 [2025-01-05 13:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:47:05 - End Time 2025-01-05 13:47:05 [2025-01-05 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180626', 'tblTempUsageDetail_20' ) start [2025-01-05 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180626', 'tblTempUsageDetail_20' ) end [2025-01-05 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180626', 'tblTempVendorCDR_20' ) start [2025-01-05 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180626', 'tblTempVendorCDR_20' ) end [2025-01-05 13:47:18] Production.INFO: ProcessCDR(1,14180626,1,1,2) [2025-01-05 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180626', 'tblTempUsageDetail_20' ) start [2025-01-05 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180626', 'tblTempUsageDetail_20' ) end [2025-01-05 13:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:47:21] Production.INFO: ==21878== Releasing lock... [2025-01-05 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:47:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:48:05 [end_date_ymd] => 2025-01-05 13:48:05 [RateCDR] => 1 ) [2025-01-05 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:48:05' and `end` < '2025-01-05 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:48:17] Production.INFO: count ==1311 [2025-01-05 13:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:48:05 - End Time 2025-01-05 13:48:05 [2025-01-05 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180631', 'tblTempUsageDetail_20' ) start [2025-01-05 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180631', 'tblTempUsageDetail_20' ) end [2025-01-05 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180631', 'tblTempVendorCDR_20' ) start [2025-01-05 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180631', 'tblTempVendorCDR_20' ) end [2025-01-05 13:48:18] Production.INFO: ProcessCDR(1,14180631,1,1,2) [2025-01-05 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180631', 'tblTempUsageDetail_20' ) start [2025-01-05 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180631', 'tblTempUsageDetail_20' ) end [2025-01-05 13:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:48:21] Production.INFO: ==21962== Releasing lock... [2025-01-05 13:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:48:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:49:05 [end_date_ymd] => 2025-01-05 13:49:05 [RateCDR] => 1 ) [2025-01-05 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:49:05' and `end` < '2025-01-05 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:49:18] Production.INFO: count ==1310 [2025-01-05 13:49:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:49:05 - End Time 2025-01-05 13:49:05 [2025-01-05 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180636', 'tblTempUsageDetail_20' ) start [2025-01-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180636', 'tblTempUsageDetail_20' ) end [2025-01-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180636', 'tblTempVendorCDR_20' ) start [2025-01-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180636', 'tblTempVendorCDR_20' ) end [2025-01-05 13:49:19] Production.INFO: ProcessCDR(1,14180636,1,1,2) [2025-01-05 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180636', 'tblTempUsageDetail_20' ) start [2025-01-05 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180636', 'tblTempUsageDetail_20' ) end [2025-01-05 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:49:22] Production.INFO: ==22043== Releasing lock... [2025-01-05 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:49:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:50:05 [end_date_ymd] => 2025-01-05 13:50:05 [RateCDR] => 1 ) [2025-01-05 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:50:05' and `end` < '2025-01-05 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:50:18] Production.INFO: count ==1317 [2025-01-05 13:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:50:05 - End Time 2025-01-05 13:50:05 [2025-01-05 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180641', 'tblTempUsageDetail_20' ) start [2025-01-05 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180641', 'tblTempUsageDetail_20' ) end [2025-01-05 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180641', 'tblTempVendorCDR_20' ) start [2025-01-05 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180641', 'tblTempVendorCDR_20' ) end [2025-01-05 13:50:18] Production.INFO: ProcessCDR(1,14180641,1,1,2) [2025-01-05 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180641', 'tblTempUsageDetail_20' ) start [2025-01-05 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180641', 'tblTempUsageDetail_20' ) end [2025-01-05 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:50:22] Production.INFO: ==22126== Releasing lock... [2025-01-05 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:50:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:51:05 [end_date_ymd] => 2025-01-05 13:51:05 [RateCDR] => 1 ) [2025-01-05 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:51:05' and `end` < '2025-01-05 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:51:18] Production.INFO: count ==1354 [2025-01-05 13:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:51:05 - End Time 2025-01-05 13:51:05 [2025-01-05 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180647', 'tblTempUsageDetail_20' ) start [2025-01-05 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180647', 'tblTempUsageDetail_20' ) end [2025-01-05 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180647', 'tblTempVendorCDR_20' ) start [2025-01-05 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180647', 'tblTempVendorCDR_20' ) end [2025-01-05 13:51:19] Production.INFO: ProcessCDR(1,14180647,1,1,2) [2025-01-05 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180647', 'tblTempUsageDetail_20' ) start [2025-01-05 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180647', 'tblTempUsageDetail_20' ) end [2025-01-05 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:51:22] Production.INFO: ==22211== Releasing lock... [2025-01-05 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:52:05 [end_date_ymd] => 2025-01-05 13:52:05 [RateCDR] => 1 ) [2025-01-05 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:52:05' and `end` < '2025-01-05 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:52:19] Production.INFO: count ==1354 [2025-01-05 13:52:20] Production.ERROR: pbx CDR StartTime 2025-01-05 10:52:05 - End Time 2025-01-05 13:52:05 [2025-01-05 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180652', 'tblTempUsageDetail_20' ) start [2025-01-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180652', 'tblTempUsageDetail_20' ) end [2025-01-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180652', 'tblTempVendorCDR_20' ) start [2025-01-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180652', 'tblTempVendorCDR_20' ) end [2025-01-05 13:52:20] Production.INFO: ProcessCDR(1,14180652,1,1,2) [2025-01-05 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180652', 'tblTempUsageDetail_20' ) start [2025-01-05 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180652', 'tblTempUsageDetail_20' ) end [2025-01-05 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:52:24] Production.INFO: ==22291== Releasing lock... [2025-01-05 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:52:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:53:05 [end_date_ymd] => 2025-01-05 13:53:05 [RateCDR] => 1 ) [2025-01-05 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:53:05' and `end` < '2025-01-05 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:53:18] Production.INFO: count ==1340 [2025-01-05 13:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:53:05 - End Time 2025-01-05 13:53:05 [2025-01-05 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180657', 'tblTempUsageDetail_20' ) start [2025-01-05 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180657', 'tblTempUsageDetail_20' ) end [2025-01-05 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180657', 'tblTempVendorCDR_20' ) start [2025-01-05 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180657', 'tblTempVendorCDR_20' ) end [2025-01-05 13:53:18] Production.INFO: ProcessCDR(1,14180657,1,1,2) [2025-01-05 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180657', 'tblTempUsageDetail_20' ) start [2025-01-05 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180657', 'tblTempUsageDetail_20' ) end [2025-01-05 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:53:21] Production.INFO: ==22371== Releasing lock... [2025-01-05 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:53:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:54:05 [end_date_ymd] => 2025-01-05 13:54:05 [RateCDR] => 1 ) [2025-01-05 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:54:05' and `end` < '2025-01-05 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:54:18] Production.INFO: count ==1341 [2025-01-05 13:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:54:05 - End Time 2025-01-05 13:54:05 [2025-01-05 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180662', 'tblTempUsageDetail_20' ) start [2025-01-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180662', 'tblTempUsageDetail_20' ) end [2025-01-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180662', 'tblTempVendorCDR_20' ) start [2025-01-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180662', 'tblTempVendorCDR_20' ) end [2025-01-05 13:54:18] Production.INFO: ProcessCDR(1,14180662,1,1,2) [2025-01-05 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180662', 'tblTempUsageDetail_20' ) start [2025-01-05 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180662', 'tblTempUsageDetail_20' ) end [2025-01-05 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:54:23] Production.INFO: ==22453== Releasing lock... [2025-01-05 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:54:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:55:05 [end_date_ymd] => 2025-01-05 13:55:05 [RateCDR] => 1 ) [2025-01-05 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:55:05' and `end` < '2025-01-05 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:55:21] Production.INFO: count ==1339 [2025-01-05 13:55:21] Production.ERROR: pbx CDR StartTime 2025-01-05 10:55:05 - End Time 2025-01-05 13:55:05 [2025-01-05 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180667', 'tblTempUsageDetail_20' ) start [2025-01-05 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180667', 'tblTempUsageDetail_20' ) end [2025-01-05 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180667', 'tblTempVendorCDR_20' ) start [2025-01-05 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180667', 'tblTempVendorCDR_20' ) end [2025-01-05 13:55:21] Production.INFO: ProcessCDR(1,14180667,1,1,2) [2025-01-05 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180667', 'tblTempUsageDetail_20' ) start [2025-01-05 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180667', 'tblTempUsageDetail_20' ) end [2025-01-05 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:55:24] Production.INFO: ==22535== Releasing lock... [2025-01-05 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:55:24] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:56:06 [end_date_ymd] => 2025-01-05 13:56:06 [RateCDR] => 1 ) [2025-01-05 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:56:06' and `end` < '2025-01-05 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:56:18] Production.INFO: count ==1337 [2025-01-05 13:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:56:06 - End Time 2025-01-05 13:56:06 [2025-01-05 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180672', 'tblTempUsageDetail_20' ) start [2025-01-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180672', 'tblTempUsageDetail_20' ) end [2025-01-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180672', 'tblTempVendorCDR_20' ) start [2025-01-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180672', 'tblTempVendorCDR_20' ) end [2025-01-05 13:56:19] Production.INFO: ProcessCDR(1,14180672,1,1,2) [2025-01-05 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180672', 'tblTempUsageDetail_20' ) start [2025-01-05 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180672', 'tblTempUsageDetail_20' ) end [2025-01-05 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:56:22] Production.INFO: ==22654== Releasing lock... [2025-01-05 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:56:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:57:05 [end_date_ymd] => 2025-01-05 13:57:05 [RateCDR] => 1 ) [2025-01-05 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:57:05' and `end` < '2025-01-05 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:57:18] Production.INFO: count ==1340 [2025-01-05 13:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:57:05 - End Time 2025-01-05 13:57:05 [2025-01-05 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180677', 'tblTempUsageDetail_20' ) start [2025-01-05 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180677', 'tblTempUsageDetail_20' ) end [2025-01-05 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180677', 'tblTempVendorCDR_20' ) start [2025-01-05 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180677', 'tblTempVendorCDR_20' ) end [2025-01-05 13:57:18] Production.INFO: ProcessCDR(1,14180677,1,1,2) [2025-01-05 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180677', 'tblTempUsageDetail_20' ) start [2025-01-05 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180677', 'tblTempUsageDetail_20' ) end [2025-01-05 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:57:23] Production.INFO: ==22738== Releasing lock... [2025-01-05 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:57:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:58:05 [end_date_ymd] => 2025-01-05 13:58:05 [RateCDR] => 1 ) [2025-01-05 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:58:05' and `end` < '2025-01-05 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:58:18] Production.INFO: count ==1326 [2025-01-05 13:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 10:58:05 - End Time 2025-01-05 13:58:05 [2025-01-05 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180682', 'tblTempUsageDetail_20' ) start [2025-01-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180682', 'tblTempUsageDetail_20' ) end [2025-01-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180682', 'tblTempVendorCDR_20' ) start [2025-01-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180682', 'tblTempVendorCDR_20' ) end [2025-01-05 13:58:19] Production.INFO: ProcessCDR(1,14180682,1,1,2) [2025-01-05 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180682', 'tblTempUsageDetail_20' ) start [2025-01-05 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180682', 'tblTempUsageDetail_20' ) end [2025-01-05 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:58:23] Production.INFO: ==22820== Releasing lock... [2025-01-05 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:58:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 10:59:05 [end_date_ymd] => 2025-01-05 13:59:05 [RateCDR] => 1 ) [2025-01-05 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 10:59:05' and `end` < '2025-01-05 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 13:59:18] Production.INFO: count ==1313 [2025-01-05 13:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 10:59:05 - End Time 2025-01-05 13:59:05 [2025-01-05 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180687', 'tblTempUsageDetail_20' ) start [2025-01-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180687', 'tblTempUsageDetail_20' ) end [2025-01-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180687', 'tblTempVendorCDR_20' ) start [2025-01-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180687', 'tblTempVendorCDR_20' ) end [2025-01-05 13:59:18] Production.INFO: ProcessCDR(1,14180687,1,1,2) [2025-01-05 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180687', 'tblTempUsageDetail_20' ) start [2025-01-05 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180687', 'tblTempUsageDetail_20' ) end [2025-01-05 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 13:59:23] Production.INFO: ==22905== Releasing lock... [2025-01-05 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 13:59:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:00:06 [end_date_ymd] => 2025-01-05 14:00:06 [RateCDR] => 1 ) [2025-01-05 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:00:06' and `end` < '2025-01-05 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:00:19] Production.INFO: count ==1313 [2025-01-05 14:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:00:06 - End Time 2025-01-05 14:00:06 [2025-01-05 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180693', 'tblTempUsageDetail_20' ) start [2025-01-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180693', 'tblTempUsageDetail_20' ) end [2025-01-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180693', 'tblTempVendorCDR_20' ) start [2025-01-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180693', 'tblTempVendorCDR_20' ) end [2025-01-05 14:00:19] Production.INFO: ProcessCDR(1,14180693,1,1,2) [2025-01-05 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180693', 'tblTempUsageDetail_20' ) start [2025-01-05 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180693', 'tblTempUsageDetail_20' ) end [2025-01-05 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:00:23] Production.INFO: ==22989== Releasing lock... [2025-01-05 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:01:05 [end_date_ymd] => 2025-01-05 14:01:05 [RateCDR] => 1 ) [2025-01-05 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:01:05' and `end` < '2025-01-05 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:01:18] Production.INFO: count ==1304 [2025-01-05 14:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:01:05 - End Time 2025-01-05 14:01:05 [2025-01-05 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180698', 'tblTempUsageDetail_20' ) start [2025-01-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180698', 'tblTempUsageDetail_20' ) end [2025-01-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180698', 'tblTempVendorCDR_20' ) start [2025-01-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180698', 'tblTempVendorCDR_20' ) end [2025-01-05 14:01:18] Production.INFO: ProcessCDR(1,14180698,1,1,2) [2025-01-05 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180698', 'tblTempUsageDetail_20' ) start [2025-01-05 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180698', 'tblTempUsageDetail_20' ) end [2025-01-05 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:01:23] Production.INFO: ==23090== Releasing lock... [2025-01-05 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:01:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:02:05 [end_date_ymd] => 2025-01-05 14:02:05 [RateCDR] => 1 ) [2025-01-05 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:02:05' and `end` < '2025-01-05 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:02:20] Production.INFO: count ==1303 [2025-01-05 14:02:20] Production.ERROR: pbx CDR StartTime 2025-01-05 11:02:05 - End Time 2025-01-05 14:02:05 [2025-01-05 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180703', 'tblTempUsageDetail_20' ) start [2025-01-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180703', 'tblTempUsageDetail_20' ) end [2025-01-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180703', 'tblTempVendorCDR_20' ) start [2025-01-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180703', 'tblTempVendorCDR_20' ) end [2025-01-05 14:02:21] Production.INFO: ProcessCDR(1,14180703,1,1,2) [2025-01-05 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180703', 'tblTempUsageDetail_20' ) start [2025-01-05 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180703', 'tblTempUsageDetail_20' ) end [2025-01-05 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:02:24] Production.INFO: ==23179== Releasing lock... [2025-01-05 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:02:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:03:05 [end_date_ymd] => 2025-01-05 14:03:05 [RateCDR] => 1 ) [2025-01-05 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:03:05' and `end` < '2025-01-05 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:03:18] Production.INFO: count ==1286 [2025-01-05 14:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:03:05 - End Time 2025-01-05 14:03:05 [2025-01-05 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180708', 'tblTempUsageDetail_20' ) start [2025-01-05 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180708', 'tblTempUsageDetail_20' ) end [2025-01-05 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180708', 'tblTempVendorCDR_20' ) start [2025-01-05 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180708', 'tblTempVendorCDR_20' ) end [2025-01-05 14:03:18] Production.INFO: ProcessCDR(1,14180708,1,1,2) [2025-01-05 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180708', 'tblTempUsageDetail_20' ) start [2025-01-05 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180708', 'tblTempUsageDetail_20' ) end [2025-01-05 14:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:03:21] Production.INFO: ==23261== Releasing lock... [2025-01-05 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:03:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:04:05 [end_date_ymd] => 2025-01-05 14:04:05 [RateCDR] => 1 ) [2025-01-05 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:04:05' and `end` < '2025-01-05 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:04:18] Production.INFO: count ==1300 [2025-01-05 14:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:04:05 - End Time 2025-01-05 14:04:05 [2025-01-05 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180713', 'tblTempUsageDetail_20' ) start [2025-01-05 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180713', 'tblTempUsageDetail_20' ) end [2025-01-05 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180713', 'tblTempVendorCDR_20' ) start [2025-01-05 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180713', 'tblTempVendorCDR_20' ) end [2025-01-05 14:04:18] Production.INFO: ProcessCDR(1,14180713,1,1,2) [2025-01-05 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180713', 'tblTempUsageDetail_20' ) start [2025-01-05 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180713', 'tblTempUsageDetail_20' ) end [2025-01-05 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:04:22] Production.INFO: ==23347== Releasing lock... [2025-01-05 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:04:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:05:05 [end_date_ymd] => 2025-01-05 14:05:05 [RateCDR] => 1 ) [2025-01-05 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:05:05' and `end` < '2025-01-05 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:05:18] Production.INFO: count ==1291 [2025-01-05 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:05:05 - End Time 2025-01-05 14:05:05 [2025-01-05 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180718', 'tblTempUsageDetail_20' ) start [2025-01-05 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180718', 'tblTempUsageDetail_20' ) end [2025-01-05 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180718', 'tblTempVendorCDR_20' ) start [2025-01-05 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180718', 'tblTempVendorCDR_20' ) end [2025-01-05 14:05:18] Production.INFO: ProcessCDR(1,14180718,1,1,2) [2025-01-05 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180718', 'tblTempUsageDetail_20' ) start [2025-01-05 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180718', 'tblTempUsageDetail_20' ) end [2025-01-05 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:05:22] Production.INFO: ==23431== Releasing lock... [2025-01-05 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:06:05 [end_date_ymd] => 2025-01-05 14:06:05 [RateCDR] => 1 ) [2025-01-05 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:06:05' and `end` < '2025-01-05 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:06:18] Production.INFO: count ==1291 [2025-01-05 14:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:06:05 - End Time 2025-01-05 14:06:05 [2025-01-05 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180723', 'tblTempUsageDetail_20' ) start [2025-01-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180723', 'tblTempUsageDetail_20' ) end [2025-01-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180723', 'tblTempVendorCDR_20' ) start [2025-01-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180723', 'tblTempVendorCDR_20' ) end [2025-01-05 14:06:19] Production.INFO: ProcessCDR(1,14180723,1,1,2) [2025-01-05 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180723', 'tblTempUsageDetail_20' ) start [2025-01-05 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180723', 'tblTempUsageDetail_20' ) end [2025-01-05 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:06:23] Production.INFO: ==23520== Releasing lock... [2025-01-05 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:07:05 [end_date_ymd] => 2025-01-05 14:07:05 [RateCDR] => 1 ) [2025-01-05 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:07:05' and `end` < '2025-01-05 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:07:18] Production.INFO: count ==1304 [2025-01-05 14:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:07:05 - End Time 2025-01-05 14:07:05 [2025-01-05 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180728', 'tblTempUsageDetail_20' ) start [2025-01-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180728', 'tblTempUsageDetail_20' ) end [2025-01-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180728', 'tblTempVendorCDR_20' ) start [2025-01-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180728', 'tblTempVendorCDR_20' ) end [2025-01-05 14:07:18] Production.INFO: ProcessCDR(1,14180728,1,1,2) [2025-01-05 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180728', 'tblTempUsageDetail_20' ) start [2025-01-05 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180728', 'tblTempUsageDetail_20' ) end [2025-01-05 14:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:07:21] Production.INFO: ==23601== Releasing lock... [2025-01-05 14:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:08:05 [end_date_ymd] => 2025-01-05 14:08:05 [RateCDR] => 1 ) [2025-01-05 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:08:05' and `end` < '2025-01-05 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:08:19] Production.INFO: count ==1319 [2025-01-05 14:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:08:05 - End Time 2025-01-05 14:08:05 [2025-01-05 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180733', 'tblTempUsageDetail_20' ) start [2025-01-05 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180733', 'tblTempUsageDetail_20' ) end [2025-01-05 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180733', 'tblTempVendorCDR_20' ) start [2025-01-05 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180733', 'tblTempVendorCDR_20' ) end [2025-01-05 14:08:20] Production.INFO: ProcessCDR(1,14180733,1,1,2) [2025-01-05 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180733', 'tblTempUsageDetail_20' ) start [2025-01-05 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180733', 'tblTempUsageDetail_20' ) end [2025-01-05 14:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:08:23] Production.INFO: ==23688== Releasing lock... [2025-01-05 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:08:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:09:04 [end_date_ymd] => 2025-01-05 14:09:04 [RateCDR] => 1 ) [2025-01-05 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:09:04' and `end` < '2025-01-05 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:09:17] Production.INFO: count ==1327 [2025-01-05 14:09:17] Production.ERROR: pbx CDR StartTime 2025-01-05 11:09:04 - End Time 2025-01-05 14:09:04 [2025-01-05 14:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180738', 'tblTempUsageDetail_20' ) start [2025-01-05 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180738', 'tblTempUsageDetail_20' ) end [2025-01-05 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180738', 'tblTempVendorCDR_20' ) start [2025-01-05 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180738', 'tblTempVendorCDR_20' ) end [2025-01-05 14:09:17] Production.INFO: ProcessCDR(1,14180738,1,1,2) [2025-01-05 14:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180738', 'tblTempUsageDetail_20' ) start [2025-01-05 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180738', 'tblTempUsageDetail_20' ) end [2025-01-05 14:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:09:21] Production.INFO: ==23769== Releasing lock... [2025-01-05 14:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:09:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:10:06 [end_date_ymd] => 2025-01-05 14:10:06 [RateCDR] => 1 ) [2025-01-05 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:10:06' and `end` < '2025-01-05 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:10:19] Production.INFO: count ==1313 [2025-01-05 14:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:10:06 - End Time 2025-01-05 14:10:06 [2025-01-05 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180744', 'tblTempUsageDetail_20' ) start [2025-01-05 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180744', 'tblTempUsageDetail_20' ) end [2025-01-05 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180744', 'tblTempVendorCDR_20' ) start [2025-01-05 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180744', 'tblTempVendorCDR_20' ) end [2025-01-05 14:10:19] Production.INFO: ProcessCDR(1,14180744,1,1,2) [2025-01-05 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180744', 'tblTempUsageDetail_20' ) start [2025-01-05 14:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180744', 'tblTempUsageDetail_20' ) end [2025-01-05 14:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:10:22] Production.INFO: ==23852== Releasing lock... [2025-01-05 14:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:10:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:11:05 [end_date_ymd] => 2025-01-05 14:11:05 [RateCDR] => 1 ) [2025-01-05 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:11:05' and `end` < '2025-01-05 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:11:18] Production.INFO: count ==1311 [2025-01-05 14:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:11:05 - End Time 2025-01-05 14:11:05 [2025-01-05 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180749', 'tblTempUsageDetail_20' ) start [2025-01-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180749', 'tblTempUsageDetail_20' ) end [2025-01-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180749', 'tblTempVendorCDR_20' ) start [2025-01-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180749', 'tblTempVendorCDR_20' ) end [2025-01-05 14:11:19] Production.INFO: ProcessCDR(1,14180749,1,1,2) [2025-01-05 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180749', 'tblTempUsageDetail_20' ) start [2025-01-05 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180749', 'tblTempUsageDetail_20' ) end [2025-01-05 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:11:22] Production.INFO: ==23979== Releasing lock... [2025-01-05 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:11:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:12:05 [end_date_ymd] => 2025-01-05 14:12:05 [RateCDR] => 1 ) [2025-01-05 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:12:05' and `end` < '2025-01-05 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:12:18] Production.INFO: count ==1323 [2025-01-05 14:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:12:05 - End Time 2025-01-05 14:12:05 [2025-01-05 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180754', 'tblTempUsageDetail_20' ) start [2025-01-05 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180754', 'tblTempUsageDetail_20' ) end [2025-01-05 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180754', 'tblTempVendorCDR_20' ) start [2025-01-05 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180754', 'tblTempVendorCDR_20' ) end [2025-01-05 14:12:18] Production.INFO: ProcessCDR(1,14180754,1,1,2) [2025-01-05 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180754', 'tblTempUsageDetail_20' ) start [2025-01-05 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180754', 'tblTempUsageDetail_20' ) end [2025-01-05 14:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:12:21] Production.INFO: ==24062== Releasing lock... [2025-01-05 14:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:12:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:13:04 [end_date_ymd] => 2025-01-05 14:13:04 [RateCDR] => 1 ) [2025-01-05 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:13:04' and `end` < '2025-01-05 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:13:19] Production.INFO: count ==1310 [2025-01-05 14:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:13:04 - End Time 2025-01-05 14:13:04 [2025-01-05 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180759', 'tblTempUsageDetail_20' ) start [2025-01-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180759', 'tblTempUsageDetail_20' ) end [2025-01-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180759', 'tblTempVendorCDR_20' ) start [2025-01-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180759', 'tblTempVendorCDR_20' ) end [2025-01-05 14:13:19] Production.INFO: ProcessCDR(1,14180759,1,1,2) [2025-01-05 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180759', 'tblTempUsageDetail_20' ) start [2025-01-05 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180759', 'tblTempUsageDetail_20' ) end [2025-01-05 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:13:22] Production.INFO: ==24147== Releasing lock... [2025-01-05 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:14:05 [end_date_ymd] => 2025-01-05 14:14:05 [RateCDR] => 1 ) [2025-01-05 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:14:05' and `end` < '2025-01-05 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:14:18] Production.INFO: count ==1302 [2025-01-05 14:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:14:05 - End Time 2025-01-05 14:14:05 [2025-01-05 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180764', 'tblTempUsageDetail_20' ) start [2025-01-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180764', 'tblTempUsageDetail_20' ) end [2025-01-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180764', 'tblTempVendorCDR_20' ) start [2025-01-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180764', 'tblTempVendorCDR_20' ) end [2025-01-05 14:14:19] Production.INFO: ProcessCDR(1,14180764,1,1,2) [2025-01-05 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180764', 'tblTempUsageDetail_20' ) start [2025-01-05 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180764', 'tblTempUsageDetail_20' ) end [2025-01-05 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:14:22] Production.INFO: ==24235== Releasing lock... [2025-01-05 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:15:05 [end_date_ymd] => 2025-01-05 14:15:05 [RateCDR] => 1 ) [2025-01-05 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:15:05' and `end` < '2025-01-05 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:15:18] Production.INFO: count ==1303 [2025-01-05 14:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:15:05 - End Time 2025-01-05 14:15:05 [2025-01-05 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180769', 'tblTempUsageDetail_20' ) start [2025-01-05 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180769', 'tblTempUsageDetail_20' ) end [2025-01-05 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180769', 'tblTempVendorCDR_20' ) start [2025-01-05 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180769', 'tblTempVendorCDR_20' ) end [2025-01-05 14:15:19] Production.INFO: ProcessCDR(1,14180769,1,1,2) [2025-01-05 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180769', 'tblTempUsageDetail_20' ) start [2025-01-05 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180769', 'tblTempUsageDetail_20' ) end [2025-01-05 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:15:22] Production.INFO: ==24322== Releasing lock... [2025-01-05 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:15:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:16:05 [end_date_ymd] => 2025-01-05 14:16:05 [RateCDR] => 1 ) [2025-01-05 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:16:05' and `end` < '2025-01-05 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:16:18] Production.INFO: count ==1311 [2025-01-05 14:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:16:05 - End Time 2025-01-05 14:16:05 [2025-01-05 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180774', 'tblTempUsageDetail_20' ) start [2025-01-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180774', 'tblTempUsageDetail_20' ) end [2025-01-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180774', 'tblTempVendorCDR_20' ) start [2025-01-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180774', 'tblTempVendorCDR_20' ) end [2025-01-05 14:16:19] Production.INFO: ProcessCDR(1,14180774,1,1,2) [2025-01-05 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180774', 'tblTempUsageDetail_20' ) start [2025-01-05 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180774', 'tblTempUsageDetail_20' ) end [2025-01-05 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:16:22] Production.INFO: ==24407== Releasing lock... [2025-01-05 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:17:05 [end_date_ymd] => 2025-01-05 14:17:05 [RateCDR] => 1 ) [2025-01-05 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:17:05' and `end` < '2025-01-05 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:17:18] Production.INFO: count ==1316 [2025-01-05 14:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:17:05 - End Time 2025-01-05 14:17:05 [2025-01-05 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180779', 'tblTempUsageDetail_20' ) start [2025-01-05 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180779', 'tblTempUsageDetail_20' ) end [2025-01-05 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180779', 'tblTempVendorCDR_20' ) start [2025-01-05 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180779', 'tblTempVendorCDR_20' ) end [2025-01-05 14:17:19] Production.INFO: ProcessCDR(1,14180779,1,1,2) [2025-01-05 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180779', 'tblTempUsageDetail_20' ) start [2025-01-05 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180779', 'tblTempUsageDetail_20' ) end [2025-01-05 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:17:22] Production.INFO: ==24495== Releasing lock... [2025-01-05 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:17:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:18:05 [end_date_ymd] => 2025-01-05 14:18:05 [RateCDR] => 1 ) [2025-01-05 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:18:05' and `end` < '2025-01-05 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:18:19] Production.INFO: count ==1309 [2025-01-05 14:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:18:05 - End Time 2025-01-05 14:18:05 [2025-01-05 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180784', 'tblTempUsageDetail_20' ) start [2025-01-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180784', 'tblTempUsageDetail_20' ) end [2025-01-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180784', 'tblTempVendorCDR_20' ) start [2025-01-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180784', 'tblTempVendorCDR_20' ) end [2025-01-05 14:18:19] Production.INFO: ProcessCDR(1,14180784,1,1,2) [2025-01-05 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180784', 'tblTempUsageDetail_20' ) start [2025-01-05 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180784', 'tblTempUsageDetail_20' ) end [2025-01-05 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:18:22] Production.INFO: ==24581== Releasing lock... [2025-01-05 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:18:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:19:05 [end_date_ymd] => 2025-01-05 14:19:05 [RateCDR] => 1 ) [2025-01-05 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:19:05' and `end` < '2025-01-05 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:19:21] Production.INFO: count ==1306 [2025-01-05 14:19:21] Production.ERROR: pbx CDR StartTime 2025-01-05 11:19:05 - End Time 2025-01-05 14:19:05 [2025-01-05 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180789', 'tblTempUsageDetail_20' ) start [2025-01-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180789', 'tblTempUsageDetail_20' ) end [2025-01-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180789', 'tblTempVendorCDR_20' ) start [2025-01-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180789', 'tblTempVendorCDR_20' ) end [2025-01-05 14:19:21] Production.INFO: ProcessCDR(1,14180789,1,1,2) [2025-01-05 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180789', 'tblTempUsageDetail_20' ) start [2025-01-05 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180789', 'tblTempUsageDetail_20' ) end [2025-01-05 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:19:24] Production.INFO: ==24668== Releasing lock... [2025-01-05 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:19:24] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:20:05 [end_date_ymd] => 2025-01-05 14:20:05 [RateCDR] => 1 ) [2025-01-05 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:20:05' and `end` < '2025-01-05 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:20:18] Production.INFO: count ==1303 [2025-01-05 14:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:20:05 - End Time 2025-01-05 14:20:05 [2025-01-05 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180795', 'tblTempUsageDetail_20' ) start [2025-01-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180795', 'tblTempUsageDetail_20' ) end [2025-01-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180795', 'tblTempVendorCDR_20' ) start [2025-01-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180795', 'tblTempVendorCDR_20' ) end [2025-01-05 14:20:19] Production.INFO: ProcessCDR(1,14180795,1,1,2) [2025-01-05 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180795', 'tblTempUsageDetail_20' ) start [2025-01-05 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180795', 'tblTempUsageDetail_20' ) end [2025-01-05 14:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:20:22] Production.INFO: ==24755== Releasing lock... [2025-01-05 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:20:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:21:05 [end_date_ymd] => 2025-01-05 14:21:05 [RateCDR] => 1 ) [2025-01-05 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:21:05' and `end` < '2025-01-05 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:21:18] Production.INFO: count ==1304 [2025-01-05 14:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:21:05 - End Time 2025-01-05 14:21:05 [2025-01-05 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180800', 'tblTempUsageDetail_20' ) start [2025-01-05 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180800', 'tblTempUsageDetail_20' ) end [2025-01-05 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180800', 'tblTempVendorCDR_20' ) start [2025-01-05 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180800', 'tblTempVendorCDR_20' ) end [2025-01-05 14:21:18] Production.INFO: ProcessCDR(1,14180800,1,1,2) [2025-01-05 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180800', 'tblTempUsageDetail_20' ) start [2025-01-05 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180800', 'tblTempUsageDetail_20' ) end [2025-01-05 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:21:23] Production.INFO: ==24841== Releasing lock... [2025-01-05 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:21:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:22:05 [end_date_ymd] => 2025-01-05 14:22:05 [RateCDR] => 1 ) [2025-01-05 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:22:05' and `end` < '2025-01-05 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:22:20] Production.INFO: count ==1302 [2025-01-05 14:22:20] Production.ERROR: pbx CDR StartTime 2025-01-05 11:22:05 - End Time 2025-01-05 14:22:05 [2025-01-05 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180805', 'tblTempUsageDetail_20' ) start [2025-01-05 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180805', 'tblTempUsageDetail_20' ) end [2025-01-05 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180805', 'tblTempVendorCDR_20' ) start [2025-01-05 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180805', 'tblTempVendorCDR_20' ) end [2025-01-05 14:22:20] Production.INFO: ProcessCDR(1,14180805,1,1,2) [2025-01-05 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180805', 'tblTempUsageDetail_20' ) start [2025-01-05 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180805', 'tblTempUsageDetail_20' ) end [2025-01-05 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:22:23] Production.INFO: ==24928== Releasing lock... [2025-01-05 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:22:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:23:05 [end_date_ymd] => 2025-01-05 14:23:05 [RateCDR] => 1 ) [2025-01-05 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:23:05' and `end` < '2025-01-05 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:23:19] Production.INFO: count ==1312 [2025-01-05 14:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:23:05 - End Time 2025-01-05 14:23:05 [2025-01-05 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180810', 'tblTempUsageDetail_20' ) start [2025-01-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180810', 'tblTempUsageDetail_20' ) end [2025-01-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180810', 'tblTempVendorCDR_20' ) start [2025-01-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180810', 'tblTempVendorCDR_20' ) end [2025-01-05 14:23:19] Production.INFO: ProcessCDR(1,14180810,1,1,2) [2025-01-05 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180810', 'tblTempUsageDetail_20' ) start [2025-01-05 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180810', 'tblTempUsageDetail_20' ) end [2025-01-05 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:23:24] Production.INFO: ==25015== Releasing lock... [2025-01-05 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:23:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:24:05 [end_date_ymd] => 2025-01-05 14:24:05 [RateCDR] => 1 ) [2025-01-05 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:24:05' and `end` < '2025-01-05 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:24:17] Production.INFO: count ==1306 [2025-01-05 14:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:24:05 - End Time 2025-01-05 14:24:05 [2025-01-05 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180815', 'tblTempUsageDetail_20' ) start [2025-01-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180815', 'tblTempUsageDetail_20' ) end [2025-01-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180815', 'tblTempVendorCDR_20' ) start [2025-01-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180815', 'tblTempVendorCDR_20' ) end [2025-01-05 14:24:18] Production.INFO: ProcessCDR(1,14180815,1,1,2) [2025-01-05 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180815', 'tblTempUsageDetail_20' ) start [2025-01-05 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180815', 'tblTempUsageDetail_20' ) end [2025-01-05 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:24:22] Production.INFO: ==25102== Releasing lock... [2025-01-05 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:24:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:25:05 [end_date_ymd] => 2025-01-05 14:25:05 [RateCDR] => 1 ) [2025-01-05 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:25:05' and `end` < '2025-01-05 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:25:18] Production.INFO: count ==1303 [2025-01-05 14:25:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:25:05 - End Time 2025-01-05 14:25:05 [2025-01-05 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180820', 'tblTempUsageDetail_20' ) start [2025-01-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180820', 'tblTempUsageDetail_20' ) end [2025-01-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180820', 'tblTempVendorCDR_20' ) start [2025-01-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180820', 'tblTempVendorCDR_20' ) end [2025-01-05 14:25:19] Production.INFO: ProcessCDR(1,14180820,1,1,2) [2025-01-05 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180820', 'tblTempUsageDetail_20' ) start [2025-01-05 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180820', 'tblTempUsageDetail_20' ) end [2025-01-05 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:25:23] Production.INFO: ==25188== Releasing lock... [2025-01-05 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:26:05 [end_date_ymd] => 2025-01-05 14:26:05 [RateCDR] => 1 ) [2025-01-05 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:26:05' and `end` < '2025-01-05 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:26:18] Production.INFO: count ==1305 [2025-01-05 14:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:26:05 - End Time 2025-01-05 14:26:05 [2025-01-05 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180825', 'tblTempUsageDetail_20' ) start [2025-01-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180825', 'tblTempUsageDetail_20' ) end [2025-01-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180825', 'tblTempVendorCDR_20' ) start [2025-01-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180825', 'tblTempVendorCDR_20' ) end [2025-01-05 14:26:18] Production.INFO: ProcessCDR(1,14180825,1,1,2) [2025-01-05 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180825', 'tblTempUsageDetail_20' ) start [2025-01-05 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180825', 'tblTempUsageDetail_20' ) end [2025-01-05 14:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:26:21] Production.INFO: ==25271== Releasing lock... [2025-01-05 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:26:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:27:05 [end_date_ymd] => 2025-01-05 14:27:05 [RateCDR] => 1 ) [2025-01-05 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:27:05' and `end` < '2025-01-05 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:27:19] Production.INFO: count ==1303 [2025-01-05 14:27:20] Production.ERROR: pbx CDR StartTime 2025-01-05 11:27:05 - End Time 2025-01-05 14:27:05 [2025-01-05 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180830', 'tblTempUsageDetail_20' ) start [2025-01-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180830', 'tblTempUsageDetail_20' ) end [2025-01-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180830', 'tblTempVendorCDR_20' ) start [2025-01-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180830', 'tblTempVendorCDR_20' ) end [2025-01-05 14:27:20] Production.INFO: ProcessCDR(1,14180830,1,1,2) [2025-01-05 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180830', 'tblTempUsageDetail_20' ) start [2025-01-05 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180830', 'tblTempUsageDetail_20' ) end [2025-01-05 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:27:23] Production.INFO: ==25398== Releasing lock... [2025-01-05 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:28:05 [end_date_ymd] => 2025-01-05 14:28:05 [RateCDR] => 1 ) [2025-01-05 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:28:05' and `end` < '2025-01-05 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:28:18] Production.INFO: count ==1304 [2025-01-05 14:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:28:05 - End Time 2025-01-05 14:28:05 [2025-01-05 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180835', 'tblTempUsageDetail_20' ) start [2025-01-05 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180835', 'tblTempUsageDetail_20' ) end [2025-01-05 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180835', 'tblTempVendorCDR_20' ) start [2025-01-05 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180835', 'tblTempVendorCDR_20' ) end [2025-01-05 14:28:19] Production.INFO: ProcessCDR(1,14180835,1,1,2) [2025-01-05 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180835', 'tblTempUsageDetail_20' ) start [2025-01-05 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180835', 'tblTempUsageDetail_20' ) end [2025-01-05 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:28:23] Production.INFO: ==25486== Releasing lock... [2025-01-05 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:28:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:29:04 [end_date_ymd] => 2025-01-05 14:29:04 [RateCDR] => 1 ) [2025-01-05 14:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:29:04' and `end` < '2025-01-05 14:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:29:17] Production.INFO: count ==1301 [2025-01-05 14:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:29:04 - End Time 2025-01-05 14:29:04 [2025-01-05 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180840', 'tblTempUsageDetail_20' ) start [2025-01-05 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180840', 'tblTempUsageDetail_20' ) end [2025-01-05 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180840', 'tblTempVendorCDR_20' ) start [2025-01-05 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180840', 'tblTempVendorCDR_20' ) end [2025-01-05 14:29:18] Production.INFO: ProcessCDR(1,14180840,1,1,2) [2025-01-05 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180840', 'tblTempUsageDetail_20' ) start [2025-01-05 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180840', 'tblTempUsageDetail_20' ) end [2025-01-05 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:29:23] Production.INFO: ==25573== Releasing lock... [2025-01-05 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:30:06 [end_date_ymd] => 2025-01-05 14:30:06 [RateCDR] => 1 ) [2025-01-05 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:30:06' and `end` < '2025-01-05 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:30:19] Production.INFO: count ==1298 [2025-01-05 14:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:30:06 - End Time 2025-01-05 14:30:06 [2025-01-05 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180846', 'tblTempUsageDetail_20' ) start [2025-01-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180846', 'tblTempUsageDetail_20' ) end [2025-01-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180846', 'tblTempVendorCDR_20' ) start [2025-01-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180846', 'tblTempVendorCDR_20' ) end [2025-01-05 14:30:19] Production.INFO: ProcessCDR(1,14180846,1,1,2) [2025-01-05 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180846', 'tblTempUsageDetail_20' ) start [2025-01-05 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180846', 'tblTempUsageDetail_20' ) end [2025-01-05 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:30:24] Production.INFO: ==25663== Releasing lock... [2025-01-05 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:30:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:31:05 [end_date_ymd] => 2025-01-05 14:31:05 [RateCDR] => 1 ) [2025-01-05 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:31:05' and `end` < '2025-01-05 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:31:18] Production.INFO: count ==1301 [2025-01-05 14:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:31:05 - End Time 2025-01-05 14:31:05 [2025-01-05 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180851', 'tblTempUsageDetail_20' ) start [2025-01-05 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180851', 'tblTempUsageDetail_20' ) end [2025-01-05 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180851', 'tblTempVendorCDR_20' ) start [2025-01-05 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180851', 'tblTempVendorCDR_20' ) end [2025-01-05 14:31:18] Production.INFO: ProcessCDR(1,14180851,1,1,2) [2025-01-05 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180851', 'tblTempUsageDetail_20' ) start [2025-01-05 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180851', 'tblTempUsageDetail_20' ) end [2025-01-05 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:31:23] Production.INFO: ==25749== Releasing lock... [2025-01-05 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:31:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:32:05 [end_date_ymd] => 2025-01-05 14:32:05 [RateCDR] => 1 ) [2025-01-05 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:32:05' and `end` < '2025-01-05 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:32:18] Production.INFO: count ==1300 [2025-01-05 14:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:32:05 - End Time 2025-01-05 14:32:05 [2025-01-05 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180856', 'tblTempUsageDetail_20' ) start [2025-01-05 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180856', 'tblTempUsageDetail_20' ) end [2025-01-05 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180856', 'tblTempVendorCDR_20' ) start [2025-01-05 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180856', 'tblTempVendorCDR_20' ) end [2025-01-05 14:32:19] Production.INFO: ProcessCDR(1,14180856,1,1,2) [2025-01-05 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180856', 'tblTempUsageDetail_20' ) start [2025-01-05 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180856', 'tblTempUsageDetail_20' ) end [2025-01-05 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:32:24] Production.INFO: ==25836== Releasing lock... [2025-01-05 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:32:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:33:05 [end_date_ymd] => 2025-01-05 14:33:05 [RateCDR] => 1 ) [2025-01-05 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:33:05' and `end` < '2025-01-05 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:33:19] Production.INFO: count ==1299 [2025-01-05 14:33:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:33:05 - End Time 2025-01-05 14:33:05 [2025-01-05 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180861', 'tblTempUsageDetail_20' ) start [2025-01-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180861', 'tblTempUsageDetail_20' ) end [2025-01-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180861', 'tblTempVendorCDR_20' ) start [2025-01-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180861', 'tblTempVendorCDR_20' ) end [2025-01-05 14:33:19] Production.INFO: ProcessCDR(1,14180861,1,1,2) [2025-01-05 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180861', 'tblTempUsageDetail_20' ) start [2025-01-05 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180861', 'tblTempUsageDetail_20' ) end [2025-01-05 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:33:24] Production.INFO: ==25924== Releasing lock... [2025-01-05 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-05 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:34:05 [end_date_ymd] => 2025-01-05 14:34:05 [RateCDR] => 1 ) [2025-01-05 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:34:05' and `end` < '2025-01-05 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:34:18] Production.INFO: count ==1298 [2025-01-05 14:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:34:05 - End Time 2025-01-05 14:34:05 [2025-01-05 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180866', 'tblTempUsageDetail_20' ) start [2025-01-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180866', 'tblTempUsageDetail_20' ) end [2025-01-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180866', 'tblTempVendorCDR_20' ) start [2025-01-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180866', 'tblTempVendorCDR_20' ) end [2025-01-05 14:34:19] Production.INFO: ProcessCDR(1,14180866,1,1,2) [2025-01-05 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180866', 'tblTempUsageDetail_20' ) start [2025-01-05 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180866', 'tblTempUsageDetail_20' ) end [2025-01-05 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:34:23] Production.INFO: ==26012== Releasing lock... [2025-01-05 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-05 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:35:05 [end_date_ymd] => 2025-01-05 14:35:05 [RateCDR] => 1 ) [2025-01-05 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:35:05' and `end` < '2025-01-05 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:35:18] Production.INFO: count ==1295 [2025-01-05 14:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:35:05 - End Time 2025-01-05 14:35:05 [2025-01-05 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180871', 'tblTempUsageDetail_20' ) start [2025-01-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180871', 'tblTempUsageDetail_20' ) end [2025-01-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180871', 'tblTempVendorCDR_20' ) start [2025-01-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180871', 'tblTempVendorCDR_20' ) end [2025-01-05 14:35:18] Production.INFO: ProcessCDR(1,14180871,1,1,2) [2025-01-05 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180871', 'tblTempUsageDetail_20' ) start [2025-01-05 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180871', 'tblTempUsageDetail_20' ) end [2025-01-05 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:35:23] Production.INFO: ==26109== Releasing lock... [2025-01-05 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:35:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:36:06 [end_date_ymd] => 2025-01-05 14:36:06 [RateCDR] => 1 ) [2025-01-05 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:36:06' and `end` < '2025-01-05 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:36:19] Production.INFO: count ==1292 [2025-01-05 14:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:36:06 - End Time 2025-01-05 14:36:06 [2025-01-05 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180876', 'tblTempUsageDetail_20' ) start [2025-01-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180876', 'tblTempUsageDetail_20' ) end [2025-01-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180876', 'tblTempVendorCDR_20' ) start [2025-01-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180876', 'tblTempVendorCDR_20' ) end [2025-01-05 14:36:19] Production.INFO: ProcessCDR(1,14180876,1,1,2) [2025-01-05 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180876', 'tblTempUsageDetail_20' ) start [2025-01-05 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180876', 'tblTempUsageDetail_20' ) end [2025-01-05 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:36:24] Production.INFO: ==26193== Releasing lock... [2025-01-05 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-05 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:37:05 [end_date_ymd] => 2025-01-05 14:37:05 [RateCDR] => 1 ) [2025-01-05 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:37:05' and `end` < '2025-01-05 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:37:20] Production.INFO: count ==1281 [2025-01-05 14:37:20] Production.ERROR: pbx CDR StartTime 2025-01-05 11:37:05 - End Time 2025-01-05 14:37:05 [2025-01-05 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180881', 'tblTempUsageDetail_20' ) start [2025-01-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180881', 'tblTempUsageDetail_20' ) end [2025-01-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180881', 'tblTempVendorCDR_20' ) start [2025-01-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180881', 'tblTempVendorCDR_20' ) end [2025-01-05 14:37:20] Production.INFO: ProcessCDR(1,14180881,1,1,2) [2025-01-05 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180881', 'tblTempUsageDetail_20' ) start [2025-01-05 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180881', 'tblTempUsageDetail_20' ) end [2025-01-05 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:37:23] Production.INFO: ==26278== Releasing lock... [2025-01-05 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:37:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:38:05 [end_date_ymd] => 2025-01-05 14:38:05 [RateCDR] => 1 ) [2025-01-05 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:38:05' and `end` < '2025-01-05 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:38:18] Production.INFO: count ==1279 [2025-01-05 14:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:38:05 - End Time 2025-01-05 14:38:05 [2025-01-05 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180886', 'tblTempUsageDetail_20' ) start [2025-01-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180886', 'tblTempUsageDetail_20' ) end [2025-01-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180886', 'tblTempVendorCDR_20' ) start [2025-01-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180886', 'tblTempVendorCDR_20' ) end [2025-01-05 14:38:19] Production.INFO: ProcessCDR(1,14180886,1,1,2) [2025-01-05 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180886', 'tblTempUsageDetail_20' ) start [2025-01-05 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180886', 'tblTempUsageDetail_20' ) end [2025-01-05 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:38:23] Production.INFO: ==26368== Releasing lock... [2025-01-05 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:39:05 [end_date_ymd] => 2025-01-05 14:39:05 [RateCDR] => 1 ) [2025-01-05 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:39:05' and `end` < '2025-01-05 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:39:18] Production.INFO: count ==1276 [2025-01-05 14:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:39:05 - End Time 2025-01-05 14:39:05 [2025-01-05 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180891', 'tblTempUsageDetail_20' ) start [2025-01-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180891', 'tblTempUsageDetail_20' ) end [2025-01-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180891', 'tblTempVendorCDR_20' ) start [2025-01-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180891', 'tblTempVendorCDR_20' ) end [2025-01-05 14:39:18] Production.INFO: ProcessCDR(1,14180891,1,1,2) [2025-01-05 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180891', 'tblTempUsageDetail_20' ) start [2025-01-05 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180891', 'tblTempUsageDetail_20' ) end [2025-01-05 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:39:22] Production.INFO: ==26452== Releasing lock... [2025-01-05 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:39:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:40:06 [end_date_ymd] => 2025-01-05 14:40:06 [RateCDR] => 1 ) [2025-01-05 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:40:06' and `end` < '2025-01-05 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:40:19] Production.INFO: count ==1276 [2025-01-05 14:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:40:06 - End Time 2025-01-05 14:40:06 [2025-01-05 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180897', 'tblTempUsageDetail_20' ) start [2025-01-05 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180897', 'tblTempUsageDetail_20' ) end [2025-01-05 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180897', 'tblTempVendorCDR_20' ) start [2025-01-05 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180897', 'tblTempVendorCDR_20' ) end [2025-01-05 14:40:19] Production.INFO: ProcessCDR(1,14180897,1,1,2) [2025-01-05 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180897', 'tblTempUsageDetail_20' ) start [2025-01-05 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180897', 'tblTempUsageDetail_20' ) end [2025-01-05 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:40:22] Production.INFO: ==26539== Releasing lock... [2025-01-05 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:40:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:41:05 [end_date_ymd] => 2025-01-05 14:41:05 [RateCDR] => 1 ) [2025-01-05 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:41:05' and `end` < '2025-01-05 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:41:17] Production.INFO: count ==1289 [2025-01-05 14:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:41:05 - End Time 2025-01-05 14:41:05 [2025-01-05 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180902', 'tblTempUsageDetail_20' ) start [2025-01-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180902', 'tblTempUsageDetail_20' ) end [2025-01-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180902', 'tblTempVendorCDR_20' ) start [2025-01-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180902', 'tblTempVendorCDR_20' ) end [2025-01-05 14:41:18] Production.INFO: ProcessCDR(1,14180902,1,1,2) [2025-01-05 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180902', 'tblTempUsageDetail_20' ) start [2025-01-05 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180902', 'tblTempUsageDetail_20' ) end [2025-01-05 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:41:22] Production.INFO: ==26628== Releasing lock... [2025-01-05 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:41:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:42:05 [end_date_ymd] => 2025-01-05 14:42:05 [RateCDR] => 1 ) [2025-01-05 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:42:05' and `end` < '2025-01-05 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:42:19] Production.INFO: count ==1290 [2025-01-05 14:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:42:05 - End Time 2025-01-05 14:42:05 [2025-01-05 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180907', 'tblTempUsageDetail_20' ) start [2025-01-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180907', 'tblTempUsageDetail_20' ) end [2025-01-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180907', 'tblTempVendorCDR_20' ) start [2025-01-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180907', 'tblTempVendorCDR_20' ) end [2025-01-05 14:42:19] Production.INFO: ProcessCDR(1,14180907,1,1,2) [2025-01-05 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180907', 'tblTempUsageDetail_20' ) start [2025-01-05 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180907', 'tblTempUsageDetail_20' ) end [2025-01-05 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:42:23] Production.INFO: ==26754== Releasing lock... [2025-01-05 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:42:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:43:04 [end_date_ymd] => 2025-01-05 14:43:04 [RateCDR] => 1 ) [2025-01-05 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:43:04' and `end` < '2025-01-05 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:43:17] Production.INFO: count ==1297 [2025-01-05 14:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:43:04 - End Time 2025-01-05 14:43:04 [2025-01-05 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180912', 'tblTempUsageDetail_20' ) start [2025-01-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180912', 'tblTempUsageDetail_20' ) end [2025-01-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180912', 'tblTempVendorCDR_20' ) start [2025-01-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180912', 'tblTempVendorCDR_20' ) end [2025-01-05 14:43:18] Production.INFO: ProcessCDR(1,14180912,1,1,2) [2025-01-05 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180912', 'tblTempUsageDetail_20' ) start [2025-01-05 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180912', 'tblTempUsageDetail_20' ) end [2025-01-05 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:43:22] Production.INFO: ==26844== Releasing lock... [2025-01-05 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:43:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:44:05 [end_date_ymd] => 2025-01-05 14:44:05 [RateCDR] => 1 ) [2025-01-05 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:44:05' and `end` < '2025-01-05 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:44:18] Production.INFO: count ==1305 [2025-01-05 14:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:44:05 - End Time 2025-01-05 14:44:05 [2025-01-05 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180917', 'tblTempUsageDetail_20' ) start [2025-01-05 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180917', 'tblTempUsageDetail_20' ) end [2025-01-05 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180917', 'tblTempVendorCDR_20' ) start [2025-01-05 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180917', 'tblTempVendorCDR_20' ) end [2025-01-05 14:44:18] Production.INFO: ProcessCDR(1,14180917,1,1,2) [2025-01-05 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180917', 'tblTempUsageDetail_20' ) start [2025-01-05 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180917', 'tblTempUsageDetail_20' ) end [2025-01-05 14:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:44:22] Production.INFO: ==26930== Releasing lock... [2025-01-05 14:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:45:05 [end_date_ymd] => 2025-01-05 14:45:05 [RateCDR] => 1 ) [2025-01-05 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:45:05' and `end` < '2025-01-05 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:45:18] Production.INFO: count ==1305 [2025-01-05 14:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:45:05 - End Time 2025-01-05 14:45:05 [2025-01-05 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180922', 'tblTempUsageDetail_20' ) start [2025-01-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180922', 'tblTempUsageDetail_20' ) end [2025-01-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180922', 'tblTempVendorCDR_20' ) start [2025-01-05 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180922', 'tblTempVendorCDR_20' ) end [2025-01-05 14:45:19] Production.INFO: ProcessCDR(1,14180922,1,1,2) [2025-01-05 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180922', 'tblTempUsageDetail_20' ) start [2025-01-05 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180922', 'tblTempUsageDetail_20' ) end [2025-01-05 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:45:23] Production.INFO: ==27011== Releasing lock... [2025-01-05 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:45:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:46:05 [end_date_ymd] => 2025-01-05 14:46:05 [RateCDR] => 1 ) [2025-01-05 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:46:05' and `end` < '2025-01-05 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:46:18] Production.INFO: count ==1285 [2025-01-05 14:46:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:46:05 - End Time 2025-01-05 14:46:05 [2025-01-05 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180927', 'tblTempUsageDetail_20' ) start [2025-01-05 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180927', 'tblTempUsageDetail_20' ) end [2025-01-05 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180927', 'tblTempVendorCDR_20' ) start [2025-01-05 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180927', 'tblTempVendorCDR_20' ) end [2025-01-05 14:46:19] Production.INFO: ProcessCDR(1,14180927,1,1,2) [2025-01-05 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180927', 'tblTempUsageDetail_20' ) start [2025-01-05 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180927', 'tblTempUsageDetail_20' ) end [2025-01-05 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:46:22] Production.INFO: ==27096== Releasing lock... [2025-01-05 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:46:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-05 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:47:05 [end_date_ymd] => 2025-01-05 14:47:05 [RateCDR] => 1 ) [2025-01-05 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:47:05' and `end` < '2025-01-05 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:47:18] Production.INFO: count ==1283 [2025-01-05 14:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:47:05 - End Time 2025-01-05 14:47:05 [2025-01-05 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180932', 'tblTempUsageDetail_20' ) start [2025-01-05 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180932', 'tblTempUsageDetail_20' ) end [2025-01-05 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180932', 'tblTempVendorCDR_20' ) start [2025-01-05 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180932', 'tblTempVendorCDR_20' ) end [2025-01-05 14:47:18] Production.INFO: ProcessCDR(1,14180932,1,1,2) [2025-01-05 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180932', 'tblTempUsageDetail_20' ) start [2025-01-05 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180932', 'tblTempUsageDetail_20' ) end [2025-01-05 14:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:47:21] Production.INFO: ==27183== Releasing lock... [2025-01-05 14:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:48:05 [end_date_ymd] => 2025-01-05 14:48:05 [RateCDR] => 1 ) [2025-01-05 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:48:05' and `end` < '2025-01-05 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:48:19] Production.INFO: count ==1282 [2025-01-05 14:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:48:05 - End Time 2025-01-05 14:48:05 [2025-01-05 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180937', 'tblTempUsageDetail_20' ) start [2025-01-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180937', 'tblTempUsageDetail_20' ) end [2025-01-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180937', 'tblTempVendorCDR_20' ) start [2025-01-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180937', 'tblTempVendorCDR_20' ) end [2025-01-05 14:48:19] Production.INFO: ProcessCDR(1,14180937,1,1,2) [2025-01-05 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180937', 'tblTempUsageDetail_20' ) start [2025-01-05 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180937', 'tblTempUsageDetail_20' ) end [2025-01-05 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:48:23] Production.INFO: ==27268== Releasing lock... [2025-01-05 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:48:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:49:05 [end_date_ymd] => 2025-01-05 14:49:05 [RateCDR] => 1 ) [2025-01-05 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:49:05' and `end` < '2025-01-05 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:49:19] Production.INFO: count ==1281 [2025-01-05 14:49:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:49:05 - End Time 2025-01-05 14:49:05 [2025-01-05 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180942', 'tblTempUsageDetail_20' ) start [2025-01-05 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180942', 'tblTempUsageDetail_20' ) end [2025-01-05 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180942', 'tblTempVendorCDR_20' ) start [2025-01-05 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180942', 'tblTempVendorCDR_20' ) end [2025-01-05 14:49:19] Production.INFO: ProcessCDR(1,14180942,1,1,2) [2025-01-05 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180942', 'tblTempUsageDetail_20' ) start [2025-01-05 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180942', 'tblTempUsageDetail_20' ) end [2025-01-05 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:49:23] Production.INFO: ==27359== Releasing lock... [2025-01-05 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:49:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:50:06 [end_date_ymd] => 2025-01-05 14:50:06 [RateCDR] => 1 ) [2025-01-05 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:50:06' and `end` < '2025-01-05 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:50:19] Production.INFO: count ==1281 [2025-01-05 14:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:50:06 - End Time 2025-01-05 14:50:06 [2025-01-05 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180948', 'tblTempUsageDetail_20' ) start [2025-01-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180948', 'tblTempUsageDetail_20' ) end [2025-01-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180948', 'tblTempVendorCDR_20' ) start [2025-01-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180948', 'tblTempVendorCDR_20' ) end [2025-01-05 14:50:19] Production.INFO: ProcessCDR(1,14180948,1,1,2) [2025-01-05 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180948', 'tblTempUsageDetail_20' ) start [2025-01-05 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180948', 'tblTempUsageDetail_20' ) end [2025-01-05 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:50:22] Production.INFO: ==27459== Releasing lock... [2025-01-05 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:51:05 [end_date_ymd] => 2025-01-05 14:51:05 [RateCDR] => 1 ) [2025-01-05 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:51:05' and `end` < '2025-01-05 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:51:17] Production.INFO: count ==1308 [2025-01-05 14:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:51:05 - End Time 2025-01-05 14:51:05 [2025-01-05 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180953', 'tblTempUsageDetail_20' ) start [2025-01-05 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180953', 'tblTempUsageDetail_20' ) end [2025-01-05 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180953', 'tblTempVendorCDR_20' ) start [2025-01-05 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180953', 'tblTempVendorCDR_20' ) end [2025-01-05 14:51:18] Production.INFO: ProcessCDR(1,14180953,1,1,2) [2025-01-05 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180953', 'tblTempUsageDetail_20' ) start [2025-01-05 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180953', 'tblTempUsageDetail_20' ) end [2025-01-05 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:51:22] Production.INFO: ==27547== Releasing lock... [2025-01-05 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:52:05 [end_date_ymd] => 2025-01-05 14:52:05 [RateCDR] => 1 ) [2025-01-05 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:52:05' and `end` < '2025-01-05 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:52:20] Production.INFO: count ==1308 [2025-01-05 14:52:21] Production.ERROR: pbx CDR StartTime 2025-01-05 11:52:05 - End Time 2025-01-05 14:52:05 [2025-01-05 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180958', 'tblTempUsageDetail_20' ) start [2025-01-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180958', 'tblTempUsageDetail_20' ) end [2025-01-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180958', 'tblTempVendorCDR_20' ) start [2025-01-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180958', 'tblTempVendorCDR_20' ) end [2025-01-05 14:52:21] Production.INFO: ProcessCDR(1,14180958,1,1,2) [2025-01-05 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180958', 'tblTempUsageDetail_20' ) start [2025-01-05 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180958', 'tblTempUsageDetail_20' ) end [2025-01-05 14:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:52:24] Production.INFO: ==27630== Releasing lock... [2025-01-05 14:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:52:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:53:04 [end_date_ymd] => 2025-01-05 14:53:04 [RateCDR] => 1 ) [2025-01-05 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:53:04' and `end` < '2025-01-05 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:53:18] Production.INFO: count ==1308 [2025-01-05 14:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:53:04 - End Time 2025-01-05 14:53:04 [2025-01-05 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180963', 'tblTempUsageDetail_20' ) start [2025-01-05 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180963', 'tblTempUsageDetail_20' ) end [2025-01-05 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180963', 'tblTempVendorCDR_20' ) start [2025-01-05 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180963', 'tblTempVendorCDR_20' ) end [2025-01-05 14:53:18] Production.INFO: ProcessCDR(1,14180963,1,1,2) [2025-01-05 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180963', 'tblTempUsageDetail_20' ) start [2025-01-05 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180963', 'tblTempUsageDetail_20' ) end [2025-01-05 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:53:22] Production.INFO: ==27711== Releasing lock... [2025-01-05 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:53:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:54:05 [end_date_ymd] => 2025-01-05 14:54:05 [RateCDR] => 1 ) [2025-01-05 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:54:05' and `end` < '2025-01-05 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:54:18] Production.INFO: count ==1308 [2025-01-05 14:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:54:05 - End Time 2025-01-05 14:54:05 [2025-01-05 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180968', 'tblTempUsageDetail_20' ) start [2025-01-05 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180968', 'tblTempUsageDetail_20' ) end [2025-01-05 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180968', 'tblTempVendorCDR_20' ) start [2025-01-05 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180968', 'tblTempVendorCDR_20' ) end [2025-01-05 14:54:18] Production.INFO: ProcessCDR(1,14180968,1,1,2) [2025-01-05 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180968', 'tblTempUsageDetail_20' ) start [2025-01-05 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180968', 'tblTempUsageDetail_20' ) end [2025-01-05 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:54:21] Production.INFO: ==27796== Releasing lock... [2025-01-05 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:54:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:55:06 [end_date_ymd] => 2025-01-05 14:55:06 [RateCDR] => 1 ) [2025-01-05 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:55:06' and `end` < '2025-01-05 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:55:18] Production.INFO: count ==1316 [2025-01-05 14:55:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:55:06 - End Time 2025-01-05 14:55:06 [2025-01-05 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180973', 'tblTempUsageDetail_20' ) start [2025-01-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180973', 'tblTempUsageDetail_20' ) end [2025-01-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180973', 'tblTempVendorCDR_20' ) start [2025-01-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180973', 'tblTempVendorCDR_20' ) end [2025-01-05 14:55:19] Production.INFO: ProcessCDR(1,14180973,1,1,2) [2025-01-05 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180973', 'tblTempUsageDetail_20' ) start [2025-01-05 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180973', 'tblTempUsageDetail_20' ) end [2025-01-05 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:55:22] Production.INFO: ==27877== Releasing lock... [2025-01-05 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:56:05 [end_date_ymd] => 2025-01-05 14:56:05 [RateCDR] => 1 ) [2025-01-05 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:56:05' and `end` < '2025-01-05 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:56:18] Production.INFO: count ==1312 [2025-01-05 14:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:56:05 - End Time 2025-01-05 14:56:05 [2025-01-05 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180978', 'tblTempUsageDetail_20' ) start [2025-01-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180978', 'tblTempUsageDetail_20' ) end [2025-01-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180978', 'tblTempVendorCDR_20' ) start [2025-01-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180978', 'tblTempVendorCDR_20' ) end [2025-01-05 14:56:18] Production.INFO: ProcessCDR(1,14180978,1,1,2) [2025-01-05 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180978', 'tblTempUsageDetail_20' ) start [2025-01-05 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180978', 'tblTempUsageDetail_20' ) end [2025-01-05 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:56:23] Production.INFO: ==27966== Releasing lock... [2025-01-05 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:56:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:57:05 [end_date_ymd] => 2025-01-05 14:57:05 [RateCDR] => 1 ) [2025-01-05 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:57:05' and `end` < '2025-01-05 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:57:19] Production.INFO: count ==1312 [2025-01-05 14:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:57:05 - End Time 2025-01-05 14:57:05 [2025-01-05 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180983', 'tblTempUsageDetail_20' ) start [2025-01-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180983', 'tblTempUsageDetail_20' ) end [2025-01-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180983', 'tblTempVendorCDR_20' ) start [2025-01-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180983', 'tblTempVendorCDR_20' ) end [2025-01-05 14:57:19] Production.INFO: ProcessCDR(1,14180983,1,1,2) [2025-01-05 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180983', 'tblTempUsageDetail_20' ) start [2025-01-05 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180983', 'tblTempUsageDetail_20' ) end [2025-01-05 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:57:22] Production.INFO: ==28055== Releasing lock... [2025-01-05 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:57:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:58:05 [end_date_ymd] => 2025-01-05 14:58:05 [RateCDR] => 1 ) [2025-01-05 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:58:05' and `end` < '2025-01-05 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:58:19] Production.INFO: count ==1312 [2025-01-05 14:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 11:58:05 - End Time 2025-01-05 14:58:05 [2025-01-05 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180988', 'tblTempUsageDetail_20' ) start [2025-01-05 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180988', 'tblTempUsageDetail_20' ) end [2025-01-05 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180988', 'tblTempVendorCDR_20' ) start [2025-01-05 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180988', 'tblTempVendorCDR_20' ) end [2025-01-05 14:58:19] Production.INFO: ProcessCDR(1,14180988,1,1,2) [2025-01-05 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180988', 'tblTempUsageDetail_20' ) start [2025-01-05 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180988', 'tblTempUsageDetail_20' ) end [2025-01-05 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:58:22] Production.INFO: ==28176== Releasing lock... [2025-01-05 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 11:59:05 [end_date_ymd] => 2025-01-05 14:59:05 [RateCDR] => 1 ) [2025-01-05 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 11:59:05' and `end` < '2025-01-05 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 14:59:18] Production.INFO: count ==1312 [2025-01-05 14:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 11:59:05 - End Time 2025-01-05 14:59:05 [2025-01-05 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180993', 'tblTempUsageDetail_20' ) start [2025-01-05 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180993', 'tblTempUsageDetail_20' ) end [2025-01-05 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180993', 'tblTempVendorCDR_20' ) start [2025-01-05 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180993', 'tblTempVendorCDR_20' ) end [2025-01-05 14:59:18] Production.INFO: ProcessCDR(1,14180993,1,1,2) [2025-01-05 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 14:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180993', 'tblTempUsageDetail_20' ) start [2025-01-05 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180993', 'tblTempUsageDetail_20' ) end [2025-01-05 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 14:59:22] Production.INFO: ==28263== Releasing lock... [2025-01-05 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 14:59:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:00:05 [end_date_ymd] => 2025-01-05 15:00:05 [RateCDR] => 1 ) [2025-01-05 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:00:05' and `end` < '2025-01-05 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:00:18] Production.INFO: count ==1316 [2025-01-05 15:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:00:05 - End Time 2025-01-05 15:00:05 [2025-01-05 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180999', 'tblTempUsageDetail_20' ) start [2025-01-05 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14180999', 'tblTempUsageDetail_20' ) end [2025-01-05 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180999', 'tblTempVendorCDR_20' ) start [2025-01-05 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14180999', 'tblTempVendorCDR_20' ) end [2025-01-05 15:00:18] Production.INFO: ProcessCDR(1,14180999,1,1,2) [2025-01-05 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14180999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14180999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14180999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14180999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180999', 'tblTempUsageDetail_20' ) start [2025-01-05 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14180999', 'tblTempUsageDetail_20' ) end [2025-01-05 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:00:23] Production.INFO: ==28346== Releasing lock... [2025-01-05 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:01:05 [end_date_ymd] => 2025-01-05 15:01:05 [RateCDR] => 1 ) [2025-01-05 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:01:05' and `end` < '2025-01-05 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:01:18] Production.INFO: count ==1313 [2025-01-05 15:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:01:05 - End Time 2025-01-05 15:01:05 [2025-01-05 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181004', 'tblTempUsageDetail_20' ) start [2025-01-05 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181004', 'tblTempUsageDetail_20' ) end [2025-01-05 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181004', 'tblTempVendorCDR_20' ) start [2025-01-05 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181004', 'tblTempVendorCDR_20' ) end [2025-01-05 15:01:18] Production.INFO: ProcessCDR(1,14181004,1,1,2) [2025-01-05 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181004', 'tblTempUsageDetail_20' ) start [2025-01-05 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181004', 'tblTempUsageDetail_20' ) end [2025-01-05 15:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:01:21] Production.INFO: ==28530== Releasing lock... [2025-01-05 15:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:01:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:02:05 [end_date_ymd] => 2025-01-05 15:02:05 [RateCDR] => 1 ) [2025-01-05 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:02:05' and `end` < '2025-01-05 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:02:17] Production.INFO: count ==1302 [2025-01-05 15:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:02:05 - End Time 2025-01-05 15:02:05 [2025-01-05 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181009', 'tblTempUsageDetail_20' ) start [2025-01-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181009', 'tblTempUsageDetail_20' ) end [2025-01-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181009', 'tblTempVendorCDR_20' ) start [2025-01-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181009', 'tblTempVendorCDR_20' ) end [2025-01-05 15:02:18] Production.INFO: ProcessCDR(1,14181009,1,1,2) [2025-01-05 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181009', 'tblTempUsageDetail_20' ) start [2025-01-05 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181009', 'tblTempUsageDetail_20' ) end [2025-01-05 15:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:02:21] Production.INFO: ==28616== Releasing lock... [2025-01-05 15:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:02:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:03:06 [end_date_ymd] => 2025-01-05 15:03:06 [RateCDR] => 1 ) [2025-01-05 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:03:06' and `end` < '2025-01-05 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:03:19] Production.INFO: count ==1294 [2025-01-05 15:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:03:06 - End Time 2025-01-05 15:03:06 [2025-01-05 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181014', 'tblTempUsageDetail_20' ) start [2025-01-05 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181014', 'tblTempUsageDetail_20' ) end [2025-01-05 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181014', 'tblTempVendorCDR_20' ) start [2025-01-05 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181014', 'tblTempVendorCDR_20' ) end [2025-01-05 15:03:19] Production.INFO: ProcessCDR(1,14181014,1,1,2) [2025-01-05 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181014', 'tblTempUsageDetail_20' ) start [2025-01-05 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181014', 'tblTempUsageDetail_20' ) end [2025-01-05 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:03:22] Production.INFO: ==28700== Releasing lock... [2025-01-05 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:03:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-05 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:04:05 [end_date_ymd] => 2025-01-05 15:04:05 [RateCDR] => 1 ) [2025-01-05 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:04:05' and `end` < '2025-01-05 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:04:18] Production.INFO: count ==1296 [2025-01-05 15:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:04:05 - End Time 2025-01-05 15:04:05 [2025-01-05 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181019', 'tblTempUsageDetail_20' ) start [2025-01-05 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181019', 'tblTempUsageDetail_20' ) end [2025-01-05 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181019', 'tblTempVendorCDR_20' ) start [2025-01-05 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181019', 'tblTempVendorCDR_20' ) end [2025-01-05 15:04:18] Production.INFO: ProcessCDR(1,14181019,1,1,2) [2025-01-05 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181019', 'tblTempUsageDetail_20' ) start [2025-01-05 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181019', 'tblTempUsageDetail_20' ) end [2025-01-05 15:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:04:21] Production.INFO: ==28781== Releasing lock... [2025-01-05 15:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:04:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:05:05 [end_date_ymd] => 2025-01-05 15:05:05 [RateCDR] => 1 ) [2025-01-05 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:05:05' and `end` < '2025-01-05 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:05:19] Production.INFO: count ==1299 [2025-01-05 15:05:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:05:05 - End Time 2025-01-05 15:05:05 [2025-01-05 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181024', 'tblTempUsageDetail_20' ) start [2025-01-05 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181024', 'tblTempUsageDetail_20' ) end [2025-01-05 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181024', 'tblTempVendorCDR_20' ) start [2025-01-05 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181024', 'tblTempVendorCDR_20' ) end [2025-01-05 15:05:19] Production.INFO: ProcessCDR(1,14181024,1,1,2) [2025-01-05 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181024', 'tblTempUsageDetail_20' ) start [2025-01-05 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181024', 'tblTempUsageDetail_20' ) end [2025-01-05 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:05:22] Production.INFO: ==28948== Releasing lock... [2025-01-05 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:05:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:06:05 [end_date_ymd] => 2025-01-05 15:06:05 [RateCDR] => 1 ) [2025-01-05 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:06:05' and `end` < '2025-01-05 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:06:17] Production.INFO: count ==1299 [2025-01-05 15:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:06:05 - End Time 2025-01-05 15:06:05 [2025-01-05 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181029', 'tblTempUsageDetail_20' ) start [2025-01-05 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181029', 'tblTempUsageDetail_20' ) end [2025-01-05 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181029', 'tblTempVendorCDR_20' ) start [2025-01-05 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181029', 'tblTempVendorCDR_20' ) end [2025-01-05 15:06:18] Production.INFO: ProcessCDR(1,14181029,1,1,2) [2025-01-05 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181029', 'tblTempUsageDetail_20' ) start [2025-01-05 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181029', 'tblTempUsageDetail_20' ) end [2025-01-05 15:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:06:21] Production.INFO: ==29031== Releasing lock... [2025-01-05 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:06:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:07:05 [end_date_ymd] => 2025-01-05 15:07:05 [RateCDR] => 1 ) [2025-01-05 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:07:05' and `end` < '2025-01-05 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:07:18] Production.INFO: count ==1295 [2025-01-05 15:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:07:05 - End Time 2025-01-05 15:07:05 [2025-01-05 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181034', 'tblTempUsageDetail_20' ) start [2025-01-05 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181034', 'tblTempUsageDetail_20' ) end [2025-01-05 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181034', 'tblTempVendorCDR_20' ) start [2025-01-05 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181034', 'tblTempVendorCDR_20' ) end [2025-01-05 15:07:18] Production.INFO: ProcessCDR(1,14181034,1,1,2) [2025-01-05 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181034', 'tblTempUsageDetail_20' ) start [2025-01-05 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181034', 'tblTempUsageDetail_20' ) end [2025-01-05 15:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:07:21] Production.INFO: ==29139== Releasing lock... [2025-01-05 15:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:08:05 [end_date_ymd] => 2025-01-05 15:08:05 [RateCDR] => 1 ) [2025-01-05 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:08:05' and `end` < '2025-01-05 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:08:20] Production.INFO: count ==1280 [2025-01-05 15:08:20] Production.ERROR: pbx CDR StartTime 2025-01-05 12:08:05 - End Time 2025-01-05 15:08:05 [2025-01-05 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181039', 'tblTempUsageDetail_20' ) start [2025-01-05 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181039', 'tblTempUsageDetail_20' ) end [2025-01-05 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181039', 'tblTempVendorCDR_20' ) start [2025-01-05 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181039', 'tblTempVendorCDR_20' ) end [2025-01-05 15:08:20] Production.INFO: ProcessCDR(1,14181039,1,1,2) [2025-01-05 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181039', 'tblTempUsageDetail_20' ) start [2025-01-05 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181039', 'tblTempUsageDetail_20' ) end [2025-01-05 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:08:24] Production.INFO: ==29307== Releasing lock... [2025-01-05 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:08:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:09:05 [end_date_ymd] => 2025-01-05 15:09:05 [RateCDR] => 1 ) [2025-01-05 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:09:05' and `end` < '2025-01-05 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:09:19] Production.INFO: count ==1279 [2025-01-05 15:09:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:09:05 - End Time 2025-01-05 15:09:05 [2025-01-05 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181044', 'tblTempUsageDetail_20' ) start [2025-01-05 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181044', 'tblTempUsageDetail_20' ) end [2025-01-05 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181044', 'tblTempVendorCDR_20' ) start [2025-01-05 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181044', 'tblTempVendorCDR_20' ) end [2025-01-05 15:09:19] Production.INFO: ProcessCDR(1,14181044,1,1,2) [2025-01-05 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181044', 'tblTempUsageDetail_20' ) start [2025-01-05 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181044', 'tblTempUsageDetail_20' ) end [2025-01-05 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:09:23] Production.INFO: ==29392== Releasing lock... [2025-01-05 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:09:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:10:06 [end_date_ymd] => 2025-01-05 15:10:06 [RateCDR] => 1 ) [2025-01-05 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:10:06' and `end` < '2025-01-05 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:10:19] Production.INFO: count ==1280 [2025-01-05 15:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:10:06 - End Time 2025-01-05 15:10:06 [2025-01-05 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181050', 'tblTempUsageDetail_20' ) start [2025-01-05 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181050', 'tblTempUsageDetail_20' ) end [2025-01-05 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181050', 'tblTempVendorCDR_20' ) start [2025-01-05 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181050', 'tblTempVendorCDR_20' ) end [2025-01-05 15:10:19] Production.INFO: ProcessCDR(1,14181050,1,1,2) [2025-01-05 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181050', 'tblTempUsageDetail_20' ) start [2025-01-05 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181050', 'tblTempUsageDetail_20' ) end [2025-01-05 15:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:10:22] Production.INFO: ==29486== Releasing lock... [2025-01-05 15:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:10:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:11:05 [end_date_ymd] => 2025-01-05 15:11:05 [RateCDR] => 1 ) [2025-01-05 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:11:05' and `end` < '2025-01-05 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:11:18] Production.INFO: count ==1271 [2025-01-05 15:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:11:05 - End Time 2025-01-05 15:11:05 [2025-01-05 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181055', 'tblTempUsageDetail_20' ) start [2025-01-05 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181055', 'tblTempUsageDetail_20' ) end [2025-01-05 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181055', 'tblTempVendorCDR_20' ) start [2025-01-05 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181055', 'tblTempVendorCDR_20' ) end [2025-01-05 15:11:19] Production.INFO: ProcessCDR(1,14181055,1,1,2) [2025-01-05 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181055', 'tblTempUsageDetail_20' ) start [2025-01-05 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181055', 'tblTempUsageDetail_20' ) end [2025-01-05 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:11:22] Production.INFO: ==29571== Releasing lock... [2025-01-05 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:11:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:12:05 [end_date_ymd] => 2025-01-05 15:12:05 [RateCDR] => 1 ) [2025-01-05 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:12:05' and `end` < '2025-01-05 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:12:18] Production.INFO: count ==1271 [2025-01-05 15:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:12:05 - End Time 2025-01-05 15:12:05 [2025-01-05 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181060', 'tblTempUsageDetail_20' ) start [2025-01-05 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181060', 'tblTempUsageDetail_20' ) end [2025-01-05 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181060', 'tblTempVendorCDR_20' ) start [2025-01-05 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181060', 'tblTempVendorCDR_20' ) end [2025-01-05 15:12:18] Production.INFO: ProcessCDR(1,14181060,1,1,2) [2025-01-05 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181060', 'tblTempUsageDetail_20' ) start [2025-01-05 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181060', 'tblTempUsageDetail_20' ) end [2025-01-05 15:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:12:21] Production.INFO: ==29738== Releasing lock... [2025-01-05 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:13:04 [end_date_ymd] => 2025-01-05 15:13:04 [RateCDR] => 1 ) [2025-01-05 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:13:04' and `end` < '2025-01-05 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:13:17] Production.INFO: count ==1270 [2025-01-05 15:13:17] Production.ERROR: pbx CDR StartTime 2025-01-05 12:13:04 - End Time 2025-01-05 15:13:04 [2025-01-05 15:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181065', 'tblTempUsageDetail_20' ) start [2025-01-05 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181065', 'tblTempUsageDetail_20' ) end [2025-01-05 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181065', 'tblTempVendorCDR_20' ) start [2025-01-05 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181065', 'tblTempVendorCDR_20' ) end [2025-01-05 15:13:17] Production.INFO: ProcessCDR(1,14181065,1,1,2) [2025-01-05 15:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181065', 'tblTempUsageDetail_20' ) start [2025-01-05 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181065', 'tblTempUsageDetail_20' ) end [2025-01-05 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:13:21] Production.INFO: ==29827== Releasing lock... [2025-01-05 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:13:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:14:05 [end_date_ymd] => 2025-01-05 15:14:05 [RateCDR] => 1 ) [2025-01-05 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:14:05' and `end` < '2025-01-05 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:14:18] Production.INFO: count ==1272 [2025-01-05 15:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:14:05 - End Time 2025-01-05 15:14:05 [2025-01-05 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181070', 'tblTempUsageDetail_20' ) start [2025-01-05 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181070', 'tblTempUsageDetail_20' ) end [2025-01-05 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181070', 'tblTempVendorCDR_20' ) start [2025-01-05 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181070', 'tblTempVendorCDR_20' ) end [2025-01-05 15:14:18] Production.INFO: ProcessCDR(1,14181070,1,1,2) [2025-01-05 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181070', 'tblTempUsageDetail_20' ) start [2025-01-05 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181070', 'tblTempUsageDetail_20' ) end [2025-01-05 15:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:14:21] Production.INFO: ==29953== Releasing lock... [2025-01-05 15:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:15:04 [end_date_ymd] => 2025-01-05 15:15:04 [RateCDR] => 1 ) [2025-01-05 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:15:04' and `end` < '2025-01-05 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:15:17] Production.INFO: count ==1279 [2025-01-05 15:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:15:04 - End Time 2025-01-05 15:15:04 [2025-01-05 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181075', 'tblTempUsageDetail_20' ) start [2025-01-05 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181075', 'tblTempUsageDetail_20' ) end [2025-01-05 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181075', 'tblTempVendorCDR_20' ) start [2025-01-05 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181075', 'tblTempVendorCDR_20' ) end [2025-01-05 15:15:18] Production.INFO: ProcessCDR(1,14181075,1,1,2) [2025-01-05 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181075', 'tblTempUsageDetail_20' ) start [2025-01-05 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181075', 'tblTempUsageDetail_20' ) end [2025-01-05 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:15:22] Production.INFO: ==30120== Releasing lock... [2025-01-05 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-05 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:16:05 [end_date_ymd] => 2025-01-05 15:16:05 [RateCDR] => 1 ) [2025-01-05 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:16:05' and `end` < '2025-01-05 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:16:17] Production.INFO: count ==1277 [2025-01-05 15:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:16:05 - End Time 2025-01-05 15:16:05 [2025-01-05 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181080', 'tblTempUsageDetail_20' ) start [2025-01-05 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181080', 'tblTempUsageDetail_20' ) end [2025-01-05 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181080', 'tblTempVendorCDR_20' ) start [2025-01-05 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181080', 'tblTempVendorCDR_20' ) end [2025-01-05 15:16:18] Production.INFO: ProcessCDR(1,14181080,1,1,2) [2025-01-05 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181080', 'tblTempUsageDetail_20' ) start [2025-01-05 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181080', 'tblTempUsageDetail_20' ) end [2025-01-05 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:16:22] Production.INFO: ==30202== Releasing lock... [2025-01-05 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:16:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:17:05 [end_date_ymd] => 2025-01-05 15:17:05 [RateCDR] => 1 ) [2025-01-05 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:17:05' and `end` < '2025-01-05 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:17:18] Production.INFO: count ==1267 [2025-01-05 15:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:17:05 - End Time 2025-01-05 15:17:05 [2025-01-05 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181085', 'tblTempUsageDetail_20' ) start [2025-01-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181085', 'tblTempUsageDetail_20' ) end [2025-01-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181085', 'tblTempVendorCDR_20' ) start [2025-01-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181085', 'tblTempVendorCDR_20' ) end [2025-01-05 15:17:18] Production.INFO: ProcessCDR(1,14181085,1,1,2) [2025-01-05 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181085', 'tblTempUsageDetail_20' ) start [2025-01-05 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181085', 'tblTempUsageDetail_20' ) end [2025-01-05 15:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:17:23] Production.INFO: ==30289== Releasing lock... [2025-01-05 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:17:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:18:05 [end_date_ymd] => 2025-01-05 15:18:05 [RateCDR] => 1 ) [2025-01-05 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:18:05' and `end` < '2025-01-05 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:18:18] Production.INFO: count ==1267 [2025-01-05 15:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:18:05 - End Time 2025-01-05 15:18:05 [2025-01-05 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181090', 'tblTempUsageDetail_20' ) start [2025-01-05 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181090', 'tblTempUsageDetail_20' ) end [2025-01-05 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181090', 'tblTempVendorCDR_20' ) start [2025-01-05 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181090', 'tblTempVendorCDR_20' ) end [2025-01-05 15:18:18] Production.INFO: ProcessCDR(1,14181090,1,1,2) [2025-01-05 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181090', 'tblTempUsageDetail_20' ) start [2025-01-05 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181090', 'tblTempUsageDetail_20' ) end [2025-01-05 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:18:22] Production.INFO: ==30371== Releasing lock... [2025-01-05 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:19:05 [end_date_ymd] => 2025-01-05 15:19:05 [RateCDR] => 1 ) [2025-01-05 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:19:05' and `end` < '2025-01-05 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:19:18] Production.INFO: count ==1264 [2025-01-05 15:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:19:05 - End Time 2025-01-05 15:19:05 [2025-01-05 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181095', 'tblTempUsageDetail_20' ) start [2025-01-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181095', 'tblTempUsageDetail_20' ) end [2025-01-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181095', 'tblTempVendorCDR_20' ) start [2025-01-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181095', 'tblTempVendorCDR_20' ) end [2025-01-05 15:19:19] Production.INFO: ProcessCDR(1,14181095,1,1,2) [2025-01-05 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181095', 'tblTempUsageDetail_20' ) start [2025-01-05 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181095', 'tblTempUsageDetail_20' ) end [2025-01-05 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:19:22] Production.INFO: ==30454== Releasing lock... [2025-01-05 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:20:05 [end_date_ymd] => 2025-01-05 15:20:05 [RateCDR] => 1 ) [2025-01-05 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:20:05' and `end` < '2025-01-05 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:20:18] Production.INFO: count ==1261 [2025-01-05 15:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:20:05 - End Time 2025-01-05 15:20:05 [2025-01-05 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181101', 'tblTempUsageDetail_20' ) start [2025-01-05 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181101', 'tblTempUsageDetail_20' ) end [2025-01-05 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181101', 'tblTempVendorCDR_20' ) start [2025-01-05 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181101', 'tblTempVendorCDR_20' ) end [2025-01-05 15:20:18] Production.INFO: ProcessCDR(1,14181101,1,1,2) [2025-01-05 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181101', 'tblTempUsageDetail_20' ) start [2025-01-05 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181101', 'tblTempUsageDetail_20' ) end [2025-01-05 15:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:20:21] Production.INFO: ==30546== Releasing lock... [2025-01-05 15:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:20:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:21:05 [end_date_ymd] => 2025-01-05 15:21:05 [RateCDR] => 1 ) [2025-01-05 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:21:05' and `end` < '2025-01-05 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:21:19] Production.INFO: count ==1267 [2025-01-05 15:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:21:05 - End Time 2025-01-05 15:21:05 [2025-01-05 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181106', 'tblTempUsageDetail_20' ) start [2025-01-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181106', 'tblTempUsageDetail_20' ) end [2025-01-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181106', 'tblTempVendorCDR_20' ) start [2025-01-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181106', 'tblTempVendorCDR_20' ) end [2025-01-05 15:21:20] Production.INFO: ProcessCDR(1,14181106,1,1,2) [2025-01-05 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181106', 'tblTempUsageDetail_20' ) start [2025-01-05 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181106', 'tblTempUsageDetail_20' ) end [2025-01-05 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:21:23] Production.INFO: ==30635== Releasing lock... [2025-01-05 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:21:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:22:04 [end_date_ymd] => 2025-01-05 15:22:04 [RateCDR] => 1 ) [2025-01-05 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:22:04' and `end` < '2025-01-05 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:22:18] Production.INFO: count ==1265 [2025-01-05 15:22:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:22:04 - End Time 2025-01-05 15:22:04 [2025-01-05 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181111', 'tblTempUsageDetail_20' ) start [2025-01-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181111', 'tblTempUsageDetail_20' ) end [2025-01-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181111', 'tblTempVendorCDR_20' ) start [2025-01-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181111', 'tblTempVendorCDR_20' ) end [2025-01-05 15:22:19] Production.INFO: ProcessCDR(1,14181111,1,1,2) [2025-01-05 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181111', 'tblTempUsageDetail_20' ) start [2025-01-05 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181111', 'tblTempUsageDetail_20' ) end [2025-01-05 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:22:22] Production.INFO: ==30715== Releasing lock... [2025-01-05 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:22:22] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:23:05 [end_date_ymd] => 2025-01-05 15:23:05 [RateCDR] => 1 ) [2025-01-05 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:23:05' and `end` < '2025-01-05 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:23:18] Production.INFO: count ==1262 [2025-01-05 15:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:23:05 - End Time 2025-01-05 15:23:05 [2025-01-05 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181116', 'tblTempUsageDetail_20' ) start [2025-01-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181116', 'tblTempUsageDetail_20' ) end [2025-01-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181116', 'tblTempVendorCDR_20' ) start [2025-01-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181116', 'tblTempVendorCDR_20' ) end [2025-01-05 15:23:18] Production.INFO: ProcessCDR(1,14181116,1,1,2) [2025-01-05 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181116', 'tblTempUsageDetail_20' ) start [2025-01-05 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181116', 'tblTempUsageDetail_20' ) end [2025-01-05 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:23:21] Production.INFO: ==30799== Releasing lock... [2025-01-05 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:23:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:24:05 [end_date_ymd] => 2025-01-05 15:24:05 [RateCDR] => 1 ) [2025-01-05 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:24:05' and `end` < '2025-01-05 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:24:18] Production.INFO: count ==1262 [2025-01-05 15:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:24:05 - End Time 2025-01-05 15:24:05 [2025-01-05 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181121', 'tblTempUsageDetail_20' ) start [2025-01-05 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181121', 'tblTempUsageDetail_20' ) end [2025-01-05 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181121', 'tblTempVendorCDR_20' ) start [2025-01-05 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181121', 'tblTempVendorCDR_20' ) end [2025-01-05 15:24:18] Production.INFO: ProcessCDR(1,14181121,1,1,2) [2025-01-05 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181121', 'tblTempUsageDetail_20' ) start [2025-01-05 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181121', 'tblTempUsageDetail_20' ) end [2025-01-05 15:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:24:21] Production.INFO: ==30880== Releasing lock... [2025-01-05 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:24:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:25:04 [end_date_ymd] => 2025-01-05 15:25:04 [RateCDR] => 1 ) [2025-01-05 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:25:04' and `end` < '2025-01-05 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:25:17] Production.INFO: count ==1263 [2025-01-05 15:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:25:04 - End Time 2025-01-05 15:25:04 [2025-01-05 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181126', 'tblTempUsageDetail_20' ) start [2025-01-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181126', 'tblTempUsageDetail_20' ) end [2025-01-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181126', 'tblTempVendorCDR_20' ) start [2025-01-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181126', 'tblTempVendorCDR_20' ) end [2025-01-05 15:25:18] Production.INFO: ProcessCDR(1,14181126,1,1,2) [2025-01-05 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181126', 'tblTempUsageDetail_20' ) start [2025-01-05 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181126', 'tblTempUsageDetail_20' ) end [2025-01-05 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:25:22] Production.INFO: ==30970== Releasing lock... [2025-01-05 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:26:05 [end_date_ymd] => 2025-01-05 15:26:05 [RateCDR] => 1 ) [2025-01-05 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:26:05' and `end` < '2025-01-05 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:26:18] Production.INFO: count ==1270 [2025-01-05 15:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:26:05 - End Time 2025-01-05 15:26:05 [2025-01-05 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181131', 'tblTempUsageDetail_20' ) start [2025-01-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181131', 'tblTempUsageDetail_20' ) end [2025-01-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181131', 'tblTempVendorCDR_20' ) start [2025-01-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181131', 'tblTempVendorCDR_20' ) end [2025-01-05 15:26:18] Production.INFO: ProcessCDR(1,14181131,1,1,2) [2025-01-05 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181131', 'tblTempUsageDetail_20' ) start [2025-01-05 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181131', 'tblTempUsageDetail_20' ) end [2025-01-05 15:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:26:21] Production.INFO: ==31052== Releasing lock... [2025-01-05 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:26:21] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:27:04 [end_date_ymd] => 2025-01-05 15:27:04 [RateCDR] => 1 ) [2025-01-05 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:27:04' and `end` < '2025-01-05 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:27:17] Production.INFO: count ==1262 [2025-01-05 15:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:27:04 - End Time 2025-01-05 15:27:04 [2025-01-05 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181136', 'tblTempUsageDetail_20' ) start [2025-01-05 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181136', 'tblTempUsageDetail_20' ) end [2025-01-05 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181136', 'tblTempVendorCDR_20' ) start [2025-01-05 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181136', 'tblTempVendorCDR_20' ) end [2025-01-05 15:27:18] Production.INFO: ProcessCDR(1,14181136,1,1,2) [2025-01-05 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181136', 'tblTempUsageDetail_20' ) start [2025-01-05 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181136', 'tblTempUsageDetail_20' ) end [2025-01-05 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:27:22] Production.INFO: ==31139== Releasing lock... [2025-01-05 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:28:05 [end_date_ymd] => 2025-01-05 15:28:05 [RateCDR] => 1 ) [2025-01-05 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:28:05' and `end` < '2025-01-05 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:28:19] Production.INFO: count ==1263 [2025-01-05 15:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:28:05 - End Time 2025-01-05 15:28:05 [2025-01-05 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181141', 'tblTempUsageDetail_20' ) start [2025-01-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181141', 'tblTempUsageDetail_20' ) end [2025-01-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181141', 'tblTempVendorCDR_20' ) start [2025-01-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181141', 'tblTempVendorCDR_20' ) end [2025-01-05 15:28:20] Production.INFO: ProcessCDR(1,14181141,1,1,2) [2025-01-05 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181141', 'tblTempUsageDetail_20' ) start [2025-01-05 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181141', 'tblTempUsageDetail_20' ) end [2025-01-05 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:28:24] Production.INFO: ==31229== Releasing lock... [2025-01-05 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:28:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:29:05 [end_date_ymd] => 2025-01-05 15:29:05 [RateCDR] => 1 ) [2025-01-05 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:29:05' and `end` < '2025-01-05 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:29:18] Production.INFO: count ==1262 [2025-01-05 15:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:29:05 - End Time 2025-01-05 15:29:05 [2025-01-05 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181146', 'tblTempUsageDetail_20' ) start [2025-01-05 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181146', 'tblTempUsageDetail_20' ) end [2025-01-05 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181146', 'tblTempVendorCDR_20' ) start [2025-01-05 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181146', 'tblTempVendorCDR_20' ) end [2025-01-05 15:29:18] Production.INFO: ProcessCDR(1,14181146,1,1,2) [2025-01-05 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181146', 'tblTempUsageDetail_20' ) start [2025-01-05 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181146', 'tblTempUsageDetail_20' ) end [2025-01-05 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:29:23] Production.INFO: ==31352== Releasing lock... [2025-01-05 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:29:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:30:05 [end_date_ymd] => 2025-01-05 15:30:05 [RateCDR] => 1 ) [2025-01-05 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:30:05' and `end` < '2025-01-05 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:30:19] Production.INFO: count ==1262 [2025-01-05 15:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:30:05 - End Time 2025-01-05 15:30:05 [2025-01-05 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181152', 'tblTempUsageDetail_20' ) start [2025-01-05 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181152', 'tblTempUsageDetail_20' ) end [2025-01-05 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181152', 'tblTempVendorCDR_20' ) start [2025-01-05 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181152', 'tblTempVendorCDR_20' ) end [2025-01-05 15:30:19] Production.INFO: ProcessCDR(1,14181152,1,1,2) [2025-01-05 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181152', 'tblTempUsageDetail_20' ) start [2025-01-05 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181152', 'tblTempUsageDetail_20' ) end [2025-01-05 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:30:22] Production.INFO: ==31435== Releasing lock... [2025-01-05 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:31:05 [end_date_ymd] => 2025-01-05 15:31:05 [RateCDR] => 1 ) [2025-01-05 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:31:05' and `end` < '2025-01-05 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:31:20] Production.INFO: count ==1262 [2025-01-05 15:31:20] Production.ERROR: pbx CDR StartTime 2025-01-05 12:31:05 - End Time 2025-01-05 15:31:05 [2025-01-05 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181157', 'tblTempUsageDetail_20' ) start [2025-01-05 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181157', 'tblTempUsageDetail_20' ) end [2025-01-05 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181157', 'tblTempVendorCDR_20' ) start [2025-01-05 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181157', 'tblTempVendorCDR_20' ) end [2025-01-05 15:31:20] Production.INFO: ProcessCDR(1,14181157,1,1,2) [2025-01-05 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181157', 'tblTempUsageDetail_20' ) start [2025-01-05 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181157', 'tblTempUsageDetail_20' ) end [2025-01-05 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:31:23] Production.INFO: ==31517== Releasing lock... [2025-01-05 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:31:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:32:05 [end_date_ymd] => 2025-01-05 15:32:05 [RateCDR] => 1 ) [2025-01-05 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:32:05' and `end` < '2025-01-05 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:32:19] Production.INFO: count ==1262 [2025-01-05 15:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:32:05 - End Time 2025-01-05 15:32:05 [2025-01-05 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181162', 'tblTempUsageDetail_20' ) start [2025-01-05 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181162', 'tblTempUsageDetail_20' ) end [2025-01-05 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181162', 'tblTempVendorCDR_20' ) start [2025-01-05 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181162', 'tblTempVendorCDR_20' ) end [2025-01-05 15:32:19] Production.INFO: ProcessCDR(1,14181162,1,1,2) [2025-01-05 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181162', 'tblTempUsageDetail_20' ) start [2025-01-05 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181162', 'tblTempUsageDetail_20' ) end [2025-01-05 15:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:32:23] Production.INFO: ==31599== Releasing lock... [2025-01-05 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:32:23] Production.INFO: 38 MB #Memory Used# [2025-01-05 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:33:05 [end_date_ymd] => 2025-01-05 15:33:05 [RateCDR] => 1 ) [2025-01-05 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:33:05' and `end` < '2025-01-05 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:33:18] Production.INFO: count ==1263 [2025-01-05 15:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:33:05 - End Time 2025-01-05 15:33:05 [2025-01-05 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181167', 'tblTempUsageDetail_20' ) start [2025-01-05 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181167', 'tblTempUsageDetail_20' ) end [2025-01-05 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181167', 'tblTempVendorCDR_20' ) start [2025-01-05 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181167', 'tblTempVendorCDR_20' ) end [2025-01-05 15:33:18] Production.INFO: ProcessCDR(1,14181167,1,1,2) [2025-01-05 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181167', 'tblTempUsageDetail_20' ) start [2025-01-05 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181167', 'tblTempUsageDetail_20' ) end [2025-01-05 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:33:23] Production.INFO: ==31682== Releasing lock... [2025-01-05 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:34:05 [end_date_ymd] => 2025-01-05 15:34:05 [RateCDR] => 1 ) [2025-01-05 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:34:05' and `end` < '2025-01-05 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:34:17] Production.INFO: count ==1261 [2025-01-05 15:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:34:05 - End Time 2025-01-05 15:34:05 [2025-01-05 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181172', 'tblTempUsageDetail_20' ) start [2025-01-05 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181172', 'tblTempUsageDetail_20' ) end [2025-01-05 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181172', 'tblTempVendorCDR_20' ) start [2025-01-05 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181172', 'tblTempVendorCDR_20' ) end [2025-01-05 15:34:18] Production.INFO: ProcessCDR(1,14181172,1,1,2) [2025-01-05 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181172', 'tblTempUsageDetail_20' ) start [2025-01-05 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181172', 'tblTempUsageDetail_20' ) end [2025-01-05 15:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:34:21] Production.INFO: ==31765== Releasing lock... [2025-01-05 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:34:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:35:05 [end_date_ymd] => 2025-01-05 15:35:05 [RateCDR] => 1 ) [2025-01-05 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:35:05' and `end` < '2025-01-05 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:35:18] Production.INFO: count ==1261 [2025-01-05 15:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:35:05 - End Time 2025-01-05 15:35:05 [2025-01-05 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181177', 'tblTempUsageDetail_20' ) start [2025-01-05 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181177', 'tblTempUsageDetail_20' ) end [2025-01-05 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181177', 'tblTempVendorCDR_20' ) start [2025-01-05 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181177', 'tblTempVendorCDR_20' ) end [2025-01-05 15:35:18] Production.INFO: ProcessCDR(1,14181177,1,1,2) [2025-01-05 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181177', 'tblTempUsageDetail_20' ) start [2025-01-05 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181177', 'tblTempUsageDetail_20' ) end [2025-01-05 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:35:23] Production.INFO: ==31857== Releasing lock... [2025-01-05 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:36:05 [end_date_ymd] => 2025-01-05 15:36:05 [RateCDR] => 1 ) [2025-01-05 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:36:05' and `end` < '2025-01-05 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:36:17] Production.INFO: count ==1260 [2025-01-05 15:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:36:05 - End Time 2025-01-05 15:36:05 [2025-01-05 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181182', 'tblTempUsageDetail_20' ) start [2025-01-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181182', 'tblTempUsageDetail_20' ) end [2025-01-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181182', 'tblTempVendorCDR_20' ) start [2025-01-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181182', 'tblTempVendorCDR_20' ) end [2025-01-05 15:36:18] Production.INFO: ProcessCDR(1,14181182,1,1,2) [2025-01-05 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181182', 'tblTempUsageDetail_20' ) start [2025-01-05 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181182', 'tblTempUsageDetail_20' ) end [2025-01-05 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:36:22] Production.INFO: ==31937== Releasing lock... [2025-01-05 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:36:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:37:05 [end_date_ymd] => 2025-01-05 15:37:05 [RateCDR] => 1 ) [2025-01-05 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:37:05' and `end` < '2025-01-05 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:37:17] Production.INFO: count ==1247 [2025-01-05 15:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:37:05 - End Time 2025-01-05 15:37:05 [2025-01-05 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181187', 'tblTempUsageDetail_20' ) start [2025-01-05 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181187', 'tblTempUsageDetail_20' ) end [2025-01-05 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181187', 'tblTempVendorCDR_20' ) start [2025-01-05 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181187', 'tblTempVendorCDR_20' ) end [2025-01-05 15:37:18] Production.INFO: ProcessCDR(1,14181187,1,1,2) [2025-01-05 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181187', 'tblTempUsageDetail_20' ) start [2025-01-05 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181187', 'tblTempUsageDetail_20' ) end [2025-01-05 15:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:37:21] Production.INFO: ==32021== Releasing lock... [2025-01-05 15:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:37:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:38:05 [end_date_ymd] => 2025-01-05 15:38:05 [RateCDR] => 1 ) [2025-01-05 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:38:05' and `end` < '2025-01-05 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:38:19] Production.INFO: count ==1246 [2025-01-05 15:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:38:05 - End Time 2025-01-05 15:38:05 [2025-01-05 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181192', 'tblTempUsageDetail_20' ) start [2025-01-05 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181192', 'tblTempUsageDetail_20' ) end [2025-01-05 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181192', 'tblTempVendorCDR_20' ) start [2025-01-05 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181192', 'tblTempVendorCDR_20' ) end [2025-01-05 15:38:20] Production.INFO: ProcessCDR(1,14181192,1,1,2) [2025-01-05 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181192', 'tblTempUsageDetail_20' ) start [2025-01-05 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181192', 'tblTempUsageDetail_20' ) end [2025-01-05 15:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:38:23] Production.INFO: ==32104== Releasing lock... [2025-01-05 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:38:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:39:05 [end_date_ymd] => 2025-01-05 15:39:05 [RateCDR] => 1 ) [2025-01-05 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:39:05' and `end` < '2025-01-05 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:39:19] Production.INFO: count ==1252 [2025-01-05 15:39:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:39:05 - End Time 2025-01-05 15:39:05 [2025-01-05 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181197', 'tblTempUsageDetail_20' ) start [2025-01-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181197', 'tblTempUsageDetail_20' ) end [2025-01-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181197', 'tblTempVendorCDR_20' ) start [2025-01-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181197', 'tblTempVendorCDR_20' ) end [2025-01-05 15:39:19] Production.INFO: ProcessCDR(1,14181197,1,1,2) [2025-01-05 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181197', 'tblTempUsageDetail_20' ) start [2025-01-05 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181197', 'tblTempUsageDetail_20' ) end [2025-01-05 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:39:22] Production.INFO: ==32201== Releasing lock... [2025-01-05 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:39:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:40:06 [end_date_ymd] => 2025-01-05 15:40:06 [RateCDR] => 1 ) [2025-01-05 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:40:06' and `end` < '2025-01-05 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:40:19] Production.INFO: count ==1255 [2025-01-05 15:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:40:06 - End Time 2025-01-05 15:40:06 [2025-01-05 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181203', 'tblTempUsageDetail_20' ) start [2025-01-05 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181203', 'tblTempUsageDetail_20' ) end [2025-01-05 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181203', 'tblTempVendorCDR_20' ) start [2025-01-05 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181203', 'tblTempVendorCDR_20' ) end [2025-01-05 15:40:19] Production.INFO: ProcessCDR(1,14181203,1,1,2) [2025-01-05 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181203', 'tblTempUsageDetail_20' ) start [2025-01-05 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181203', 'tblTempUsageDetail_20' ) end [2025-01-05 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:40:22] Production.INFO: ==32319== Releasing lock... [2025-01-05 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-05 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:41:05 [end_date_ymd] => 2025-01-05 15:41:05 [RateCDR] => 1 ) [2025-01-05 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:41:05' and `end` < '2025-01-05 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:41:19] Production.INFO: count ==1255 [2025-01-05 15:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:41:05 - End Time 2025-01-05 15:41:05 [2025-01-05 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181208', 'tblTempUsageDetail_20' ) start [2025-01-05 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181208', 'tblTempUsageDetail_20' ) end [2025-01-05 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181208', 'tblTempVendorCDR_20' ) start [2025-01-05 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181208', 'tblTempVendorCDR_20' ) end [2025-01-05 15:41:19] Production.INFO: ProcessCDR(1,14181208,1,1,2) [2025-01-05 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181208', 'tblTempUsageDetail_20' ) start [2025-01-05 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181208', 'tblTempUsageDetail_20' ) end [2025-01-05 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:41:22] Production.INFO: ==32434== Releasing lock... [2025-01-05 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:42:05 [end_date_ymd] => 2025-01-05 15:42:05 [RateCDR] => 1 ) [2025-01-05 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:42:05' and `end` < '2025-01-05 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:42:18] Production.INFO: count ==1243 [2025-01-05 15:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:42:05 - End Time 2025-01-05 15:42:05 [2025-01-05 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181213', 'tblTempUsageDetail_20' ) start [2025-01-05 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181213', 'tblTempUsageDetail_20' ) end [2025-01-05 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181213', 'tblTempVendorCDR_20' ) start [2025-01-05 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181213', 'tblTempVendorCDR_20' ) end [2025-01-05 15:42:18] Production.INFO: ProcessCDR(1,14181213,1,1,2) [2025-01-05 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181213', 'tblTempUsageDetail_20' ) start [2025-01-05 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181213', 'tblTempUsageDetail_20' ) end [2025-01-05 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:42:23] Production.INFO: ==32535== Releasing lock... [2025-01-05 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:42:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-05 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:43:04 [end_date_ymd] => 2025-01-05 15:43:04 [RateCDR] => 1 ) [2025-01-05 15:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:43:04' and `end` < '2025-01-05 15:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:43:17] Production.INFO: count ==1241 [2025-01-05 15:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:43:04 - End Time 2025-01-05 15:43:04 [2025-01-05 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181218', 'tblTempUsageDetail_20' ) start [2025-01-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181218', 'tblTempUsageDetail_20' ) end [2025-01-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181218', 'tblTempVendorCDR_20' ) start [2025-01-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181218', 'tblTempVendorCDR_20' ) end [2025-01-05 15:43:18] Production.INFO: ProcessCDR(1,14181218,1,1,2) [2025-01-05 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181218', 'tblTempUsageDetail_20' ) start [2025-01-05 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181218', 'tblTempUsageDetail_20' ) end [2025-01-05 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:43:21] Production.INFO: ==32624== Releasing lock... [2025-01-05 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:43:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:44:05 [end_date_ymd] => 2025-01-05 15:44:05 [RateCDR] => 1 ) [2025-01-05 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:44:05' and `end` < '2025-01-05 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:44:19] Production.INFO: count ==1233 [2025-01-05 15:44:20] Production.ERROR: pbx CDR StartTime 2025-01-05 12:44:05 - End Time 2025-01-05 15:44:05 [2025-01-05 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181223', 'tblTempUsageDetail_20' ) start [2025-01-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181223', 'tblTempUsageDetail_20' ) end [2025-01-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181223', 'tblTempVendorCDR_20' ) start [2025-01-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181223', 'tblTempVendorCDR_20' ) end [2025-01-05 15:44:20] Production.INFO: ProcessCDR(1,14181223,1,1,2) [2025-01-05 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181223', 'tblTempUsageDetail_20' ) start [2025-01-05 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181223', 'tblTempUsageDetail_20' ) end [2025-01-05 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:44:24] Production.INFO: ==32707== Releasing lock... [2025-01-05 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:44:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:45:04 [end_date_ymd] => 2025-01-05 15:45:04 [RateCDR] => 1 ) [2025-01-05 15:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:45:04' and `end` < '2025-01-05 15:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:45:17] Production.INFO: count ==1219 [2025-01-05 15:45:17] Production.ERROR: pbx CDR StartTime 2025-01-05 12:45:04 - End Time 2025-01-05 15:45:04 [2025-01-05 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181228', 'tblTempUsageDetail_20' ) start [2025-01-05 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181228', 'tblTempUsageDetail_20' ) end [2025-01-05 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181228', 'tblTempVendorCDR_20' ) start [2025-01-05 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181228', 'tblTempVendorCDR_20' ) end [2025-01-05 15:45:17] Production.INFO: ProcessCDR(1,14181228,1,1,2) [2025-01-05 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181228', 'tblTempUsageDetail_20' ) start [2025-01-05 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181228', 'tblTempUsageDetail_20' ) end [2025-01-05 15:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:45:21] Production.INFO: ==380== Releasing lock... [2025-01-05 15:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:45:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:46:04 [end_date_ymd] => 2025-01-05 15:46:04 [RateCDR] => 1 ) [2025-01-05 15:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:46:04' and `end` < '2025-01-05 15:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:46:17] Production.INFO: count ==1217 [2025-01-05 15:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:46:04 - End Time 2025-01-05 15:46:04 [2025-01-05 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181233', 'tblTempUsageDetail_20' ) start [2025-01-05 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181233', 'tblTempUsageDetail_20' ) end [2025-01-05 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181233', 'tblTempVendorCDR_20' ) start [2025-01-05 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181233', 'tblTempVendorCDR_20' ) end [2025-01-05 15:46:18] Production.INFO: ProcessCDR(1,14181233,1,1,2) [2025-01-05 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181233', 'tblTempUsageDetail_20' ) start [2025-01-05 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181233', 'tblTempUsageDetail_20' ) end [2025-01-05 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:46:21] Production.INFO: ==461== Releasing lock... [2025-01-05 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:46:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:47:06 [end_date_ymd] => 2025-01-05 15:47:06 [RateCDR] => 1 ) [2025-01-05 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:47:06' and `end` < '2025-01-05 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:47:19] Production.INFO: count ==1213 [2025-01-05 15:47:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:47:06 - End Time 2025-01-05 15:47:06 [2025-01-05 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181238', 'tblTempUsageDetail_20' ) start [2025-01-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181238', 'tblTempUsageDetail_20' ) end [2025-01-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181238', 'tblTempVendorCDR_20' ) start [2025-01-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181238', 'tblTempVendorCDR_20' ) end [2025-01-05 15:47:19] Production.INFO: ProcessCDR(1,14181238,1,1,2) [2025-01-05 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181238', 'tblTempUsageDetail_20' ) start [2025-01-05 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181238', 'tblTempUsageDetail_20' ) end [2025-01-05 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:47:22] Production.INFO: ==548== Releasing lock... [2025-01-05 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:47:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-05 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:48:05 [end_date_ymd] => 2025-01-05 15:48:05 [RateCDR] => 1 ) [2025-01-05 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:48:05' and `end` < '2025-01-05 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:48:18] Production.INFO: count ==1199 [2025-01-05 15:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:48:05 - End Time 2025-01-05 15:48:05 [2025-01-05 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181243', 'tblTempUsageDetail_20' ) start [2025-01-05 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181243', 'tblTempUsageDetail_20' ) end [2025-01-05 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181243', 'tblTempVendorCDR_20' ) start [2025-01-05 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181243', 'tblTempVendorCDR_20' ) end [2025-01-05 15:48:18] Production.INFO: ProcessCDR(1,14181243,1,1,2) [2025-01-05 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181243', 'tblTempUsageDetail_20' ) start [2025-01-05 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181243', 'tblTempUsageDetail_20' ) end [2025-01-05 15:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:48:21] Production.INFO: ==645== Releasing lock... [2025-01-05 15:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:49:05 [end_date_ymd] => 2025-01-05 15:49:05 [RateCDR] => 1 ) [2025-01-05 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:49:05' and `end` < '2025-01-05 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:49:18] Production.INFO: count ==1199 [2025-01-05 15:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:49:05 - End Time 2025-01-05 15:49:05 [2025-01-05 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181248', 'tblTempUsageDetail_20' ) start [2025-01-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181248', 'tblTempUsageDetail_20' ) end [2025-01-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181248', 'tblTempVendorCDR_20' ) start [2025-01-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181248', 'tblTempVendorCDR_20' ) end [2025-01-05 15:49:18] Production.INFO: ProcessCDR(1,14181248,1,1,2) [2025-01-05 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181248', 'tblTempUsageDetail_20' ) start [2025-01-05 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181248', 'tblTempUsageDetail_20' ) end [2025-01-05 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:49:21] Production.INFO: ==753== Releasing lock... [2025-01-05 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:49:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:50:05 [end_date_ymd] => 2025-01-05 15:50:05 [RateCDR] => 1 ) [2025-01-05 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:50:05' and `end` < '2025-01-05 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:50:18] Production.INFO: count ==1199 [2025-01-05 15:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:50:05 - End Time 2025-01-05 15:50:05 [2025-01-05 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181254', 'tblTempUsageDetail_20' ) start [2025-01-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181254', 'tblTempUsageDetail_20' ) end [2025-01-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181254', 'tblTempVendorCDR_20' ) start [2025-01-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181254', 'tblTempVendorCDR_20' ) end [2025-01-05 15:50:19] Production.INFO: ProcessCDR(1,14181254,1,1,2) [2025-01-05 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181254', 'tblTempUsageDetail_20' ) start [2025-01-05 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181254', 'tblTempUsageDetail_20' ) end [2025-01-05 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:50:22] Production.INFO: ==836== Releasing lock... [2025-01-05 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:50:22] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:51:05 [end_date_ymd] => 2025-01-05 15:51:05 [RateCDR] => 1 ) [2025-01-05 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:51:05' and `end` < '2025-01-05 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:51:18] Production.INFO: count ==1192 [2025-01-05 15:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:51:05 - End Time 2025-01-05 15:51:05 [2025-01-05 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181259', 'tblTempUsageDetail_20' ) start [2025-01-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181259', 'tblTempUsageDetail_20' ) end [2025-01-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181259', 'tblTempVendorCDR_20' ) start [2025-01-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181259', 'tblTempVendorCDR_20' ) end [2025-01-05 15:51:18] Production.INFO: ProcessCDR(1,14181259,1,1,2) [2025-01-05 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181259', 'tblTempUsageDetail_20' ) start [2025-01-05 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181259', 'tblTempUsageDetail_20' ) end [2025-01-05 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:51:23] Production.INFO: ==916== Releasing lock... [2025-01-05 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:51:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:52:05 [end_date_ymd] => 2025-01-05 15:52:05 [RateCDR] => 1 ) [2025-01-05 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:52:05' and `end` < '2025-01-05 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:52:19] Production.INFO: count ==1197 [2025-01-05 15:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:52:05 - End Time 2025-01-05 15:52:05 [2025-01-05 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181264', 'tblTempUsageDetail_20' ) start [2025-01-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181264', 'tblTempUsageDetail_20' ) end [2025-01-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181264', 'tblTempVendorCDR_20' ) start [2025-01-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181264', 'tblTempVendorCDR_20' ) end [2025-01-05 15:52:19] Production.INFO: ProcessCDR(1,14181264,1,1,2) [2025-01-05 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181264', 'tblTempUsageDetail_20' ) start [2025-01-05 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181264', 'tblTempUsageDetail_20' ) end [2025-01-05 15:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:52:24] Production.INFO: ==1002== Releasing lock... [2025-01-05 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:52:24] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:53:05 [end_date_ymd] => 2025-01-05 15:53:05 [RateCDR] => 1 ) [2025-01-05 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:53:05' and `end` < '2025-01-05 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:53:18] Production.INFO: count ==1199 [2025-01-05 15:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:53:05 - End Time 2025-01-05 15:53:05 [2025-01-05 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181269', 'tblTempUsageDetail_20' ) start [2025-01-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181269', 'tblTempUsageDetail_20' ) end [2025-01-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181269', 'tblTempVendorCDR_20' ) start [2025-01-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181269', 'tblTempVendorCDR_20' ) end [2025-01-05 15:53:18] Production.INFO: ProcessCDR(1,14181269,1,1,2) [2025-01-05 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181269', 'tblTempUsageDetail_20' ) start [2025-01-05 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181269', 'tblTempUsageDetail_20' ) end [2025-01-05 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:53:23] Production.INFO: ==1089== Releasing lock... [2025-01-05 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:53:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:54:05 [end_date_ymd] => 2025-01-05 15:54:05 [RateCDR] => 1 ) [2025-01-05 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:54:05' and `end` < '2025-01-05 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:54:17] Production.INFO: count ==1200 [2025-01-05 15:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:54:05 - End Time 2025-01-05 15:54:05 [2025-01-05 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181274', 'tblTempUsageDetail_20' ) start [2025-01-05 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181274', 'tblTempUsageDetail_20' ) end [2025-01-05 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181274', 'tblTempVendorCDR_20' ) start [2025-01-05 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181274', 'tblTempVendorCDR_20' ) end [2025-01-05 15:54:18] Production.INFO: ProcessCDR(1,14181274,1,1,2) [2025-01-05 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181274', 'tblTempUsageDetail_20' ) start [2025-01-05 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181274', 'tblTempUsageDetail_20' ) end [2025-01-05 15:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:54:22] Production.INFO: ==1175== Releasing lock... [2025-01-05 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:54:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 15:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:55:04 [end_date_ymd] => 2025-01-05 15:55:04 [RateCDR] => 1 ) [2025-01-05 15:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:55:04' and `end` < '2025-01-05 15:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:55:17] Production.INFO: count ==1190 [2025-01-05 15:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 12:55:04 - End Time 2025-01-05 15:55:04 [2025-01-05 15:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181279', 'tblTempUsageDetail_20' ) start [2025-01-05 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181279', 'tblTempUsageDetail_20' ) end [2025-01-05 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181279', 'tblTempVendorCDR_20' ) start [2025-01-05 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181279', 'tblTempVendorCDR_20' ) end [2025-01-05 15:55:17] Production.INFO: ProcessCDR(1,14181279,1,1,2) [2025-01-05 15:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181279', 'tblTempUsageDetail_20' ) start [2025-01-05 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181279', 'tblTempUsageDetail_20' ) end [2025-01-05 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:55:21] Production.INFO: ==1273== Releasing lock... [2025-01-05 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:55:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:56:05 [end_date_ymd] => 2025-01-05 15:56:05 [RateCDR] => 1 ) [2025-01-05 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:56:05' and `end` < '2025-01-05 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:56:19] Production.INFO: count ==1190 [2025-01-05 15:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:56:05 - End Time 2025-01-05 15:56:05 [2025-01-05 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181284', 'tblTempUsageDetail_20' ) start [2025-01-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181284', 'tblTempUsageDetail_20' ) end [2025-01-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181284', 'tblTempVendorCDR_20' ) start [2025-01-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181284', 'tblTempVendorCDR_20' ) end [2025-01-05 15:56:19] Production.INFO: ProcessCDR(1,14181284,1,1,2) [2025-01-05 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181284', 'tblTempUsageDetail_20' ) start [2025-01-05 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181284', 'tblTempUsageDetail_20' ) end [2025-01-05 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:56:22] Production.INFO: ==1359== Releasing lock... [2025-01-05 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:56:22] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:57:05 [end_date_ymd] => 2025-01-05 15:57:05 [RateCDR] => 1 ) [2025-01-05 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:57:05' and `end` < '2025-01-05 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:57:18] Production.INFO: count ==1189 [2025-01-05 15:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 12:57:05 - End Time 2025-01-05 15:57:05 [2025-01-05 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181289', 'tblTempUsageDetail_20' ) start [2025-01-05 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181289', 'tblTempUsageDetail_20' ) end [2025-01-05 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181289', 'tblTempVendorCDR_20' ) start [2025-01-05 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181289', 'tblTempVendorCDR_20' ) end [2025-01-05 15:57:18] Production.INFO: ProcessCDR(1,14181289,1,1,2) [2025-01-05 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181289', 'tblTempUsageDetail_20' ) start [2025-01-05 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181289', 'tblTempUsageDetail_20' ) end [2025-01-05 15:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:57:21] Production.INFO: ==1443== Releasing lock... [2025-01-05 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:57:21] Production.INFO: 37 MB #Memory Used# [2025-01-05 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:58:06 [end_date_ymd] => 2025-01-05 15:58:06 [RateCDR] => 1 ) [2025-01-05 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:58:06' and `end` < '2025-01-05 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:58:19] Production.INFO: count ==1201 [2025-01-05 15:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:58:06 - End Time 2025-01-05 15:58:06 [2025-01-05 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181294', 'tblTempUsageDetail_20' ) start [2025-01-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181294', 'tblTempUsageDetail_20' ) end [2025-01-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181294', 'tblTempVendorCDR_20' ) start [2025-01-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181294', 'tblTempVendorCDR_20' ) end [2025-01-05 15:58:19] Production.INFO: ProcessCDR(1,14181294,1,1,2) [2025-01-05 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181294', 'tblTempUsageDetail_20' ) start [2025-01-05 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181294', 'tblTempUsageDetail_20' ) end [2025-01-05 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:58:22] Production.INFO: ==1556== Releasing lock... [2025-01-05 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 12:59:04 [end_date_ymd] => 2025-01-05 15:59:04 [RateCDR] => 1 ) [2025-01-05 15:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 12:59:04' and `end` < '2025-01-05 15:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 15:59:19] Production.INFO: count ==1193 [2025-01-05 15:59:19] Production.ERROR: pbx CDR StartTime 2025-01-05 12:59:04 - End Time 2025-01-05 15:59:04 [2025-01-05 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181299', 'tblTempUsageDetail_20' ) start [2025-01-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181299', 'tblTempUsageDetail_20' ) end [2025-01-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181299', 'tblTempVendorCDR_20' ) start [2025-01-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181299', 'tblTempVendorCDR_20' ) end [2025-01-05 15:59:20] Production.INFO: ProcessCDR(1,14181299,1,1,2) [2025-01-05 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181299', 'tblTempUsageDetail_20' ) start [2025-01-05 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181299', 'tblTempUsageDetail_20' ) end [2025-01-05 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 15:59:23] Production.INFO: ==1641== Releasing lock... [2025-01-05 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 15:59:23] Production.INFO: 37 MB #Memory Used# [2025-01-05 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:00:06 [end_date_ymd] => 2025-01-05 16:00:06 [RateCDR] => 1 ) [2025-01-05 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:00:06' and `end` < '2025-01-05 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:00:19] Production.INFO: count ==1189 [2025-01-05 16:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:00:06 - End Time 2025-01-05 16:00:06 [2025-01-05 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181305', 'tblTempUsageDetail_20' ) start [2025-01-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181305', 'tblTempUsageDetail_20' ) end [2025-01-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181305', 'tblTempVendorCDR_20' ) start [2025-01-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181305', 'tblTempVendorCDR_20' ) end [2025-01-05 16:00:19] Production.INFO: ProcessCDR(1,14181305,1,1,2) [2025-01-05 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181305', 'tblTempUsageDetail_20' ) start [2025-01-05 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181305', 'tblTempUsageDetail_20' ) end [2025-01-05 16:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:00:22] Production.INFO: ==1727== Releasing lock... [2025-01-05 16:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:00:22] Production.INFO: 37 MB #Memory Used# [2025-01-05 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:01:05 [end_date_ymd] => 2025-01-05 16:01:05 [RateCDR] => 1 ) [2025-01-05 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:01:05' and `end` < '2025-01-05 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:01:18] Production.INFO: count ==1162 [2025-01-05 16:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:01:05 - End Time 2025-01-05 16:01:05 [2025-01-05 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181310', 'tblTempUsageDetail_20' ) start [2025-01-05 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181310', 'tblTempUsageDetail_20' ) end [2025-01-05 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181310', 'tblTempVendorCDR_20' ) start [2025-01-05 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181310', 'tblTempVendorCDR_20' ) end [2025-01-05 16:01:18] Production.INFO: ProcessCDR(1,14181310,1,1,2) [2025-01-05 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181310', 'tblTempUsageDetail_20' ) start [2025-01-05 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181310', 'tblTempUsageDetail_20' ) end [2025-01-05 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:01:21] Production.INFO: ==1866== Releasing lock... [2025-01-05 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:01:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:02:05 [end_date_ymd] => 2025-01-05 16:02:05 [RateCDR] => 1 ) [2025-01-05 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:02:05' and `end` < '2025-01-05 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:02:19] Production.INFO: count ==1164 [2025-01-05 16:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:02:05 - End Time 2025-01-05 16:02:05 [2025-01-05 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181315', 'tblTempUsageDetail_20' ) start [2025-01-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181315', 'tblTempUsageDetail_20' ) end [2025-01-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181315', 'tblTempVendorCDR_20' ) start [2025-01-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181315', 'tblTempVendorCDR_20' ) end [2025-01-05 16:02:19] Production.INFO: ProcessCDR(1,14181315,1,1,2) [2025-01-05 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181315', 'tblTempUsageDetail_20' ) start [2025-01-05 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181315', 'tblTempUsageDetail_20' ) end [2025-01-05 16:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:02:24] Production.INFO: ==1951== Releasing lock... [2025-01-05 16:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:02:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:03:05 [end_date_ymd] => 2025-01-05 16:03:05 [RateCDR] => 1 ) [2025-01-05 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:03:05' and `end` < '2025-01-05 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:03:18] Production.INFO: count ==1164 [2025-01-05 16:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:03:05 - End Time 2025-01-05 16:03:05 [2025-01-05 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181320', 'tblTempUsageDetail_20' ) start [2025-01-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181320', 'tblTempUsageDetail_20' ) end [2025-01-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181320', 'tblTempVendorCDR_20' ) start [2025-01-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181320', 'tblTempVendorCDR_20' ) end [2025-01-05 16:03:18] Production.INFO: ProcessCDR(1,14181320,1,1,2) [2025-01-05 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181320', 'tblTempUsageDetail_20' ) start [2025-01-05 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181320', 'tblTempUsageDetail_20' ) end [2025-01-05 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:03:21] Production.INFO: ==2036== Releasing lock... [2025-01-05 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:03:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:04:05 [end_date_ymd] => 2025-01-05 16:04:05 [RateCDR] => 1 ) [2025-01-05 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:04:05' and `end` < '2025-01-05 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:04:18] Production.INFO: count ==1157 [2025-01-05 16:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:04:05 - End Time 2025-01-05 16:04:05 [2025-01-05 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181325', 'tblTempUsageDetail_20' ) start [2025-01-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181325', 'tblTempUsageDetail_20' ) end [2025-01-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181325', 'tblTempVendorCDR_20' ) start [2025-01-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181325', 'tblTempVendorCDR_20' ) end [2025-01-05 16:04:18] Production.INFO: ProcessCDR(1,14181325,1,1,2) [2025-01-05 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181325', 'tblTempUsageDetail_20' ) start [2025-01-05 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181325', 'tblTempUsageDetail_20' ) end [2025-01-05 16:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:04:23] Production.INFO: ==2124== Releasing lock... [2025-01-05 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:04:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:05:04 [end_date_ymd] => 2025-01-05 16:05:04 [RateCDR] => 1 ) [2025-01-05 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:05:04' and `end` < '2025-01-05 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:05:17] Production.INFO: count ==1149 [2025-01-05 16:05:17] Production.ERROR: pbx CDR StartTime 2025-01-05 13:05:04 - End Time 2025-01-05 16:05:04 [2025-01-05 16:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181330', 'tblTempUsageDetail_20' ) start [2025-01-05 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181330', 'tblTempUsageDetail_20' ) end [2025-01-05 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181330', 'tblTempVendorCDR_20' ) start [2025-01-05 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181330', 'tblTempVendorCDR_20' ) end [2025-01-05 16:05:17] Production.INFO: ProcessCDR(1,14181330,1,1,2) [2025-01-05 16:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181330', 'tblTempUsageDetail_20' ) start [2025-01-05 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181330', 'tblTempUsageDetail_20' ) end [2025-01-05 16:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:05:21] Production.INFO: ==2205== Releasing lock... [2025-01-05 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:05:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:06:04 [end_date_ymd] => 2025-01-05 16:06:04 [RateCDR] => 1 ) [2025-01-05 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:06:04' and `end` < '2025-01-05 16:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:06:19] Production.INFO: count ==1143 [2025-01-05 16:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:06:04 - End Time 2025-01-05 16:06:04 [2025-01-05 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181335', 'tblTempUsageDetail_20' ) start [2025-01-05 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181335', 'tblTempUsageDetail_20' ) end [2025-01-05 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181335', 'tblTempVendorCDR_20' ) start [2025-01-05 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181335', 'tblTempVendorCDR_20' ) end [2025-01-05 16:06:19] Production.INFO: ProcessCDR(1,14181335,1,1,2) [2025-01-05 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181335', 'tblTempUsageDetail_20' ) start [2025-01-05 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181335', 'tblTempUsageDetail_20' ) end [2025-01-05 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:06:22] Production.INFO: ==2289== Releasing lock... [2025-01-05 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:07:05 [end_date_ymd] => 2025-01-05 16:07:05 [RateCDR] => 1 ) [2025-01-05 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:07:05' and `end` < '2025-01-05 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:07:18] Production.INFO: count ==1134 [2025-01-05 16:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:07:05 - End Time 2025-01-05 16:07:05 [2025-01-05 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181340', 'tblTempUsageDetail_20' ) start [2025-01-05 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181340', 'tblTempUsageDetail_20' ) end [2025-01-05 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181340', 'tblTempVendorCDR_20' ) start [2025-01-05 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181340', 'tblTempVendorCDR_20' ) end [2025-01-05 16:07:18] Production.INFO: ProcessCDR(1,14181340,1,1,2) [2025-01-05 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181340', 'tblTempUsageDetail_20' ) start [2025-01-05 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181340', 'tblTempUsageDetail_20' ) end [2025-01-05 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:07:23] Production.INFO: ==2374== Releasing lock... [2025-01-05 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:07:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:08:05 [end_date_ymd] => 2025-01-05 16:08:05 [RateCDR] => 1 ) [2025-01-05 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:08:05' and `end` < '2025-01-05 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:08:20] Production.INFO: count ==1115 [2025-01-05 16:08:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:08:05 - End Time 2025-01-05 16:08:05 [2025-01-05 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181345', 'tblTempUsageDetail_20' ) start [2025-01-05 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181345', 'tblTempUsageDetail_20' ) end [2025-01-05 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181345', 'tblTempVendorCDR_20' ) start [2025-01-05 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181345', 'tblTempVendorCDR_20' ) end [2025-01-05 16:08:20] Production.INFO: ProcessCDR(1,14181345,1,1,2) [2025-01-05 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181345', 'tblTempUsageDetail_20' ) start [2025-01-05 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181345', 'tblTempUsageDetail_20' ) end [2025-01-05 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:08:23] Production.INFO: ==2461== Releasing lock... [2025-01-05 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:09:05 [end_date_ymd] => 2025-01-05 16:09:05 [RateCDR] => 1 ) [2025-01-05 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:09:05' and `end` < '2025-01-05 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:09:18] Production.INFO: count ==1108 [2025-01-05 16:09:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:09:05 - End Time 2025-01-05 16:09:05 [2025-01-05 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181350', 'tblTempUsageDetail_20' ) start [2025-01-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181350', 'tblTempUsageDetail_20' ) end [2025-01-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181350', 'tblTempVendorCDR_20' ) start [2025-01-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181350', 'tblTempVendorCDR_20' ) end [2025-01-05 16:09:19] Production.INFO: ProcessCDR(1,14181350,1,1,2) [2025-01-05 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181350', 'tblTempUsageDetail_20' ) start [2025-01-05 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181350', 'tblTempUsageDetail_20' ) end [2025-01-05 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:09:22] Production.INFO: ==2544== Releasing lock... [2025-01-05 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:09:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:10:05 [end_date_ymd] => 2025-01-05 16:10:05 [RateCDR] => 1 ) [2025-01-05 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:10:05' and `end` < '2025-01-05 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:10:18] Production.INFO: count ==1099 [2025-01-05 16:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:10:05 - End Time 2025-01-05 16:10:05 [2025-01-05 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181356', 'tblTempUsageDetail_20' ) start [2025-01-05 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181356', 'tblTempUsageDetail_20' ) end [2025-01-05 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181356', 'tblTempVendorCDR_20' ) start [2025-01-05 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181356', 'tblTempVendorCDR_20' ) end [2025-01-05 16:10:18] Production.INFO: ProcessCDR(1,14181356,1,1,2) [2025-01-05 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181356', 'tblTempUsageDetail_20' ) start [2025-01-05 16:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181356', 'tblTempUsageDetail_20' ) end [2025-01-05 16:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:10:21] Production.INFO: ==2633== Releasing lock... [2025-01-05 16:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:10:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:11:05 [end_date_ymd] => 2025-01-05 16:11:05 [RateCDR] => 1 ) [2025-01-05 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:11:05' and `end` < '2025-01-05 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:11:19] Production.INFO: count ==1072 [2025-01-05 16:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:11:05 - End Time 2025-01-05 16:11:05 [2025-01-05 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181361', 'tblTempUsageDetail_20' ) start [2025-01-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181361', 'tblTempUsageDetail_20' ) end [2025-01-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181361', 'tblTempVendorCDR_20' ) start [2025-01-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181361', 'tblTempVendorCDR_20' ) end [2025-01-05 16:11:19] Production.INFO: ProcessCDR(1,14181361,1,1,2) [2025-01-05 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181361', 'tblTempUsageDetail_20' ) start [2025-01-05 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181361', 'tblTempUsageDetail_20' ) end [2025-01-05 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:11:23] Production.INFO: ==2725== Releasing lock... [2025-01-05 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:11:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:12:04 [end_date_ymd] => 2025-01-05 16:12:04 [RateCDR] => 1 ) [2025-01-05 16:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:12:04' and `end` < '2025-01-05 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:12:18] Production.INFO: count ==1065 [2025-01-05 16:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:12:04 - End Time 2025-01-05 16:12:04 [2025-01-05 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181366', 'tblTempUsageDetail_20' ) start [2025-01-05 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181366', 'tblTempUsageDetail_20' ) end [2025-01-05 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181366', 'tblTempVendorCDR_20' ) start [2025-01-05 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181366', 'tblTempVendorCDR_20' ) end [2025-01-05 16:12:18] Production.INFO: ProcessCDR(1,14181366,1,1,2) [2025-01-05 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181366', 'tblTempUsageDetail_20' ) start [2025-01-05 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181366', 'tblTempUsageDetail_20' ) end [2025-01-05 16:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:12:21] Production.INFO: ==2805== Releasing lock... [2025-01-05 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:12:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:13:05 [end_date_ymd] => 2025-01-05 16:13:05 [RateCDR] => 1 ) [2025-01-05 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:13:05' and `end` < '2025-01-05 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:13:18] Production.INFO: count ==1062 [2025-01-05 16:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:13:05 - End Time 2025-01-05 16:13:05 [2025-01-05 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181371', 'tblTempUsageDetail_20' ) start [2025-01-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181371', 'tblTempUsageDetail_20' ) end [2025-01-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181371', 'tblTempVendorCDR_20' ) start [2025-01-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181371', 'tblTempVendorCDR_20' ) end [2025-01-05 16:13:18] Production.INFO: ProcessCDR(1,14181371,1,1,2) [2025-01-05 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181371', 'tblTempUsageDetail_20' ) start [2025-01-05 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181371', 'tblTempUsageDetail_20' ) end [2025-01-05 16:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:13:21] Production.INFO: ==2884== Releasing lock... [2025-01-05 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:13:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:14:06 [end_date_ymd] => 2025-01-05 16:14:06 [RateCDR] => 1 ) [2025-01-05 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:14:06' and `end` < '2025-01-05 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:14:20] Production.INFO: count ==1073 [2025-01-05 16:14:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:14:06 - End Time 2025-01-05 16:14:06 [2025-01-05 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181376', 'tblTempUsageDetail_20' ) start [2025-01-05 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181376', 'tblTempUsageDetail_20' ) end [2025-01-05 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181376', 'tblTempVendorCDR_20' ) start [2025-01-05 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181376', 'tblTempVendorCDR_20' ) end [2025-01-05 16:14:20] Production.INFO: ProcessCDR(1,14181376,1,1,2) [2025-01-05 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181376', 'tblTempUsageDetail_20' ) start [2025-01-05 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181376', 'tblTempUsageDetail_20' ) end [2025-01-05 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:14:23] Production.INFO: ==2992== Releasing lock... [2025-01-05 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:14:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:15:05 [end_date_ymd] => 2025-01-05 16:15:05 [RateCDR] => 1 ) [2025-01-05 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:15:05' and `end` < '2025-01-05 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:15:18] Production.INFO: count ==1059 [2025-01-05 16:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:15:05 - End Time 2025-01-05 16:15:05 [2025-01-05 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181381', 'tblTempUsageDetail_20' ) start [2025-01-05 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181381', 'tblTempUsageDetail_20' ) end [2025-01-05 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181381', 'tblTempVendorCDR_20' ) start [2025-01-05 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181381', 'tblTempVendorCDR_20' ) end [2025-01-05 16:15:18] Production.INFO: ProcessCDR(1,14181381,1,1,2) [2025-01-05 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181381', 'tblTempUsageDetail_20' ) start [2025-01-05 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181381', 'tblTempUsageDetail_20' ) end [2025-01-05 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:15:21] Production.INFO: ==3099== Releasing lock... [2025-01-05 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:15:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:16:05 [end_date_ymd] => 2025-01-05 16:16:05 [RateCDR] => 1 ) [2025-01-05 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:16:05' and `end` < '2025-01-05 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:16:18] Production.INFO: count ==1061 [2025-01-05 16:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:16:05 - End Time 2025-01-05 16:16:05 [2025-01-05 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181386', 'tblTempUsageDetail_20' ) start [2025-01-05 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181386', 'tblTempUsageDetail_20' ) end [2025-01-05 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181386', 'tblTempVendorCDR_20' ) start [2025-01-05 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181386', 'tblTempVendorCDR_20' ) end [2025-01-05 16:16:18] Production.INFO: ProcessCDR(1,14181386,1,1,2) [2025-01-05 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181386', 'tblTempUsageDetail_20' ) start [2025-01-05 16:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181386', 'tblTempUsageDetail_20' ) end [2025-01-05 16:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:16:21] Production.INFO: ==3251== Releasing lock... [2025-01-05 16:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:16:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:17:05 [end_date_ymd] => 2025-01-05 16:17:05 [RateCDR] => 1 ) [2025-01-05 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:17:05' and `end` < '2025-01-05 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:17:18] Production.INFO: count ==1062 [2025-01-05 16:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:17:05 - End Time 2025-01-05 16:17:05 [2025-01-05 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181391', 'tblTempUsageDetail_20' ) start [2025-01-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181391', 'tblTempUsageDetail_20' ) end [2025-01-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181391', 'tblTempVendorCDR_20' ) start [2025-01-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181391', 'tblTempVendorCDR_20' ) end [2025-01-05 16:17:18] Production.INFO: ProcessCDR(1,14181391,1,1,2) [2025-01-05 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181391', 'tblTempUsageDetail_20' ) start [2025-01-05 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181391', 'tblTempUsageDetail_20' ) end [2025-01-05 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:17:23] Production.INFO: ==3361== Releasing lock... [2025-01-05 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:17:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:18:05 [end_date_ymd] => 2025-01-05 16:18:05 [RateCDR] => 1 ) [2025-01-05 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:18:05' and `end` < '2025-01-05 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:18:19] Production.INFO: count ==1062 [2025-01-05 16:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:18:05 - End Time 2025-01-05 16:18:05 [2025-01-05 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181396', 'tblTempUsageDetail_20' ) start [2025-01-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181396', 'tblTempUsageDetail_20' ) end [2025-01-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181396', 'tblTempVendorCDR_20' ) start [2025-01-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181396', 'tblTempVendorCDR_20' ) end [2025-01-05 16:18:19] Production.INFO: ProcessCDR(1,14181396,1,1,2) [2025-01-05 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181396', 'tblTempUsageDetail_20' ) start [2025-01-05 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181396', 'tblTempUsageDetail_20' ) end [2025-01-05 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:18:23] Production.INFO: ==3481== Releasing lock... [2025-01-05 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:18:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:19:05 [end_date_ymd] => 2025-01-05 16:19:05 [RateCDR] => 1 ) [2025-01-05 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:19:05' and `end` < '2025-01-05 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:19:19] Production.INFO: count ==1062 [2025-01-05 16:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:19:05 - End Time 2025-01-05 16:19:05 [2025-01-05 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181401', 'tblTempUsageDetail_20' ) start [2025-01-05 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181401', 'tblTempUsageDetail_20' ) end [2025-01-05 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181401', 'tblTempVendorCDR_20' ) start [2025-01-05 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181401', 'tblTempVendorCDR_20' ) end [2025-01-05 16:19:19] Production.INFO: ProcessCDR(1,14181401,1,1,2) [2025-01-05 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181401', 'tblTempUsageDetail_20' ) start [2025-01-05 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181401', 'tblTempUsageDetail_20' ) end [2025-01-05 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:19:22] Production.INFO: ==3589== Releasing lock... [2025-01-05 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:19:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:20:06 [end_date_ymd] => 2025-01-05 16:20:06 [RateCDR] => 1 ) [2025-01-05 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:20:06' and `end` < '2025-01-05 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:20:19] Production.INFO: count ==1059 [2025-01-05 16:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:20:06 - End Time 2025-01-05 16:20:06 [2025-01-05 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181407', 'tblTempUsageDetail_20' ) start [2025-01-05 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181407', 'tblTempUsageDetail_20' ) end [2025-01-05 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181407', 'tblTempVendorCDR_20' ) start [2025-01-05 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181407', 'tblTempVendorCDR_20' ) end [2025-01-05 16:20:19] Production.INFO: ProcessCDR(1,14181407,1,1,2) [2025-01-05 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181407', 'tblTempUsageDetail_20' ) start [2025-01-05 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181407', 'tblTempUsageDetail_20' ) end [2025-01-05 16:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:20:22] Production.INFO: ==3698== Releasing lock... [2025-01-05 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:21:05 [end_date_ymd] => 2025-01-05 16:21:05 [RateCDR] => 1 ) [2025-01-05 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:21:05' and `end` < '2025-01-05 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:21:18] Production.INFO: count ==1049 [2025-01-05 16:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:21:05 - End Time 2025-01-05 16:21:05 [2025-01-05 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181412', 'tblTempUsageDetail_20' ) start [2025-01-05 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181412', 'tblTempUsageDetail_20' ) end [2025-01-05 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181412', 'tblTempVendorCDR_20' ) start [2025-01-05 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181412', 'tblTempVendorCDR_20' ) end [2025-01-05 16:21:18] Production.INFO: ProcessCDR(1,14181412,1,1,2) [2025-01-05 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181412', 'tblTempUsageDetail_20' ) start [2025-01-05 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181412', 'tblTempUsageDetail_20' ) end [2025-01-05 16:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:21:21] Production.INFO: ==3811== Releasing lock... [2025-01-05 16:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:21:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:22:05 [end_date_ymd] => 2025-01-05 16:22:05 [RateCDR] => 1 ) [2025-01-05 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:22:05' and `end` < '2025-01-05 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:22:19] Production.INFO: count ==1049 [2025-01-05 16:22:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:22:05 - End Time 2025-01-05 16:22:05 [2025-01-05 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181416', 'tblTempUsageDetail_20' ) start [2025-01-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181416', 'tblTempUsageDetail_20' ) end [2025-01-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181416', 'tblTempVendorCDR_20' ) start [2025-01-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181416', 'tblTempVendorCDR_20' ) end [2025-01-05 16:22:20] Production.INFO: ProcessCDR(1,14181416,1,1,2) [2025-01-05 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181416', 'tblTempUsageDetail_20' ) start [2025-01-05 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181416', 'tblTempUsageDetail_20' ) end [2025-01-05 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:22:23] Production.INFO: ==3922== Releasing lock... [2025-01-05 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:22:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:23:05 [end_date_ymd] => 2025-01-05 16:23:05 [RateCDR] => 1 ) [2025-01-05 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:23:05' and `end` < '2025-01-05 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:23:18] Production.INFO: count ==1048 [2025-01-05 16:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:23:05 - End Time 2025-01-05 16:23:05 [2025-01-05 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181422', 'tblTempUsageDetail_20' ) start [2025-01-05 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181422', 'tblTempUsageDetail_20' ) end [2025-01-05 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181422', 'tblTempVendorCDR_20' ) start [2025-01-05 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181422', 'tblTempVendorCDR_20' ) end [2025-01-05 16:23:18] Production.INFO: ProcessCDR(1,14181422,1,1,2) [2025-01-05 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181422', 'tblTempUsageDetail_20' ) start [2025-01-05 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181422', 'tblTempUsageDetail_20' ) end [2025-01-05 16:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:23:21] Production.INFO: ==4032== Releasing lock... [2025-01-05 16:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:23:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:24:05 [end_date_ymd] => 2025-01-05 16:24:05 [RateCDR] => 1 ) [2025-01-05 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:24:05' and `end` < '2025-01-05 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:24:18] Production.INFO: count ==1048 [2025-01-05 16:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:24:05 - End Time 2025-01-05 16:24:05 [2025-01-05 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181427', 'tblTempUsageDetail_20' ) start [2025-01-05 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181427', 'tblTempUsageDetail_20' ) end [2025-01-05 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181427', 'tblTempVendorCDR_20' ) start [2025-01-05 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181427', 'tblTempVendorCDR_20' ) end [2025-01-05 16:24:18] Production.INFO: ProcessCDR(1,14181427,1,1,2) [2025-01-05 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181427', 'tblTempUsageDetail_20' ) start [2025-01-05 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181427', 'tblTempUsageDetail_20' ) end [2025-01-05 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:24:22] Production.INFO: ==4143== Releasing lock... [2025-01-05 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:24:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:25:05 [end_date_ymd] => 2025-01-05 16:25:05 [RateCDR] => 1 ) [2025-01-05 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:25:05' and `end` < '2025-01-05 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:25:18] Production.INFO: count ==1047 [2025-01-05 16:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:25:05 - End Time 2025-01-05 16:25:05 [2025-01-05 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181432', 'tblTempUsageDetail_20' ) start [2025-01-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181432', 'tblTempUsageDetail_20' ) end [2025-01-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181432', 'tblTempVendorCDR_20' ) start [2025-01-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181432', 'tblTempVendorCDR_20' ) end [2025-01-05 16:25:18] Production.INFO: ProcessCDR(1,14181432,1,1,2) [2025-01-05 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181432', 'tblTempUsageDetail_20' ) start [2025-01-05 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181432', 'tblTempUsageDetail_20' ) end [2025-01-05 16:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:25:21] Production.INFO: ==4250== Releasing lock... [2025-01-05 16:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:25:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:26:05 [end_date_ymd] => 2025-01-05 16:26:05 [RateCDR] => 1 ) [2025-01-05 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:26:05' and `end` < '2025-01-05 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:26:18] Production.INFO: count ==1050 [2025-01-05 16:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:26:05 - End Time 2025-01-05 16:26:05 [2025-01-05 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181436', 'tblTempUsageDetail_20' ) start [2025-01-05 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181436', 'tblTempUsageDetail_20' ) end [2025-01-05 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181436', 'tblTempVendorCDR_20' ) start [2025-01-05 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181436', 'tblTempVendorCDR_20' ) end [2025-01-05 16:26:18] Production.INFO: ProcessCDR(1,14181436,1,1,2) [2025-01-05 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181436', 'tblTempUsageDetail_20' ) start [2025-01-05 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181436', 'tblTempUsageDetail_20' ) end [2025-01-05 16:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:26:21] Production.INFO: ==4357== Releasing lock... [2025-01-05 16:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:26:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:27:05 [end_date_ymd] => 2025-01-05 16:27:05 [RateCDR] => 1 ) [2025-01-05 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:27:05' and `end` < '2025-01-05 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:27:18] Production.INFO: count ==1050 [2025-01-05 16:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:27:05 - End Time 2025-01-05 16:27:05 [2025-01-05 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181442', 'tblTempUsageDetail_20' ) start [2025-01-05 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181442', 'tblTempUsageDetail_20' ) end [2025-01-05 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181442', 'tblTempVendorCDR_20' ) start [2025-01-05 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181442', 'tblTempVendorCDR_20' ) end [2025-01-05 16:27:18] Production.INFO: ProcessCDR(1,14181442,1,1,2) [2025-01-05 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181442', 'tblTempUsageDetail_20' ) start [2025-01-05 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181442', 'tblTempUsageDetail_20' ) end [2025-01-05 16:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:27:21] Production.INFO: ==4480== Releasing lock... [2025-01-05 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:28:05 [end_date_ymd] => 2025-01-05 16:28:05 [RateCDR] => 1 ) [2025-01-05 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:28:05' and `end` < '2025-01-05 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:28:17] Production.INFO: count ==1049 [2025-01-05 16:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:28:05 - End Time 2025-01-05 16:28:05 [2025-01-05 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181447', 'tblTempUsageDetail_20' ) start [2025-01-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181447', 'tblTempUsageDetail_20' ) end [2025-01-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181447', 'tblTempVendorCDR_20' ) start [2025-01-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181447', 'tblTempVendorCDR_20' ) end [2025-01-05 16:28:18] Production.INFO: ProcessCDR(1,14181447,1,1,2) [2025-01-05 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181447', 'tblTempUsageDetail_20' ) start [2025-01-05 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181447', 'tblTempUsageDetail_20' ) end [2025-01-05 16:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:28:21] Production.INFO: ==4606== Releasing lock... [2025-01-05 16:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:28:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:29:05 [end_date_ymd] => 2025-01-05 16:29:05 [RateCDR] => 1 ) [2025-01-05 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:29:05' and `end` < '2025-01-05 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:29:20] Production.INFO: count ==1049 [2025-01-05 16:29:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:29:05 - End Time 2025-01-05 16:29:05 [2025-01-05 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181452', 'tblTempUsageDetail_20' ) start [2025-01-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181452', 'tblTempUsageDetail_20' ) end [2025-01-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181452', 'tblTempVendorCDR_20' ) start [2025-01-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181452', 'tblTempVendorCDR_20' ) end [2025-01-05 16:29:20] Production.INFO: ProcessCDR(1,14181452,1,1,2) [2025-01-05 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181452', 'tblTempUsageDetail_20' ) start [2025-01-05 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181452', 'tblTempUsageDetail_20' ) end [2025-01-05 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:29:23] Production.INFO: ==4722== Releasing lock... [2025-01-05 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:29:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:30:05 [end_date_ymd] => 2025-01-05 16:30:05 [RateCDR] => 1 ) [2025-01-05 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:30:05' and `end` < '2025-01-05 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:30:18] Production.INFO: count ==1051 [2025-01-05 16:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:30:05 - End Time 2025-01-05 16:30:05 [2025-01-05 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181458', 'tblTempUsageDetail_20' ) start [2025-01-05 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181458', 'tblTempUsageDetail_20' ) end [2025-01-05 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181458', 'tblTempVendorCDR_20' ) start [2025-01-05 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181458', 'tblTempVendorCDR_20' ) end [2025-01-05 16:30:19] Production.INFO: ProcessCDR(1,14181458,1,1,2) [2025-01-05 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181458', 'tblTempUsageDetail_20' ) start [2025-01-05 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181458', 'tblTempUsageDetail_20' ) end [2025-01-05 16:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:30:22] Production.INFO: ==4843== Releasing lock... [2025-01-05 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:30:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:31:05 [end_date_ymd] => 2025-01-05 16:31:05 [RateCDR] => 1 ) [2025-01-05 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:31:05' and `end` < '2025-01-05 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:31:20] Production.INFO: count ==1040 [2025-01-05 16:31:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:31:05 - End Time 2025-01-05 16:31:05 [2025-01-05 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181463', 'tblTempUsageDetail_20' ) start [2025-01-05 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181463', 'tblTempUsageDetail_20' ) end [2025-01-05 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181463', 'tblTempVendorCDR_20' ) start [2025-01-05 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181463', 'tblTempVendorCDR_20' ) end [2025-01-05 16:31:20] Production.INFO: ProcessCDR(1,14181463,1,1,2) [2025-01-05 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181463', 'tblTempUsageDetail_20' ) start [2025-01-05 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181463', 'tblTempUsageDetail_20' ) end [2025-01-05 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:31:23] Production.INFO: ==4961== Releasing lock... [2025-01-05 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:31:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:32:05 [end_date_ymd] => 2025-01-05 16:32:05 [RateCDR] => 1 ) [2025-01-05 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:32:05' and `end` < '2025-01-05 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:32:18] Production.INFO: count ==1043 [2025-01-05 16:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:32:05 - End Time 2025-01-05 16:32:05 [2025-01-05 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181468', 'tblTempUsageDetail_20' ) start [2025-01-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181468', 'tblTempUsageDetail_20' ) end [2025-01-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181468', 'tblTempVendorCDR_20' ) start [2025-01-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181468', 'tblTempVendorCDR_20' ) end [2025-01-05 16:32:18] Production.INFO: ProcessCDR(1,14181468,1,1,2) [2025-01-05 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181468', 'tblTempUsageDetail_20' ) start [2025-01-05 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181468', 'tblTempUsageDetail_20' ) end [2025-01-05 16:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:32:21] Production.INFO: ==5111== Releasing lock... [2025-01-05 16:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:32:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:33:05 [end_date_ymd] => 2025-01-05 16:33:05 [RateCDR] => 1 ) [2025-01-05 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:33:05' and `end` < '2025-01-05 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:33:18] Production.INFO: count ==1043 [2025-01-05 16:33:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:33:05 - End Time 2025-01-05 16:33:05 [2025-01-05 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181473', 'tblTempUsageDetail_20' ) start [2025-01-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181473', 'tblTempUsageDetail_20' ) end [2025-01-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181473', 'tblTempVendorCDR_20' ) start [2025-01-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181473', 'tblTempVendorCDR_20' ) end [2025-01-05 16:33:19] Production.INFO: ProcessCDR(1,14181473,1,1,2) [2025-01-05 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181473', 'tblTempUsageDetail_20' ) start [2025-01-05 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181473', 'tblTempUsageDetail_20' ) end [2025-01-05 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:33:22] Production.INFO: ==5229== Releasing lock... [2025-01-05 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:34:04 [end_date_ymd] => 2025-01-05 16:34:04 [RateCDR] => 1 ) [2025-01-05 16:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:34:04' and `end` < '2025-01-05 16:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:34:17] Production.INFO: count ==1031 [2025-01-05 16:34:17] Production.ERROR: pbx CDR StartTime 2025-01-05 13:34:04 - End Time 2025-01-05 16:34:04 [2025-01-05 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181478', 'tblTempUsageDetail_20' ) start [2025-01-05 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181478', 'tblTempUsageDetail_20' ) end [2025-01-05 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181478', 'tblTempVendorCDR_20' ) start [2025-01-05 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181478', 'tblTempVendorCDR_20' ) end [2025-01-05 16:34:17] Production.INFO: ProcessCDR(1,14181478,1,1,2) [2025-01-05 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181478', 'tblTempUsageDetail_20' ) start [2025-01-05 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181478', 'tblTempUsageDetail_20' ) end [2025-01-05 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:34:21] Production.INFO: ==5347== Releasing lock... [2025-01-05 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:35:05 [end_date_ymd] => 2025-01-05 16:35:05 [RateCDR] => 1 ) [2025-01-05 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:35:05' and `end` < '2025-01-05 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:35:18] Production.INFO: count ==1027 [2025-01-05 16:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:35:05 - End Time 2025-01-05 16:35:05 [2025-01-05 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181483', 'tblTempUsageDetail_20' ) start [2025-01-05 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181483', 'tblTempUsageDetail_20' ) end [2025-01-05 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181483', 'tblTempVendorCDR_20' ) start [2025-01-05 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181483', 'tblTempVendorCDR_20' ) end [2025-01-05 16:35:18] Production.INFO: ProcessCDR(1,14181483,1,1,2) [2025-01-05 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181483', 'tblTempUsageDetail_20' ) start [2025-01-05 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181483', 'tblTempUsageDetail_20' ) end [2025-01-05 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:35:22] Production.INFO: ==5463== Releasing lock... [2025-01-05 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:36:04 [end_date_ymd] => 2025-01-05 16:36:04 [RateCDR] => 1 ) [2025-01-05 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:36:04' and `end` < '2025-01-05 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:36:18] Production.INFO: count ==1024 [2025-01-05 16:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:36:04 - End Time 2025-01-05 16:36:04 [2025-01-05 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181488', 'tblTempUsageDetail_20' ) start [2025-01-05 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181488', 'tblTempUsageDetail_20' ) end [2025-01-05 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181488', 'tblTempVendorCDR_20' ) start [2025-01-05 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181488', 'tblTempVendorCDR_20' ) end [2025-01-05 16:36:18] Production.INFO: ProcessCDR(1,14181488,1,1,2) [2025-01-05 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181488', 'tblTempUsageDetail_20' ) start [2025-01-05 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181488', 'tblTempUsageDetail_20' ) end [2025-01-05 16:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:36:21] Production.INFO: ==5582== Releasing lock... [2025-01-05 16:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:37:05 [end_date_ymd] => 2025-01-05 16:37:05 [RateCDR] => 1 ) [2025-01-05 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:37:05' and `end` < '2025-01-05 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:37:18] Production.INFO: count ==1036 [2025-01-05 16:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:37:05 - End Time 2025-01-05 16:37:05 [2025-01-05 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181493', 'tblTempUsageDetail_20' ) start [2025-01-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181493', 'tblTempUsageDetail_20' ) end [2025-01-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181493', 'tblTempVendorCDR_20' ) start [2025-01-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181493', 'tblTempVendorCDR_20' ) end [2025-01-05 16:37:18] Production.INFO: ProcessCDR(1,14181493,1,1,2) [2025-01-05 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181493', 'tblTempUsageDetail_20' ) start [2025-01-05 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181493', 'tblTempUsageDetail_20' ) end [2025-01-05 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:37:22] Production.INFO: ==5692== Releasing lock... [2025-01-05 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:37:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:38:05 [end_date_ymd] => 2025-01-05 16:38:05 [RateCDR] => 1 ) [2025-01-05 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:38:05' and `end` < '2025-01-05 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:38:18] Production.INFO: count ==1032 [2025-01-05 16:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:38:05 - End Time 2025-01-05 16:38:05 [2025-01-05 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181498', 'tblTempUsageDetail_20' ) start [2025-01-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181498', 'tblTempUsageDetail_20' ) end [2025-01-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181498', 'tblTempVendorCDR_20' ) start [2025-01-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181498', 'tblTempVendorCDR_20' ) end [2025-01-05 16:38:19] Production.INFO: ProcessCDR(1,14181498,1,1,2) [2025-01-05 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181498', 'tblTempUsageDetail_20' ) start [2025-01-05 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181498', 'tblTempUsageDetail_20' ) end [2025-01-05 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:38:23] Production.INFO: ==5810== Releasing lock... [2025-01-05 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:38:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:39:05 [end_date_ymd] => 2025-01-05 16:39:05 [RateCDR] => 1 ) [2025-01-05 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:39:05' and `end` < '2025-01-05 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:39:18] Production.INFO: count ==1023 [2025-01-05 16:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:39:05 - End Time 2025-01-05 16:39:05 [2025-01-05 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181503', 'tblTempUsageDetail_20' ) start [2025-01-05 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181503', 'tblTempUsageDetail_20' ) end [2025-01-05 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181503', 'tblTempVendorCDR_20' ) start [2025-01-05 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181503', 'tblTempVendorCDR_20' ) end [2025-01-05 16:39:18] Production.INFO: ProcessCDR(1,14181503,1,1,2) [2025-01-05 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181503', 'tblTempUsageDetail_20' ) start [2025-01-05 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181503', 'tblTempUsageDetail_20' ) end [2025-01-05 16:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:39:21] Production.INFO: ==5923== Releasing lock... [2025-01-05 16:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:39:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:40:06 [end_date_ymd] => 2025-01-05 16:40:06 [RateCDR] => 1 ) [2025-01-05 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:40:06' and `end` < '2025-01-05 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:40:19] Production.INFO: count ==1021 [2025-01-05 16:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:40:06 - End Time 2025-01-05 16:40:06 [2025-01-05 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181508', 'tblTempUsageDetail_20' ) start [2025-01-05 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181508', 'tblTempUsageDetail_20' ) end [2025-01-05 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181508', 'tblTempVendorCDR_20' ) start [2025-01-05 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181508', 'tblTempVendorCDR_20' ) end [2025-01-05 16:40:19] Production.INFO: ProcessCDR(1,14181508,1,1,2) [2025-01-05 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181508', 'tblTempUsageDetail_20' ) start [2025-01-05 16:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181508', 'tblTempUsageDetail_20' ) end [2025-01-05 16:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:40:24] Production.INFO: ==6044== Releasing lock... [2025-01-05 16:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:40:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:41:05 [end_date_ymd] => 2025-01-05 16:41:05 [RateCDR] => 1 ) [2025-01-05 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:41:05' and `end` < '2025-01-05 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:41:18] Production.INFO: count ==1030 [2025-01-05 16:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:41:05 - End Time 2025-01-05 16:41:05 [2025-01-05 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181514', 'tblTempUsageDetail_20' ) start [2025-01-05 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181514', 'tblTempUsageDetail_20' ) end [2025-01-05 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181514', 'tblTempVendorCDR_20' ) start [2025-01-05 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181514', 'tblTempVendorCDR_20' ) end [2025-01-05 16:41:18] Production.INFO: ProcessCDR(1,14181514,1,1,2) [2025-01-05 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181514', 'tblTempUsageDetail_20' ) start [2025-01-05 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181514', 'tblTempUsageDetail_20' ) end [2025-01-05 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:41:23] Production.INFO: ==6159== Releasing lock... [2025-01-05 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:41:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:42:05 [end_date_ymd] => 2025-01-05 16:42:05 [RateCDR] => 1 ) [2025-01-05 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:42:05' and `end` < '2025-01-05 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:42:17] Production.INFO: count ==1038 [2025-01-05 16:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:42:05 - End Time 2025-01-05 16:42:05 [2025-01-05 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181519', 'tblTempUsageDetail_20' ) start [2025-01-05 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181519', 'tblTempUsageDetail_20' ) end [2025-01-05 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181519', 'tblTempVendorCDR_20' ) start [2025-01-05 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181519', 'tblTempVendorCDR_20' ) end [2025-01-05 16:42:18] Production.INFO: ProcessCDR(1,14181519,1,1,2) [2025-01-05 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181519', 'tblTempUsageDetail_20' ) start [2025-01-05 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181519', 'tblTempUsageDetail_20' ) end [2025-01-05 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:42:22] Production.INFO: ==6275== Releasing lock... [2025-01-05 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:42:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:43:05 [end_date_ymd] => 2025-01-05 16:43:05 [RateCDR] => 1 ) [2025-01-05 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:43:05' and `end` < '2025-01-05 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:43:20] Production.INFO: count ==1051 [2025-01-05 16:43:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:43:05 - End Time 2025-01-05 16:43:05 [2025-01-05 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181524', 'tblTempUsageDetail_20' ) start [2025-01-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181524', 'tblTempUsageDetail_20' ) end [2025-01-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181524', 'tblTempVendorCDR_20' ) start [2025-01-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181524', 'tblTempVendorCDR_20' ) end [2025-01-05 16:43:20] Production.INFO: ProcessCDR(1,14181524,1,1,2) [2025-01-05 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181524', 'tblTempUsageDetail_20' ) start [2025-01-05 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181524', 'tblTempUsageDetail_20' ) end [2025-01-05 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:43:24] Production.INFO: ==6392== Releasing lock... [2025-01-05 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:43:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:44:05 [end_date_ymd] => 2025-01-05 16:44:05 [RateCDR] => 1 ) [2025-01-05 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:44:05' and `end` < '2025-01-05 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:44:18] Production.INFO: count ==1053 [2025-01-05 16:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:44:05 - End Time 2025-01-05 16:44:05 [2025-01-05 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181529', 'tblTempUsageDetail_20' ) start [2025-01-05 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181529', 'tblTempUsageDetail_20' ) end [2025-01-05 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181529', 'tblTempVendorCDR_20' ) start [2025-01-05 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181529', 'tblTempVendorCDR_20' ) end [2025-01-05 16:44:18] Production.INFO: ProcessCDR(1,14181529,1,1,2) [2025-01-05 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181529', 'tblTempUsageDetail_20' ) start [2025-01-05 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181529', 'tblTempUsageDetail_20' ) end [2025-01-05 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:44:23] Production.INFO: ==6484== Releasing lock... [2025-01-05 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:44:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:45:05 [end_date_ymd] => 2025-01-05 16:45:05 [RateCDR] => 1 ) [2025-01-05 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:45:05' and `end` < '2025-01-05 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:45:18] Production.INFO: count ==1053 [2025-01-05 16:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:45:05 - End Time 2025-01-05 16:45:05 [2025-01-05 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181534', 'tblTempUsageDetail_20' ) start [2025-01-05 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181534', 'tblTempUsageDetail_20' ) end [2025-01-05 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181534', 'tblTempVendorCDR_20' ) start [2025-01-05 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181534', 'tblTempVendorCDR_20' ) end [2025-01-05 16:45:18] Production.INFO: ProcessCDR(1,14181534,1,1,2) [2025-01-05 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181534', 'tblTempUsageDetail_20' ) start [2025-01-05 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181534', 'tblTempUsageDetail_20' ) end [2025-01-05 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:45:21] Production.INFO: ==6566== Releasing lock... [2025-01-05 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:45:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:46:05 [end_date_ymd] => 2025-01-05 16:46:05 [RateCDR] => 1 ) [2025-01-05 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:46:05' and `end` < '2025-01-05 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:46:18] Production.INFO: count ==1065 [2025-01-05 16:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:46:05 - End Time 2025-01-05 16:46:05 [2025-01-05 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181539', 'tblTempUsageDetail_20' ) start [2025-01-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181539', 'tblTempUsageDetail_20' ) end [2025-01-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181539', 'tblTempVendorCDR_20' ) start [2025-01-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181539', 'tblTempVendorCDR_20' ) end [2025-01-05 16:46:19] Production.INFO: ProcessCDR(1,14181539,1,1,2) [2025-01-05 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181539', 'tblTempUsageDetail_20' ) start [2025-01-05 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181539', 'tblTempUsageDetail_20' ) end [2025-01-05 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:46:22] Production.INFO: ==6655== Releasing lock... [2025-01-05 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:46:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:47:05 [end_date_ymd] => 2025-01-05 16:47:05 [RateCDR] => 1 ) [2025-01-05 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:47:05' and `end` < '2025-01-05 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:47:18] Production.INFO: count ==1084 [2025-01-05 16:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:47:05 - End Time 2025-01-05 16:47:05 [2025-01-05 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181544', 'tblTempUsageDetail_20' ) start [2025-01-05 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181544', 'tblTempUsageDetail_20' ) end [2025-01-05 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181544', 'tblTempVendorCDR_20' ) start [2025-01-05 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181544', 'tblTempVendorCDR_20' ) end [2025-01-05 16:47:18] Production.INFO: ProcessCDR(1,14181544,1,1,2) [2025-01-05 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181544', 'tblTempUsageDetail_20' ) start [2025-01-05 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181544', 'tblTempUsageDetail_20' ) end [2025-01-05 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:47:22] Production.INFO: ==6781== Releasing lock... [2025-01-05 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:48:04 [end_date_ymd] => 2025-01-05 16:48:04 [RateCDR] => 1 ) [2025-01-05 16:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:48:04' and `end` < '2025-01-05 16:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:48:17] Production.INFO: count ==1095 [2025-01-05 16:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:48:04 - End Time 2025-01-05 16:48:04 [2025-01-05 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181549', 'tblTempUsageDetail_20' ) start [2025-01-05 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181549', 'tblTempUsageDetail_20' ) end [2025-01-05 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181549', 'tblTempVendorCDR_20' ) start [2025-01-05 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181549', 'tblTempVendorCDR_20' ) end [2025-01-05 16:48:18] Production.INFO: ProcessCDR(1,14181549,1,1,2) [2025-01-05 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181549', 'tblTempUsageDetail_20' ) start [2025-01-05 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181549', 'tblTempUsageDetail_20' ) end [2025-01-05 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:48:21] Production.INFO: ==6873== Releasing lock... [2025-01-05 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:48:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:49:05 [end_date_ymd] => 2025-01-05 16:49:05 [RateCDR] => 1 ) [2025-01-05 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:49:05' and `end` < '2025-01-05 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:49:20] Production.INFO: count ==1101 [2025-01-05 16:49:20] Production.ERROR: pbx CDR StartTime 2025-01-05 13:49:05 - End Time 2025-01-05 16:49:05 [2025-01-05 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181554', 'tblTempUsageDetail_20' ) start [2025-01-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181554', 'tblTempUsageDetail_20' ) end [2025-01-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181554', 'tblTempVendorCDR_20' ) start [2025-01-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181554', 'tblTempVendorCDR_20' ) end [2025-01-05 16:49:20] Production.INFO: ProcessCDR(1,14181554,1,1,2) [2025-01-05 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181554', 'tblTempUsageDetail_20' ) start [2025-01-05 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181554', 'tblTempUsageDetail_20' ) end [2025-01-05 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:49:24] Production.INFO: ==6968== Releasing lock... [2025-01-05 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:49:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:50:05 [end_date_ymd] => 2025-01-05 16:50:05 [RateCDR] => 1 ) [2025-01-05 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:50:05' and `end` < '2025-01-05 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:50:18] Production.INFO: count ==1092 [2025-01-05 16:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:50:05 - End Time 2025-01-05 16:50:05 [2025-01-05 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181560', 'tblTempUsageDetail_20' ) start [2025-01-05 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181560', 'tblTempUsageDetail_20' ) end [2025-01-05 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181560', 'tblTempVendorCDR_20' ) start [2025-01-05 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181560', 'tblTempVendorCDR_20' ) end [2025-01-05 16:50:18] Production.INFO: ProcessCDR(1,14181560,1,1,2) [2025-01-05 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181560', 'tblTempUsageDetail_20' ) start [2025-01-05 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181560', 'tblTempUsageDetail_20' ) end [2025-01-05 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:50:22] Production.INFO: ==7057== Releasing lock... [2025-01-05 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:50:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:51:05 [end_date_ymd] => 2025-01-05 16:51:05 [RateCDR] => 1 ) [2025-01-05 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:51:05' and `end` < '2025-01-05 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:51:18] Production.INFO: count ==1086 [2025-01-05 16:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:51:05 - End Time 2025-01-05 16:51:05 [2025-01-05 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181565', 'tblTempUsageDetail_20' ) start [2025-01-05 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181565', 'tblTempUsageDetail_20' ) end [2025-01-05 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181565', 'tblTempVendorCDR_20' ) start [2025-01-05 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181565', 'tblTempVendorCDR_20' ) end [2025-01-05 16:51:18] Production.INFO: ProcessCDR(1,14181565,1,1,2) [2025-01-05 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181565', 'tblTempUsageDetail_20' ) start [2025-01-05 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181565', 'tblTempUsageDetail_20' ) end [2025-01-05 16:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:51:21] Production.INFO: ==7146== Releasing lock... [2025-01-05 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:52:05 [end_date_ymd] => 2025-01-05 16:52:05 [RateCDR] => 1 ) [2025-01-05 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:52:05' and `end` < '2025-01-05 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:52:19] Production.INFO: count ==1085 [2025-01-05 16:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:52:05 - End Time 2025-01-05 16:52:05 [2025-01-05 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181570', 'tblTempUsageDetail_20' ) start [2025-01-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181570', 'tblTempUsageDetail_20' ) end [2025-01-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181570', 'tblTempVendorCDR_20' ) start [2025-01-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181570', 'tblTempVendorCDR_20' ) end [2025-01-05 16:52:19] Production.INFO: ProcessCDR(1,14181570,1,1,2) [2025-01-05 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181570', 'tblTempUsageDetail_20' ) start [2025-01-05 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181570', 'tblTempUsageDetail_20' ) end [2025-01-05 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:52:22] Production.INFO: ==7234== Releasing lock... [2025-01-05 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:52:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:53:05 [end_date_ymd] => 2025-01-05 16:53:05 [RateCDR] => 1 ) [2025-01-05 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:53:05' and `end` < '2025-01-05 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:53:18] Production.INFO: count ==1091 [2025-01-05 16:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:53:05 - End Time 2025-01-05 16:53:05 [2025-01-05 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181575', 'tblTempUsageDetail_20' ) start [2025-01-05 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181575', 'tblTempUsageDetail_20' ) end [2025-01-05 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181575', 'tblTempVendorCDR_20' ) start [2025-01-05 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181575', 'tblTempVendorCDR_20' ) end [2025-01-05 16:53:18] Production.INFO: ProcessCDR(1,14181575,1,1,2) [2025-01-05 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181575', 'tblTempUsageDetail_20' ) start [2025-01-05 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181575', 'tblTempUsageDetail_20' ) end [2025-01-05 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:53:22] Production.INFO: ==7324== Releasing lock... [2025-01-05 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:53:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:54:05 [end_date_ymd] => 2025-01-05 16:54:05 [RateCDR] => 1 ) [2025-01-05 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:54:05' and `end` < '2025-01-05 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:54:18] Production.INFO: count ==1091 [2025-01-05 16:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:54:05 - End Time 2025-01-05 16:54:05 [2025-01-05 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181580', 'tblTempUsageDetail_20' ) start [2025-01-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181580', 'tblTempUsageDetail_20' ) end [2025-01-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181580', 'tblTempVendorCDR_20' ) start [2025-01-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181580', 'tblTempVendorCDR_20' ) end [2025-01-05 16:54:18] Production.INFO: ProcessCDR(1,14181580,1,1,2) [2025-01-05 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181580', 'tblTempUsageDetail_20' ) start [2025-01-05 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181580', 'tblTempUsageDetail_20' ) end [2025-01-05 16:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:54:21] Production.INFO: ==7416== Releasing lock... [2025-01-05 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:54:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:55:05 [end_date_ymd] => 2025-01-05 16:55:05 [RateCDR] => 1 ) [2025-01-05 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:55:05' and `end` < '2025-01-05 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:55:18] Production.INFO: count ==1091 [2025-01-05 16:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:55:05 - End Time 2025-01-05 16:55:05 [2025-01-05 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181585', 'tblTempUsageDetail_20' ) start [2025-01-05 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181585', 'tblTempUsageDetail_20' ) end [2025-01-05 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181585', 'tblTempVendorCDR_20' ) start [2025-01-05 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181585', 'tblTempVendorCDR_20' ) end [2025-01-05 16:55:18] Production.INFO: ProcessCDR(1,14181585,1,1,2) [2025-01-05 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181585', 'tblTempUsageDetail_20' ) start [2025-01-05 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181585', 'tblTempUsageDetail_20' ) end [2025-01-05 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:55:22] Production.INFO: ==7504== Releasing lock... [2025-01-05 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:55:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:56:05 [end_date_ymd] => 2025-01-05 16:56:05 [RateCDR] => 1 ) [2025-01-05 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:56:05' and `end` < '2025-01-05 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:56:18] Production.INFO: count ==1091 [2025-01-05 16:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:56:05 - End Time 2025-01-05 16:56:05 [2025-01-05 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181590', 'tblTempUsageDetail_20' ) start [2025-01-05 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181590', 'tblTempUsageDetail_20' ) end [2025-01-05 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181590', 'tblTempVendorCDR_20' ) start [2025-01-05 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181590', 'tblTempVendorCDR_20' ) end [2025-01-05 16:56:18] Production.INFO: ProcessCDR(1,14181590,1,1,2) [2025-01-05 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181590', 'tblTempUsageDetail_20' ) start [2025-01-05 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181590', 'tblTempUsageDetail_20' ) end [2025-01-05 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:56:23] Production.INFO: ==7589== Releasing lock... [2025-01-05 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:56:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:57:06 [end_date_ymd] => 2025-01-05 16:57:06 [RateCDR] => 1 ) [2025-01-05 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:57:06' and `end` < '2025-01-05 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:57:19] Production.INFO: count ==1090 [2025-01-05 16:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 13:57:06 - End Time 2025-01-05 16:57:06 [2025-01-05 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181595', 'tblTempUsageDetail_20' ) start [2025-01-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181595', 'tblTempUsageDetail_20' ) end [2025-01-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181595', 'tblTempVendorCDR_20' ) start [2025-01-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181595', 'tblTempVendorCDR_20' ) end [2025-01-05 16:57:19] Production.INFO: ProcessCDR(1,14181595,1,1,2) [2025-01-05 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181595', 'tblTempUsageDetail_20' ) start [2025-01-05 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181595', 'tblTempUsageDetail_20' ) end [2025-01-05 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:57:24] Production.INFO: ==7678== Releasing lock... [2025-01-05 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:57:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:58:05 [end_date_ymd] => 2025-01-05 16:58:05 [RateCDR] => 1 ) [2025-01-05 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:58:05' and `end` < '2025-01-05 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:58:21] Production.INFO: count ==1089 [2025-01-05 16:58:21] Production.ERROR: pbx CDR StartTime 2025-01-05 13:58:05 - End Time 2025-01-05 16:58:05 [2025-01-05 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181600', 'tblTempUsageDetail_20' ) start [2025-01-05 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181600', 'tblTempUsageDetail_20' ) end [2025-01-05 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181600', 'tblTempVendorCDR_20' ) start [2025-01-05 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181600', 'tblTempVendorCDR_20' ) end [2025-01-05 16:58:21] Production.INFO: ProcessCDR(1,14181600,1,1,2) [2025-01-05 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181600', 'tblTempUsageDetail_20' ) start [2025-01-05 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181600', 'tblTempUsageDetail_20' ) end [2025-01-05 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:58:24] Production.INFO: ==7759== Releasing lock... [2025-01-05 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:58:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 13:59:05 [end_date_ymd] => 2025-01-05 16:59:05 [RateCDR] => 1 ) [2025-01-05 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 13:59:05' and `end` < '2025-01-05 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 16:59:18] Production.INFO: count ==1088 [2025-01-05 16:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 13:59:05 - End Time 2025-01-05 16:59:05 [2025-01-05 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181605', 'tblTempUsageDetail_20' ) start [2025-01-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181605', 'tblTempUsageDetail_20' ) end [2025-01-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181605', 'tblTempVendorCDR_20' ) start [2025-01-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181605', 'tblTempVendorCDR_20' ) end [2025-01-05 16:59:18] Production.INFO: ProcessCDR(1,14181605,1,1,2) [2025-01-05 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181605', 'tblTempUsageDetail_20' ) start [2025-01-05 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181605', 'tblTempUsageDetail_20' ) end [2025-01-05 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 16:59:22] Production.INFO: ==7850== Releasing lock... [2025-01-05 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 16:59:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:00:06 [end_date_ymd] => 2025-01-05 17:00:06 [RateCDR] => 1 ) [2025-01-05 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:00:06' and `end` < '2025-01-05 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:00:19] Production.INFO: count ==1088 [2025-01-05 17:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:00:06 - End Time 2025-01-05 17:00:06 [2025-01-05 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181611', 'tblTempUsageDetail_20' ) start [2025-01-05 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181611', 'tblTempUsageDetail_20' ) end [2025-01-05 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181611', 'tblTempVendorCDR_20' ) start [2025-01-05 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181611', 'tblTempVendorCDR_20' ) end [2025-01-05 17:00:19] Production.INFO: ProcessCDR(1,14181611,1,1,2) [2025-01-05 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181611', 'tblTempUsageDetail_20' ) start [2025-01-05 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181611', 'tblTempUsageDetail_20' ) end [2025-01-05 17:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:00:22] Production.INFO: ==7935== Releasing lock... [2025-01-05 17:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:00:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:01:06 [end_date_ymd] => 2025-01-05 17:01:06 [RateCDR] => 1 ) [2025-01-05 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:01:06' and `end` < '2025-01-05 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:01:20] Production.INFO: count ==1099 [2025-01-05 17:01:20] Production.ERROR: pbx CDR StartTime 2025-01-05 14:01:06 - End Time 2025-01-05 17:01:06 [2025-01-05 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181616', 'tblTempUsageDetail_20' ) start [2025-01-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181616', 'tblTempUsageDetail_20' ) end [2025-01-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181616', 'tblTempVendorCDR_20' ) start [2025-01-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181616', 'tblTempVendorCDR_20' ) end [2025-01-05 17:01:20] Production.INFO: ProcessCDR(1,14181616,1,1,2) [2025-01-05 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181616', 'tblTempUsageDetail_20' ) start [2025-01-05 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181616', 'tblTempUsageDetail_20' ) end [2025-01-05 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:01:23] Production.INFO: ==8031== Releasing lock... [2025-01-05 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:01:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:02:05 [end_date_ymd] => 2025-01-05 17:02:05 [RateCDR] => 1 ) [2025-01-05 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:02:05' and `end` < '2025-01-05 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:02:18] Production.INFO: count ==1102 [2025-01-05 17:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:02:05 - End Time 2025-01-05 17:02:05 [2025-01-05 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181621', 'tblTempUsageDetail_20' ) start [2025-01-05 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181621', 'tblTempUsageDetail_20' ) end [2025-01-05 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181621', 'tblTempVendorCDR_20' ) start [2025-01-05 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181621', 'tblTempVendorCDR_20' ) end [2025-01-05 17:02:18] Production.INFO: ProcessCDR(1,14181621,1,1,2) [2025-01-05 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181621', 'tblTempUsageDetail_20' ) start [2025-01-05 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181621', 'tblTempUsageDetail_20' ) end [2025-01-05 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:02:23] Production.INFO: ==8122== Releasing lock... [2025-01-05 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:02:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:03:05 [end_date_ymd] => 2025-01-05 17:03:05 [RateCDR] => 1 ) [2025-01-05 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:03:05' and `end` < '2025-01-05 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:03:19] Production.INFO: count ==1110 [2025-01-05 17:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:03:05 - End Time 2025-01-05 17:03:05 [2025-01-05 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181626', 'tblTempUsageDetail_20' ) start [2025-01-05 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181626', 'tblTempUsageDetail_20' ) end [2025-01-05 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181626', 'tblTempVendorCDR_20' ) start [2025-01-05 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181626', 'tblTempVendorCDR_20' ) end [2025-01-05 17:03:19] Production.INFO: ProcessCDR(1,14181626,1,1,2) [2025-01-05 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181626', 'tblTempUsageDetail_20' ) start [2025-01-05 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181626', 'tblTempUsageDetail_20' ) end [2025-01-05 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:03:24] Production.INFO: ==8254== Releasing lock... [2025-01-05 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:03:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:04:05 [end_date_ymd] => 2025-01-05 17:04:05 [RateCDR] => 1 ) [2025-01-05 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:04:05' and `end` < '2025-01-05 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:04:19] Production.INFO: count ==1103 [2025-01-05 17:04:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:04:05 - End Time 2025-01-05 17:04:05 [2025-01-05 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181631', 'tblTempUsageDetail_20' ) start [2025-01-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181631', 'tblTempUsageDetail_20' ) end [2025-01-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181631', 'tblTempVendorCDR_20' ) start [2025-01-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181631', 'tblTempVendorCDR_20' ) end [2025-01-05 17:04:19] Production.INFO: ProcessCDR(1,14181631,1,1,2) [2025-01-05 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181631', 'tblTempUsageDetail_20' ) start [2025-01-05 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181631', 'tblTempUsageDetail_20' ) end [2025-01-05 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:04:24] Production.INFO: ==8342== Releasing lock... [2025-01-05 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:04:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:05:05 [end_date_ymd] => 2025-01-05 17:05:05 [RateCDR] => 1 ) [2025-01-05 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:05:05' and `end` < '2025-01-05 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:05:18] Production.INFO: count ==1101 [2025-01-05 17:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:05:05 - End Time 2025-01-05 17:05:05 [2025-01-05 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181636', 'tblTempUsageDetail_20' ) start [2025-01-05 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181636', 'tblTempUsageDetail_20' ) end [2025-01-05 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181636', 'tblTempVendorCDR_20' ) start [2025-01-05 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181636', 'tblTempVendorCDR_20' ) end [2025-01-05 17:05:18] Production.INFO: ProcessCDR(1,14181636,1,1,2) [2025-01-05 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181636', 'tblTempUsageDetail_20' ) start [2025-01-05 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181636', 'tblTempUsageDetail_20' ) end [2025-01-05 17:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:05:21] Production.INFO: ==8429== Releasing lock... [2025-01-05 17:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:06:04 [end_date_ymd] => 2025-01-05 17:06:04 [RateCDR] => 1 ) [2025-01-05 17:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:06:04' and `end` < '2025-01-05 17:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:06:17] Production.INFO: count ==1100 [2025-01-05 17:06:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:06:04 - End Time 2025-01-05 17:06:04 [2025-01-05 17:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181641', 'tblTempUsageDetail_20' ) start [2025-01-05 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181641', 'tblTempUsageDetail_20' ) end [2025-01-05 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181641', 'tblTempVendorCDR_20' ) start [2025-01-05 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181641', 'tblTempVendorCDR_20' ) end [2025-01-05 17:06:17] Production.INFO: ProcessCDR(1,14181641,1,1,2) [2025-01-05 17:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181641', 'tblTempUsageDetail_20' ) start [2025-01-05 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181641', 'tblTempUsageDetail_20' ) end [2025-01-05 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:06:22] Production.INFO: ==8513== Releasing lock... [2025-01-05 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:06:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:07:05 [end_date_ymd] => 2025-01-05 17:07:05 [RateCDR] => 1 ) [2025-01-05 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:07:05' and `end` < '2025-01-05 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:07:19] Production.INFO: count ==1087 [2025-01-05 17:07:20] Production.ERROR: pbx CDR StartTime 2025-01-05 14:07:05 - End Time 2025-01-05 17:07:05 [2025-01-05 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181646', 'tblTempUsageDetail_20' ) start [2025-01-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181646', 'tblTempUsageDetail_20' ) end [2025-01-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181646', 'tblTempVendorCDR_20' ) start [2025-01-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181646', 'tblTempVendorCDR_20' ) end [2025-01-05 17:07:20] Production.INFO: ProcessCDR(1,14181646,1,1,2) [2025-01-05 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181646', 'tblTempUsageDetail_20' ) start [2025-01-05 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181646', 'tblTempUsageDetail_20' ) end [2025-01-05 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:07:25] Production.INFO: ==8599== Releasing lock... [2025-01-05 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:07:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:08:05 [end_date_ymd] => 2025-01-05 17:08:05 [RateCDR] => 1 ) [2025-01-05 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:08:05' and `end` < '2025-01-05 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:08:18] Production.INFO: count ==1073 [2025-01-05 17:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:08:05 - End Time 2025-01-05 17:08:05 [2025-01-05 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181651', 'tblTempUsageDetail_20' ) start [2025-01-05 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181651', 'tblTempUsageDetail_20' ) end [2025-01-05 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181651', 'tblTempVendorCDR_20' ) start [2025-01-05 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181651', 'tblTempVendorCDR_20' ) end [2025-01-05 17:08:18] Production.INFO: ProcessCDR(1,14181651,1,1,2) [2025-01-05 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181651', 'tblTempUsageDetail_20' ) start [2025-01-05 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181651', 'tblTempUsageDetail_20' ) end [2025-01-05 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:08:23] Production.INFO: ==8686== Releasing lock... [2025-01-05 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:09:05 [end_date_ymd] => 2025-01-05 17:09:05 [RateCDR] => 1 ) [2025-01-05 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:09:05' and `end` < '2025-01-05 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:09:18] Production.INFO: count ==1058 [2025-01-05 17:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:09:05 - End Time 2025-01-05 17:09:05 [2025-01-05 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181656', 'tblTempUsageDetail_20' ) start [2025-01-05 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181656', 'tblTempUsageDetail_20' ) end [2025-01-05 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181656', 'tblTempVendorCDR_20' ) start [2025-01-05 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181656', 'tblTempVendorCDR_20' ) end [2025-01-05 17:09:18] Production.INFO: ProcessCDR(1,14181656,1,1,2) [2025-01-05 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181656', 'tblTempUsageDetail_20' ) start [2025-01-05 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181656', 'tblTempUsageDetail_20' ) end [2025-01-05 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:09:23] Production.INFO: ==8772== Releasing lock... [2025-01-05 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:09:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:10:06 [end_date_ymd] => 2025-01-05 17:10:06 [RateCDR] => 1 ) [2025-01-05 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:10:06' and `end` < '2025-01-05 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:10:18] Production.INFO: count ==1062 [2025-01-05 17:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:10:06 - End Time 2025-01-05 17:10:06 [2025-01-05 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181661', 'tblTempUsageDetail_20' ) start [2025-01-05 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181661', 'tblTempUsageDetail_20' ) end [2025-01-05 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181661', 'tblTempVendorCDR_20' ) start [2025-01-05 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181661', 'tblTempVendorCDR_20' ) end [2025-01-05 17:10:19] Production.INFO: ProcessCDR(1,14181661,1,1,2) [2025-01-05 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181661', 'tblTempUsageDetail_20' ) start [2025-01-05 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181661', 'tblTempUsageDetail_20' ) end [2025-01-05 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:10:23] Production.INFO: ==8861== Releasing lock... [2025-01-05 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:10:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:11:05 [end_date_ymd] => 2025-01-05 17:11:05 [RateCDR] => 1 ) [2025-01-05 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:11:05' and `end` < '2025-01-05 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:11:18] Production.INFO: count ==1069 [2025-01-05 17:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:11:05 - End Time 2025-01-05 17:11:05 [2025-01-05 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181667', 'tblTempUsageDetail_20' ) start [2025-01-05 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181667', 'tblTempUsageDetail_20' ) end [2025-01-05 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181667', 'tblTempVendorCDR_20' ) start [2025-01-05 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181667', 'tblTempVendorCDR_20' ) end [2025-01-05 17:11:18] Production.INFO: ProcessCDR(1,14181667,1,1,2) [2025-01-05 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181667', 'tblTempUsageDetail_20' ) start [2025-01-05 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181667', 'tblTempUsageDetail_20' ) end [2025-01-05 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:11:22] Production.INFO: ==8950== Releasing lock... [2025-01-05 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:12:05 [end_date_ymd] => 2025-01-05 17:12:05 [RateCDR] => 1 ) [2025-01-05 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:12:05' and `end` < '2025-01-05 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:12:18] Production.INFO: count ==1062 [2025-01-05 17:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:12:05 - End Time 2025-01-05 17:12:05 [2025-01-05 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181672', 'tblTempUsageDetail_20' ) start [2025-01-05 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181672', 'tblTempUsageDetail_20' ) end [2025-01-05 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181672', 'tblTempVendorCDR_20' ) start [2025-01-05 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181672', 'tblTempVendorCDR_20' ) end [2025-01-05 17:12:18] Production.INFO: ProcessCDR(1,14181672,1,1,2) [2025-01-05 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181672', 'tblTempUsageDetail_20' ) start [2025-01-05 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181672', 'tblTempUsageDetail_20' ) end [2025-01-05 17:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:12:23] Production.INFO: ==9035== Releasing lock... [2025-01-05 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:12:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:13:04 [end_date_ymd] => 2025-01-05 17:13:04 [RateCDR] => 1 ) [2025-01-05 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:13:04' and `end` < '2025-01-05 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:13:17] Production.INFO: count ==1065 [2025-01-05 17:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:13:04 - End Time 2025-01-05 17:13:04 [2025-01-05 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181677', 'tblTempUsageDetail_20' ) start [2025-01-05 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181677', 'tblTempUsageDetail_20' ) end [2025-01-05 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181677', 'tblTempVendorCDR_20' ) start [2025-01-05 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181677', 'tblTempVendorCDR_20' ) end [2025-01-05 17:13:18] Production.INFO: ProcessCDR(1,14181677,1,1,2) [2025-01-05 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181677', 'tblTempUsageDetail_20' ) start [2025-01-05 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181677', 'tblTempUsageDetail_20' ) end [2025-01-05 17:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:13:21] Production.INFO: ==9123== Releasing lock... [2025-01-05 17:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:13:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:14:05 [end_date_ymd] => 2025-01-05 17:14:05 [RateCDR] => 1 ) [2025-01-05 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:14:05' and `end` < '2025-01-05 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:14:18] Production.INFO: count ==1063 [2025-01-05 17:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:14:05 - End Time 2025-01-05 17:14:05 [2025-01-05 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181682', 'tblTempUsageDetail_20' ) start [2025-01-05 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181682', 'tblTempUsageDetail_20' ) end [2025-01-05 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181682', 'tblTempVendorCDR_20' ) start [2025-01-05 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181682', 'tblTempVendorCDR_20' ) end [2025-01-05 17:14:19] Production.INFO: ProcessCDR(1,14181682,1,1,2) [2025-01-05 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181682', 'tblTempUsageDetail_20' ) start [2025-01-05 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181682', 'tblTempUsageDetail_20' ) end [2025-01-05 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:14:22] Production.INFO: ==9209== Releasing lock... [2025-01-05 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:15:05 [end_date_ymd] => 2025-01-05 17:15:05 [RateCDR] => 1 ) [2025-01-05 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:15:05' and `end` < '2025-01-05 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:15:18] Production.INFO: count ==1063 [2025-01-05 17:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:15:05 - End Time 2025-01-05 17:15:05 [2025-01-05 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181687', 'tblTempUsageDetail_20' ) start [2025-01-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181687', 'tblTempUsageDetail_20' ) end [2025-01-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181687', 'tblTempVendorCDR_20' ) start [2025-01-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181687', 'tblTempVendorCDR_20' ) end [2025-01-05 17:15:19] Production.INFO: ProcessCDR(1,14181687,1,1,2) [2025-01-05 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181687', 'tblTempUsageDetail_20' ) start [2025-01-05 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181687', 'tblTempUsageDetail_20' ) end [2025-01-05 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:15:23] Production.INFO: ==9309== Releasing lock... [2025-01-05 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:15:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:16:05 [end_date_ymd] => 2025-01-05 17:16:05 [RateCDR] => 1 ) [2025-01-05 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:16:05' and `end` < '2025-01-05 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:16:18] Production.INFO: count ==1050 [2025-01-05 17:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:16:05 - End Time 2025-01-05 17:16:05 [2025-01-05 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181692', 'tblTempUsageDetail_20' ) start [2025-01-05 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181692', 'tblTempUsageDetail_20' ) end [2025-01-05 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181692', 'tblTempVendorCDR_20' ) start [2025-01-05 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181692', 'tblTempVendorCDR_20' ) end [2025-01-05 17:16:18] Production.INFO: ProcessCDR(1,14181692,1,1,2) [2025-01-05 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181692', 'tblTempUsageDetail_20' ) start [2025-01-05 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181692', 'tblTempUsageDetail_20' ) end [2025-01-05 17:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:16:21] Production.INFO: ==9430== Releasing lock... [2025-01-05 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:16:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:17:05 [end_date_ymd] => 2025-01-05 17:17:05 [RateCDR] => 1 ) [2025-01-05 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:17:05' and `end` < '2025-01-05 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:17:18] Production.INFO: count ==1050 [2025-01-05 17:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:17:05 - End Time 2025-01-05 17:17:05 [2025-01-05 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181697', 'tblTempUsageDetail_20' ) start [2025-01-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181697', 'tblTempUsageDetail_20' ) end [2025-01-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181697', 'tblTempVendorCDR_20' ) start [2025-01-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181697', 'tblTempVendorCDR_20' ) end [2025-01-05 17:17:19] Production.INFO: ProcessCDR(1,14181697,1,1,2) [2025-01-05 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181697', 'tblTempUsageDetail_20' ) start [2025-01-05 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181697', 'tblTempUsageDetail_20' ) end [2025-01-05 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:17:22] Production.INFO: ==9553== Releasing lock... [2025-01-05 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:17:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:18:05 [end_date_ymd] => 2025-01-05 17:18:05 [RateCDR] => 1 ) [2025-01-05 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:18:05' and `end` < '2025-01-05 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:18:18] Production.INFO: count ==1055 [2025-01-05 17:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:18:05 - End Time 2025-01-05 17:18:05 [2025-01-05 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181702', 'tblTempUsageDetail_20' ) start [2025-01-05 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181702', 'tblTempUsageDetail_20' ) end [2025-01-05 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181702', 'tblTempVendorCDR_20' ) start [2025-01-05 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181702', 'tblTempVendorCDR_20' ) end [2025-01-05 17:18:18] Production.INFO: ProcessCDR(1,14181702,1,1,2) [2025-01-05 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181702', 'tblTempUsageDetail_20' ) start [2025-01-05 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181702', 'tblTempUsageDetail_20' ) end [2025-01-05 17:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:18:21] Production.INFO: ==9670== Releasing lock... [2025-01-05 17:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:18:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:19:05 [end_date_ymd] => 2025-01-05 17:19:05 [RateCDR] => 1 ) [2025-01-05 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:19:05' and `end` < '2025-01-05 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:19:19] Production.INFO: count ==1055 [2025-01-05 17:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:19:05 - End Time 2025-01-05 17:19:05 [2025-01-05 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181707', 'tblTempUsageDetail_20' ) start [2025-01-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181707', 'tblTempUsageDetail_20' ) end [2025-01-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181707', 'tblTempVendorCDR_20' ) start [2025-01-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181707', 'tblTempVendorCDR_20' ) end [2025-01-05 17:19:19] Production.INFO: ProcessCDR(1,14181707,1,1,2) [2025-01-05 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181707', 'tblTempUsageDetail_20' ) start [2025-01-05 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181707', 'tblTempUsageDetail_20' ) end [2025-01-05 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:19:22] Production.INFO: ==9830== Releasing lock... [2025-01-05 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:19:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:20:05 [end_date_ymd] => 2025-01-05 17:20:05 [RateCDR] => 1 ) [2025-01-05 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:20:05' and `end` < '2025-01-05 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:20:18] Production.INFO: count ==1056 [2025-01-05 17:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:20:05 - End Time 2025-01-05 17:20:05 [2025-01-05 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181712', 'tblTempUsageDetail_20' ) start [2025-01-05 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181712', 'tblTempUsageDetail_20' ) end [2025-01-05 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181712', 'tblTempVendorCDR_20' ) start [2025-01-05 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181712', 'tblTempVendorCDR_20' ) end [2025-01-05 17:20:18] Production.INFO: ProcessCDR(1,14181712,1,1,2) [2025-01-05 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181712', 'tblTempUsageDetail_20' ) start [2025-01-05 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181712', 'tblTempUsageDetail_20' ) end [2025-01-05 17:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:20:22] Production.INFO: ==9954== Releasing lock... [2025-01-05 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:21:04 [end_date_ymd] => 2025-01-05 17:21:04 [RateCDR] => 1 ) [2025-01-05 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:21:04' and `end` < '2025-01-05 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:21:17] Production.INFO: count ==1081 [2025-01-05 17:21:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:21:04 - End Time 2025-01-05 17:21:04 [2025-01-05 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181717', 'tblTempUsageDetail_20' ) start [2025-01-05 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181717', 'tblTempUsageDetail_20' ) end [2025-01-05 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181717', 'tblTempVendorCDR_20' ) start [2025-01-05 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181717', 'tblTempVendorCDR_20' ) end [2025-01-05 17:21:17] Production.INFO: ProcessCDR(1,14181717,1,1,2) [2025-01-05 17:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181717', 'tblTempUsageDetail_20' ) start [2025-01-05 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181717', 'tblTempUsageDetail_20' ) end [2025-01-05 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:21:22] Production.INFO: ==10070== Releasing lock... [2025-01-05 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:22:05 [end_date_ymd] => 2025-01-05 17:22:05 [RateCDR] => 1 ) [2025-01-05 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:22:05' and `end` < '2025-01-05 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:22:20] Production.INFO: count ==1086 [2025-01-05 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-05 14:22:05 - End Time 2025-01-05 17:22:05 [2025-01-05 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181723', 'tblTempUsageDetail_20' ) start [2025-01-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181723', 'tblTempUsageDetail_20' ) end [2025-01-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181723', 'tblTempVendorCDR_20' ) start [2025-01-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181723', 'tblTempVendorCDR_20' ) end [2025-01-05 17:22:20] Production.INFO: ProcessCDR(1,14181723,1,1,2) [2025-01-05 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181723', 'tblTempUsageDetail_20' ) start [2025-01-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181723', 'tblTempUsageDetail_20' ) end [2025-01-05 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:22:25] Production.INFO: ==10182== Releasing lock... [2025-01-05 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:22:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:23:05 [end_date_ymd] => 2025-01-05 17:23:05 [RateCDR] => 1 ) [2025-01-05 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:23:05' and `end` < '2025-01-05 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:23:18] Production.INFO: count ==1075 [2025-01-05 17:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:23:05 - End Time 2025-01-05 17:23:05 [2025-01-05 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181728', 'tblTempUsageDetail_20' ) start [2025-01-05 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181728', 'tblTempUsageDetail_20' ) end [2025-01-05 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181728', 'tblTempVendorCDR_20' ) start [2025-01-05 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181728', 'tblTempVendorCDR_20' ) end [2025-01-05 17:23:18] Production.INFO: ProcessCDR(1,14181728,1,1,2) [2025-01-05 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181728', 'tblTempUsageDetail_20' ) start [2025-01-05 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181728', 'tblTempUsageDetail_20' ) end [2025-01-05 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:23:22] Production.INFO: ==10293== Releasing lock... [2025-01-05 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:23:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:24:05 [end_date_ymd] => 2025-01-05 17:24:05 [RateCDR] => 1 ) [2025-01-05 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:24:05' and `end` < '2025-01-05 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:24:18] Production.INFO: count ==1076 [2025-01-05 17:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:24:05 - End Time 2025-01-05 17:24:05 [2025-01-05 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181733', 'tblTempUsageDetail_20' ) start [2025-01-05 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181733', 'tblTempUsageDetail_20' ) end [2025-01-05 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181733', 'tblTempVendorCDR_20' ) start [2025-01-05 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181733', 'tblTempVendorCDR_20' ) end [2025-01-05 17:24:18] Production.INFO: ProcessCDR(1,14181733,1,1,2) [2025-01-05 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181733', 'tblTempUsageDetail_20' ) start [2025-01-05 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181733', 'tblTempUsageDetail_20' ) end [2025-01-05 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:24:23] Production.INFO: ==10406== Releasing lock... [2025-01-05 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:24:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:25:04 [end_date_ymd] => 2025-01-05 17:25:04 [RateCDR] => 1 ) [2025-01-05 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:25:04' and `end` < '2025-01-05 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:25:17] Production.INFO: count ==1077 [2025-01-05 17:25:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:25:04 - End Time 2025-01-05 17:25:04 [2025-01-05 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181738', 'tblTempUsageDetail_20' ) start [2025-01-05 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181738', 'tblTempUsageDetail_20' ) end [2025-01-05 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181738', 'tblTempVendorCDR_20' ) start [2025-01-05 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181738', 'tblTempVendorCDR_20' ) end [2025-01-05 17:25:17] Production.INFO: ProcessCDR(1,14181738,1,1,2) [2025-01-05 17:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181738', 'tblTempUsageDetail_20' ) start [2025-01-05 17:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181738', 'tblTempUsageDetail_20' ) end [2025-01-05 17:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:25:20] Production.INFO: ==10523== Releasing lock... [2025-01-05 17:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:25:20] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:26:15 [end_date_ymd] => 2025-01-05 17:26:15 [RateCDR] => 1 ) [2025-01-05 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:26:15' and `end` < '2025-01-05 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:26:28] Production.INFO: count ==1077 [2025-01-05 17:26:34] Production.ERROR: pbx CDR StartTime 2025-01-05 14:26:15 - End Time 2025-01-05 17:26:15 [2025-01-05 17:26:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181743', 'tblTempUsageDetail_20' ) start [2025-01-05 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181743', 'tblTempUsageDetail_20' ) end [2025-01-05 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181743', 'tblTempVendorCDR_20' ) start [2025-01-05 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181743', 'tblTempVendorCDR_20' ) end [2025-01-05 17:26:34] Production.INFO: ProcessCDR(1,14181743,1,1,2) [2025-01-05 17:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:26:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:26:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181743', 'tblTempUsageDetail_20' ) start [2025-01-05 17:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181743', 'tblTempUsageDetail_20' ) end [2025-01-05 17:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:27:32] Production.INFO: ==10636== Releasing lock... [2025-01-05 17:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:27:32] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:28:24] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:28:24 [end_date_ymd] => 2025-01-05 17:28:24 [RateCDR] => 1 ) [2025-01-05 17:28:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:28:24' and `end` < '2025-01-05 17:28:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:28:37] Production.INFO: count ==1085 [2025-01-05 17:28:44] Production.ERROR: pbx CDR StartTime 2025-01-05 14:28:24 - End Time 2025-01-05 17:28:24 [2025-01-05 17:28:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:28:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181750', 'tblTempUsageDetail_20' ) start [2025-01-05 17:28:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181750', 'tblTempUsageDetail_20' ) end [2025-01-05 17:28:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181750', 'tblTempVendorCDR_20' ) start [2025-01-05 17:28:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181750', 'tblTempVendorCDR_20' ) end [2025-01-05 17:28:47] Production.INFO: ProcessCDR(1,14181750,1,1,2) [2025-01-05 17:28:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:28:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:28:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:29:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:29:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181750', 'tblTempUsageDetail_20' ) start [2025-01-05 17:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181750', 'tblTempUsageDetail_20' ) end [2025-01-05 17:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:29:26] Production.INFO: ==10851== Releasing lock... [2025-01-05 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:29:26] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:30:23] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:30:23 [end_date_ymd] => 2025-01-05 17:30:23 [RateCDR] => 1 ) [2025-01-05 17:30:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:30:23' and `end` < '2025-01-05 17:30:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:30:36] Production.INFO: count ==1101 [2025-01-05 17:30:43] Production.ERROR: pbx CDR StartTime 2025-01-05 14:30:23 - End Time 2025-01-05 17:30:23 [2025-01-05 17:30:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181759', 'tblTempUsageDetail_20' ) start [2025-01-05 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181759', 'tblTempUsageDetail_20' ) end [2025-01-05 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181759', 'tblTempVendorCDR_20' ) start [2025-01-05 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181759', 'tblTempVendorCDR_20' ) end [2025-01-05 17:30:43] Production.INFO: ProcessCDR(1,14181759,1,1,2) [2025-01-05 17:30:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:30:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:30:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:31:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:31:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181759', 'tblTempUsageDetail_20' ) start [2025-01-05 17:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181759', 'tblTempUsageDetail_20' ) end [2025-01-05 17:31:06] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:31:06] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:31:11] Production.INFO: ==11055== Releasing lock... [2025-01-05 17:31:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:31:11] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:32:26] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:32:26 [end_date_ymd] => 2025-01-05 17:32:26 [RateCDR] => 1 ) [2025-01-05 17:32:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:32:26' and `end` < '2025-01-05 17:32:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:32:39] Production.INFO: count ==1108 [2025-01-05 17:32:45] Production.ERROR: pbx CDR StartTime 2025-01-05 14:32:26 - End Time 2025-01-05 17:32:26 [2025-01-05 17:32:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181768', 'tblTempUsageDetail_20' ) start [2025-01-05 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181768', 'tblTempUsageDetail_20' ) end [2025-01-05 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181768', 'tblTempVendorCDR_20' ) start [2025-01-05 17:32:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181768', 'tblTempVendorCDR_20' ) end [2025-01-05 17:32:45] Production.INFO: ProcessCDR(1,14181768,1,1,2) [2025-01-05 17:32:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:32:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:32:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:33:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:33:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181768', 'tblTempUsageDetail_20' ) start [2025-01-05 17:33:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181768', 'tblTempUsageDetail_20' ) end [2025-01-05 17:33:17] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:33:17] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:33:22] Production.INFO: ==11210== Releasing lock... [2025-01-05 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:33:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:34:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:34:18 [end_date_ymd] => 2025-01-05 17:34:18 [RateCDR] => 1 ) [2025-01-05 17:34:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:34:18' and `end` < '2025-01-05 17:34:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:34:30] Production.INFO: count ==1106 [2025-01-05 17:34:33] Production.ERROR: pbx CDR StartTime 2025-01-05 14:34:18 - End Time 2025-01-05 17:34:18 [2025-01-05 17:34:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181775', 'tblTempUsageDetail_20' ) start [2025-01-05 17:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181775', 'tblTempUsageDetail_20' ) end [2025-01-05 17:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181775', 'tblTempVendorCDR_20' ) start [2025-01-05 17:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181775', 'tblTempVendorCDR_20' ) end [2025-01-05 17:34:33] Production.INFO: ProcessCDR(1,14181775,1,1,2) [2025-01-05 17:34:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:34:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:34:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:34:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:34:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181775', 'tblTempUsageDetail_20' ) start [2025-01-05 17:34:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181775', 'tblTempUsageDetail_20' ) end [2025-01-05 17:34:52] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:34:52] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:34:54] Production.INFO: ==11393== Releasing lock... [2025-01-05 17:34:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:34:54] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:35:17] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:35:17 [end_date_ymd] => 2025-01-05 17:35:17 [RateCDR] => 1 ) [2025-01-05 17:35:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:35:17' and `end` < '2025-01-05 17:35:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:35:30] Production.INFO: count ==1108 [2025-01-05 17:35:30] Production.ERROR: pbx CDR StartTime 2025-01-05 14:35:17 - End Time 2025-01-05 17:35:17 [2025-01-05 17:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181780', 'tblTempUsageDetail_20' ) start [2025-01-05 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181780', 'tblTempUsageDetail_20' ) end [2025-01-05 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181780', 'tblTempVendorCDR_20' ) start [2025-01-05 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181780', 'tblTempVendorCDR_20' ) end [2025-01-05 17:35:30] Production.INFO: ProcessCDR(1,14181780,1,1,2) [2025-01-05 17:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181780', 'tblTempUsageDetail_20' ) start [2025-01-05 17:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181780', 'tblTempUsageDetail_20' ) end [2025-01-05 17:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:35:33] Production.INFO: ==11475== Releasing lock... [2025-01-05 17:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:35:33] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:36:06 [end_date_ymd] => 2025-01-05 17:36:06 [RateCDR] => 1 ) [2025-01-05 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:36:06' and `end` < '2025-01-05 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:36:19] Production.INFO: count ==1107 [2025-01-05 17:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:36:06 - End Time 2025-01-05 17:36:06 [2025-01-05 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181785', 'tblTempUsageDetail_20' ) start [2025-01-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181785', 'tblTempUsageDetail_20' ) end [2025-01-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181785', 'tblTempVendorCDR_20' ) start [2025-01-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181785', 'tblTempVendorCDR_20' ) end [2025-01-05 17:36:19] Production.INFO: ProcessCDR(1,14181785,1,1,2) [2025-01-05 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181785', 'tblTempUsageDetail_20' ) start [2025-01-05 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181785', 'tblTempUsageDetail_20' ) end [2025-01-05 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:36:23] Production.INFO: ==11559== Releasing lock... [2025-01-05 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:36:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:37:05 [end_date_ymd] => 2025-01-05 17:37:05 [RateCDR] => 1 ) [2025-01-05 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:37:05' and `end` < '2025-01-05 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:37:18] Production.INFO: count ==1107 [2025-01-05 17:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:37:05 - End Time 2025-01-05 17:37:05 [2025-01-05 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181790', 'tblTempUsageDetail_20' ) start [2025-01-05 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181790', 'tblTempUsageDetail_20' ) end [2025-01-05 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181790', 'tblTempVendorCDR_20' ) start [2025-01-05 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181790', 'tblTempVendorCDR_20' ) end [2025-01-05 17:37:18] Production.INFO: ProcessCDR(1,14181790,1,1,2) [2025-01-05 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181790', 'tblTempUsageDetail_20' ) start [2025-01-05 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181790', 'tblTempUsageDetail_20' ) end [2025-01-05 17:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:37:21] Production.INFO: ==11638== Releasing lock... [2025-01-05 17:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:37:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:38:05 [end_date_ymd] => 2025-01-05 17:38:05 [RateCDR] => 1 ) [2025-01-05 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:38:05' and `end` < '2025-01-05 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:38:18] Production.INFO: count ==1106 [2025-01-05 17:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:38:05 - End Time 2025-01-05 17:38:05 [2025-01-05 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181795', 'tblTempUsageDetail_20' ) start [2025-01-05 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181795', 'tblTempUsageDetail_20' ) end [2025-01-05 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181795', 'tblTempVendorCDR_20' ) start [2025-01-05 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181795', 'tblTempVendorCDR_20' ) end [2025-01-05 17:38:18] Production.INFO: ProcessCDR(1,14181795,1,1,2) [2025-01-05 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181795', 'tblTempUsageDetail_20' ) start [2025-01-05 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181795', 'tblTempUsageDetail_20' ) end [2025-01-05 17:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:38:21] Production.INFO: ==11717== Releasing lock... [2025-01-05 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:38:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:39:05 [end_date_ymd] => 2025-01-05 17:39:05 [RateCDR] => 1 ) [2025-01-05 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:39:05' and `end` < '2025-01-05 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:39:17] Production.INFO: count ==1106 [2025-01-05 17:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:39:05 - End Time 2025-01-05 17:39:05 [2025-01-05 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181800', 'tblTempUsageDetail_20' ) start [2025-01-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181800', 'tblTempUsageDetail_20' ) end [2025-01-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181800', 'tblTempVendorCDR_20' ) start [2025-01-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181800', 'tblTempVendorCDR_20' ) end [2025-01-05 17:39:18] Production.INFO: ProcessCDR(1,14181800,1,1,2) [2025-01-05 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181800', 'tblTempUsageDetail_20' ) start [2025-01-05 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181800', 'tblTempUsageDetail_20' ) end [2025-01-05 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:39:21] Production.INFO: ==11795== Releasing lock... [2025-01-05 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:39:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:40:06 [end_date_ymd] => 2025-01-05 17:40:06 [RateCDR] => 1 ) [2025-01-05 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:40:06' and `end` < '2025-01-05 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:40:19] Production.INFO: count ==1107 [2025-01-05 17:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:40:06 - End Time 2025-01-05 17:40:06 [2025-01-05 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181805', 'tblTempUsageDetail_20' ) start [2025-01-05 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181805', 'tblTempUsageDetail_20' ) end [2025-01-05 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181805', 'tblTempVendorCDR_20' ) start [2025-01-05 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181805', 'tblTempVendorCDR_20' ) end [2025-01-05 17:40:19] Production.INFO: ProcessCDR(1,14181805,1,1,2) [2025-01-05 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181805', 'tblTempUsageDetail_20' ) start [2025-01-05 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181805', 'tblTempUsageDetail_20' ) end [2025-01-05 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:40:23] Production.INFO: ==11875== Releasing lock... [2025-01-05 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:40:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:41:05 [end_date_ymd] => 2025-01-05 17:41:05 [RateCDR] => 1 ) [2025-01-05 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:41:05' and `end` < '2025-01-05 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:41:18] Production.INFO: count ==1109 [2025-01-05 17:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:41:05 - End Time 2025-01-05 17:41:05 [2025-01-05 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181811', 'tblTempUsageDetail_20' ) start [2025-01-05 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181811', 'tblTempUsageDetail_20' ) end [2025-01-05 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181811', 'tblTempVendorCDR_20' ) start [2025-01-05 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181811', 'tblTempVendorCDR_20' ) end [2025-01-05 17:41:18] Production.INFO: ProcessCDR(1,14181811,1,1,2) [2025-01-05 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181811', 'tblTempUsageDetail_20' ) start [2025-01-05 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181811', 'tblTempUsageDetail_20' ) end [2025-01-05 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:41:23] Production.INFO: ==11958== Releasing lock... [2025-01-05 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:41:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:42:05 [end_date_ymd] => 2025-01-05 17:42:05 [RateCDR] => 1 ) [2025-01-05 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:42:05' and `end` < '2025-01-05 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:42:18] Production.INFO: count ==1112 [2025-01-05 17:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:42:05 - End Time 2025-01-05 17:42:05 [2025-01-05 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181816', 'tblTempUsageDetail_20' ) start [2025-01-05 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181816', 'tblTempUsageDetail_20' ) end [2025-01-05 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181816', 'tblTempVendorCDR_20' ) start [2025-01-05 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181816', 'tblTempVendorCDR_20' ) end [2025-01-05 17:42:18] Production.INFO: ProcessCDR(1,14181816,1,1,2) [2025-01-05 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181816', 'tblTempUsageDetail_20' ) start [2025-01-05 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181816', 'tblTempUsageDetail_20' ) end [2025-01-05 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:42:23] Production.INFO: ==12037== Releasing lock... [2025-01-05 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:43:06 [end_date_ymd] => 2025-01-05 17:43:06 [RateCDR] => 1 ) [2025-01-05 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:43:06' and `end` < '2025-01-05 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:43:19] Production.INFO: count ==1098 [2025-01-05 17:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:43:06 - End Time 2025-01-05 17:43:06 [2025-01-05 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181821', 'tblTempUsageDetail_20' ) start [2025-01-05 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181821', 'tblTempUsageDetail_20' ) end [2025-01-05 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181821', 'tblTempVendorCDR_20' ) start [2025-01-05 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181821', 'tblTempVendorCDR_20' ) end [2025-01-05 17:43:19] Production.INFO: ProcessCDR(1,14181821,1,1,2) [2025-01-05 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181821', 'tblTempUsageDetail_20' ) start [2025-01-05 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181821', 'tblTempUsageDetail_20' ) end [2025-01-05 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:43:24] Production.INFO: ==12116== Releasing lock... [2025-01-05 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:43:24] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:44:05 [end_date_ymd] => 2025-01-05 17:44:05 [RateCDR] => 1 ) [2025-01-05 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:44:05' and `end` < '2025-01-05 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:44:18] Production.INFO: count ==1102 [2025-01-05 17:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:44:05 - End Time 2025-01-05 17:44:05 [2025-01-05 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181826', 'tblTempUsageDetail_20' ) start [2025-01-05 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181826', 'tblTempUsageDetail_20' ) end [2025-01-05 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181826', 'tblTempVendorCDR_20' ) start [2025-01-05 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181826', 'tblTempVendorCDR_20' ) end [2025-01-05 17:44:18] Production.INFO: ProcessCDR(1,14181826,1,1,2) [2025-01-05 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181826', 'tblTempUsageDetail_20' ) start [2025-01-05 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181826', 'tblTempUsageDetail_20' ) end [2025-01-05 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:44:22] Production.INFO: ==12201== Releasing lock... [2025-01-05 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:44:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:45:05 [end_date_ymd] => 2025-01-05 17:45:05 [RateCDR] => 1 ) [2025-01-05 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:45:05' and `end` < '2025-01-05 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:45:18] Production.INFO: count ==1103 [2025-01-05 17:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:45:05 - End Time 2025-01-05 17:45:05 [2025-01-05 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181831', 'tblTempUsageDetail_20' ) start [2025-01-05 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181831', 'tblTempUsageDetail_20' ) end [2025-01-05 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181831', 'tblTempVendorCDR_20' ) start [2025-01-05 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181831', 'tblTempVendorCDR_20' ) end [2025-01-05 17:45:18] Production.INFO: ProcessCDR(1,14181831,1,1,2) [2025-01-05 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181831', 'tblTempUsageDetail_20' ) start [2025-01-05 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181831', 'tblTempUsageDetail_20' ) end [2025-01-05 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:45:22] Production.INFO: ==12280== Releasing lock... [2025-01-05 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:46:05 [end_date_ymd] => 2025-01-05 17:46:05 [RateCDR] => 1 ) [2025-01-05 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:46:05' and `end` < '2025-01-05 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:46:17] Production.INFO: count ==1105 [2025-01-05 17:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:46:05 - End Time 2025-01-05 17:46:05 [2025-01-05 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181836', 'tblTempUsageDetail_20' ) start [2025-01-05 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181836', 'tblTempUsageDetail_20' ) end [2025-01-05 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181836', 'tblTempVendorCDR_20' ) start [2025-01-05 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181836', 'tblTempVendorCDR_20' ) end [2025-01-05 17:46:18] Production.INFO: ProcessCDR(1,14181836,1,1,2) [2025-01-05 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181836', 'tblTempUsageDetail_20' ) start [2025-01-05 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181836', 'tblTempUsageDetail_20' ) end [2025-01-05 17:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:46:22] Production.INFO: ==12360== Releasing lock... [2025-01-05 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:46:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:47:05 [end_date_ymd] => 2025-01-05 17:47:05 [RateCDR] => 1 ) [2025-01-05 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:47:05' and `end` < '2025-01-05 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:47:18] Production.INFO: count ==1107 [2025-01-05 17:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:47:05 - End Time 2025-01-05 17:47:05 [2025-01-05 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181841', 'tblTempUsageDetail_20' ) start [2025-01-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181841', 'tblTempUsageDetail_20' ) end [2025-01-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181841', 'tblTempVendorCDR_20' ) start [2025-01-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181841', 'tblTempVendorCDR_20' ) end [2025-01-05 17:47:18] Production.INFO: ProcessCDR(1,14181841,1,1,2) [2025-01-05 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181841', 'tblTempUsageDetail_20' ) start [2025-01-05 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181841', 'tblTempUsageDetail_20' ) end [2025-01-05 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:47:23] Production.INFO: ==12439== Releasing lock... [2025-01-05 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:47:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:48:05 [end_date_ymd] => 2025-01-05 17:48:05 [RateCDR] => 1 ) [2025-01-05 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:48:05' and `end` < '2025-01-05 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:48:18] Production.INFO: count ==1109 [2025-01-05 17:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:48:05 - End Time 2025-01-05 17:48:05 [2025-01-05 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181846', 'tblTempUsageDetail_20' ) start [2025-01-05 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181846', 'tblTempUsageDetail_20' ) end [2025-01-05 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181846', 'tblTempVendorCDR_20' ) start [2025-01-05 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181846', 'tblTempVendorCDR_20' ) end [2025-01-05 17:48:18] Production.INFO: ProcessCDR(1,14181846,1,1,2) [2025-01-05 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181846', 'tblTempUsageDetail_20' ) start [2025-01-05 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181846', 'tblTempUsageDetail_20' ) end [2025-01-05 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:48:23] Production.INFO: ==12517== Releasing lock... [2025-01-05 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:48:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:49:04 [end_date_ymd] => 2025-01-05 17:49:04 [RateCDR] => 1 ) [2025-01-05 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:49:04' and `end` < '2025-01-05 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:49:17] Production.INFO: count ==1116 [2025-01-05 17:49:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:49:04 - End Time 2025-01-05 17:49:04 [2025-01-05 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181851', 'tblTempUsageDetail_20' ) start [2025-01-05 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181851', 'tblTempUsageDetail_20' ) end [2025-01-05 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181851', 'tblTempVendorCDR_20' ) start [2025-01-05 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181851', 'tblTempVendorCDR_20' ) end [2025-01-05 17:49:17] Production.INFO: ProcessCDR(1,14181851,1,1,2) [2025-01-05 17:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181851', 'tblTempUsageDetail_20' ) start [2025-01-05 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181851', 'tblTempUsageDetail_20' ) end [2025-01-05 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:49:22] Production.INFO: ==12601== Releasing lock... [2025-01-05 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:50:05 [end_date_ymd] => 2025-01-05 17:50:05 [RateCDR] => 1 ) [2025-01-05 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:50:05' and `end` < '2025-01-05 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:50:18] Production.INFO: count ==1122 [2025-01-05 17:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:50:05 - End Time 2025-01-05 17:50:05 [2025-01-05 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181856', 'tblTempUsageDetail_20' ) start [2025-01-05 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181856', 'tblTempUsageDetail_20' ) end [2025-01-05 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181856', 'tblTempVendorCDR_20' ) start [2025-01-05 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181856', 'tblTempVendorCDR_20' ) end [2025-01-05 17:50:19] Production.INFO: ProcessCDR(1,14181856,1,1,2) [2025-01-05 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181856', 'tblTempUsageDetail_20' ) start [2025-01-05 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181856', 'tblTempUsageDetail_20' ) end [2025-01-05 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:50:23] Production.INFO: ==12721== Releasing lock... [2025-01-05 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:51:04 [end_date_ymd] => 2025-01-05 17:51:04 [RateCDR] => 1 ) [2025-01-05 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:51:04' and `end` < '2025-01-05 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:51:17] Production.INFO: count ==1140 [2025-01-05 17:51:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:51:04 - End Time 2025-01-05 17:51:04 [2025-01-05 17:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181862', 'tblTempUsageDetail_20' ) start [2025-01-05 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181862', 'tblTempUsageDetail_20' ) end [2025-01-05 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181862', 'tblTempVendorCDR_20' ) start [2025-01-05 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181862', 'tblTempVendorCDR_20' ) end [2025-01-05 17:51:17] Production.INFO: ProcessCDR(1,14181862,1,1,2) [2025-01-05 17:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181862', 'tblTempUsageDetail_20' ) start [2025-01-05 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181862', 'tblTempUsageDetail_20' ) end [2025-01-05 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:51:22] Production.INFO: ==12808== Releasing lock... [2025-01-05 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:52:05 [end_date_ymd] => 2025-01-05 17:52:05 [RateCDR] => 1 ) [2025-01-05 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:52:05' and `end` < '2025-01-05 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:52:19] Production.INFO: count ==1141 [2025-01-05 17:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:52:05 - End Time 2025-01-05 17:52:05 [2025-01-05 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181867', 'tblTempUsageDetail_20' ) start [2025-01-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181867', 'tblTempUsageDetail_20' ) end [2025-01-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181867', 'tblTempVendorCDR_20' ) start [2025-01-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181867', 'tblTempVendorCDR_20' ) end [2025-01-05 17:52:19] Production.INFO: ProcessCDR(1,14181867,1,1,2) [2025-01-05 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181867', 'tblTempUsageDetail_20' ) start [2025-01-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181867', 'tblTempUsageDetail_20' ) end [2025-01-05 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:52:24] Production.INFO: ==12893== Releasing lock... [2025-01-05 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:52:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:53:06 [end_date_ymd] => 2025-01-05 17:53:06 [RateCDR] => 1 ) [2025-01-05 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:53:06' and `end` < '2025-01-05 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:53:19] Production.INFO: count ==1140 [2025-01-05 17:53:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:53:06 - End Time 2025-01-05 17:53:06 [2025-01-05 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181872', 'tblTempUsageDetail_20' ) start [2025-01-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181872', 'tblTempUsageDetail_20' ) end [2025-01-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181872', 'tblTempVendorCDR_20' ) start [2025-01-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181872', 'tblTempVendorCDR_20' ) end [2025-01-05 17:53:19] Production.INFO: ProcessCDR(1,14181872,1,1,2) [2025-01-05 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181872', 'tblTempUsageDetail_20' ) start [2025-01-05 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181872', 'tblTempUsageDetail_20' ) end [2025-01-05 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:53:22] Production.INFO: ==12977== Releasing lock... [2025-01-05 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:54:05 [end_date_ymd] => 2025-01-05 17:54:05 [RateCDR] => 1 ) [2025-01-05 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:54:05' and `end` < '2025-01-05 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:54:18] Production.INFO: count ==1141 [2025-01-05 17:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:54:05 - End Time 2025-01-05 17:54:05 [2025-01-05 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181877', 'tblTempUsageDetail_20' ) start [2025-01-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181877', 'tblTempUsageDetail_20' ) end [2025-01-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181877', 'tblTempVendorCDR_20' ) start [2025-01-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181877', 'tblTempVendorCDR_20' ) end [2025-01-05 17:54:18] Production.INFO: ProcessCDR(1,14181877,1,1,2) [2025-01-05 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181877', 'tblTempUsageDetail_20' ) start [2025-01-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181877', 'tblTempUsageDetail_20' ) end [2025-01-05 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:54:22] Production.INFO: ==13061== Releasing lock... [2025-01-05 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:55:05 [end_date_ymd] => 2025-01-05 17:55:05 [RateCDR] => 1 ) [2025-01-05 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:55:05' and `end` < '2025-01-05 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:55:18] Production.INFO: count ==1127 [2025-01-05 17:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:55:05 - End Time 2025-01-05 17:55:05 [2025-01-05 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181882', 'tblTempUsageDetail_20' ) start [2025-01-05 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181882', 'tblTempUsageDetail_20' ) end [2025-01-05 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181882', 'tblTempVendorCDR_20' ) start [2025-01-05 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181882', 'tblTempVendorCDR_20' ) end [2025-01-05 17:55:18] Production.INFO: ProcessCDR(1,14181882,1,1,2) [2025-01-05 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181882', 'tblTempUsageDetail_20' ) start [2025-01-05 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181882', 'tblTempUsageDetail_20' ) end [2025-01-05 17:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:55:21] Production.INFO: ==13151== Releasing lock... [2025-01-05 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:56:05 [end_date_ymd] => 2025-01-05 17:56:05 [RateCDR] => 1 ) [2025-01-05 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:56:05' and `end` < '2025-01-05 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:56:18] Production.INFO: count ==1124 [2025-01-05 17:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:56:05 - End Time 2025-01-05 17:56:05 [2025-01-05 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181887', 'tblTempUsageDetail_20' ) start [2025-01-05 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181887', 'tblTempUsageDetail_20' ) end [2025-01-05 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181887', 'tblTempVendorCDR_20' ) start [2025-01-05 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181887', 'tblTempVendorCDR_20' ) end [2025-01-05 17:56:18] Production.INFO: ProcessCDR(1,14181887,1,1,2) [2025-01-05 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181887', 'tblTempUsageDetail_20' ) start [2025-01-05 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181887', 'tblTempUsageDetail_20' ) end [2025-01-05 17:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:56:21] Production.INFO: ==13240== Releasing lock... [2025-01-05 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:57:05 [end_date_ymd] => 2025-01-05 17:57:05 [RateCDR] => 1 ) [2025-01-05 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:57:05' and `end` < '2025-01-05 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:57:18] Production.INFO: count ==1122 [2025-01-05 17:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 14:57:05 - End Time 2025-01-05 17:57:05 [2025-01-05 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181892', 'tblTempUsageDetail_20' ) start [2025-01-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181892', 'tblTempUsageDetail_20' ) end [2025-01-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181892', 'tblTempVendorCDR_20' ) start [2025-01-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181892', 'tblTempVendorCDR_20' ) end [2025-01-05 17:57:19] Production.INFO: ProcessCDR(1,14181892,1,1,2) [2025-01-05 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181892', 'tblTempUsageDetail_20' ) start [2025-01-05 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181892', 'tblTempUsageDetail_20' ) end [2025-01-05 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:57:22] Production.INFO: ==13326== Releasing lock... [2025-01-05 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:57:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:58:04 [end_date_ymd] => 2025-01-05 17:58:04 [RateCDR] => 1 ) [2025-01-05 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:58:04' and `end` < '2025-01-05 17:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:58:17] Production.INFO: count ==1122 [2025-01-05 17:58:17] Production.ERROR: pbx CDR StartTime 2025-01-05 14:58:04 - End Time 2025-01-05 17:58:04 [2025-01-05 17:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181897', 'tblTempUsageDetail_20' ) start [2025-01-05 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181897', 'tblTempUsageDetail_20' ) end [2025-01-05 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181897', 'tblTempVendorCDR_20' ) start [2025-01-05 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181897', 'tblTempVendorCDR_20' ) end [2025-01-05 17:58:17] Production.INFO: ProcessCDR(1,14181897,1,1,2) [2025-01-05 17:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181897', 'tblTempUsageDetail_20' ) start [2025-01-05 17:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181897', 'tblTempUsageDetail_20' ) end [2025-01-05 17:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:58:20] Production.INFO: ==13416== Releasing lock... [2025-01-05 17:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:58:20] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 14:59:05 [end_date_ymd] => 2025-01-05 17:59:05 [RateCDR] => 1 ) [2025-01-05 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 14:59:05' and `end` < '2025-01-05 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 17:59:18] Production.INFO: count ==1125 [2025-01-05 17:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 14:59:05 - End Time 2025-01-05 17:59:05 [2025-01-05 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181902', 'tblTempUsageDetail_20' ) start [2025-01-05 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181902', 'tblTempUsageDetail_20' ) end [2025-01-05 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181902', 'tblTempVendorCDR_20' ) start [2025-01-05 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181902', 'tblTempVendorCDR_20' ) end [2025-01-05 17:59:18] Production.INFO: ProcessCDR(1,14181902,1,1,2) [2025-01-05 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181902', 'tblTempUsageDetail_20' ) start [2025-01-05 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181902', 'tblTempUsageDetail_20' ) end [2025-01-05 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 17:59:22] Production.INFO: ==13502== Releasing lock... [2025-01-05 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 17:59:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:00:06 [end_date_ymd] => 2025-01-05 18:00:06 [RateCDR] => 1 ) [2025-01-05 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:00:06' and `end` < '2025-01-05 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:00:19] Production.INFO: count ==1126 [2025-01-05 18:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:00:06 - End Time 2025-01-05 18:00:06 [2025-01-05 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181908', 'tblTempUsageDetail_20' ) start [2025-01-05 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181908', 'tblTempUsageDetail_20' ) end [2025-01-05 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181908', 'tblTempVendorCDR_20' ) start [2025-01-05 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181908', 'tblTempVendorCDR_20' ) end [2025-01-05 18:00:19] Production.INFO: ProcessCDR(1,14181908,1,1,2) [2025-01-05 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181908', 'tblTempUsageDetail_20' ) start [2025-01-05 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181908', 'tblTempUsageDetail_20' ) end [2025-01-05 18:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:00:22] Production.INFO: ==13592== Releasing lock... [2025-01-05 18:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:00:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:01:05 [end_date_ymd] => 2025-01-05 18:01:05 [RateCDR] => 1 ) [2025-01-05 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:01:05' and `end` < '2025-01-05 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:01:19] Production.INFO: count ==1152 [2025-01-05 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:01:05 - End Time 2025-01-05 18:01:05 [2025-01-05 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181913', 'tblTempUsageDetail_20' ) start [2025-01-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181913', 'tblTempUsageDetail_20' ) end [2025-01-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181913', 'tblTempVendorCDR_20' ) start [2025-01-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181913', 'tblTempVendorCDR_20' ) end [2025-01-05 18:01:19] Production.INFO: ProcessCDR(1,14181913,1,1,2) [2025-01-05 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181913', 'tblTempUsageDetail_20' ) start [2025-01-05 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181913', 'tblTempUsageDetail_20' ) end [2025-01-05 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:01:22] Production.INFO: ==13692== Releasing lock... [2025-01-05 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:02:05 [end_date_ymd] => 2025-01-05 18:02:05 [RateCDR] => 1 ) [2025-01-05 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:02:05' and `end` < '2025-01-05 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:02:18] Production.INFO: count ==1157 [2025-01-05 18:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:02:05 - End Time 2025-01-05 18:02:05 [2025-01-05 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181918', 'tblTempUsageDetail_20' ) start [2025-01-05 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181918', 'tblTempUsageDetail_20' ) end [2025-01-05 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181918', 'tblTempVendorCDR_20' ) start [2025-01-05 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181918', 'tblTempVendorCDR_20' ) end [2025-01-05 18:02:18] Production.INFO: ProcessCDR(1,14181918,1,1,2) [2025-01-05 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181918', 'tblTempUsageDetail_20' ) start [2025-01-05 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181918', 'tblTempUsageDetail_20' ) end [2025-01-05 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:02:23] Production.INFO: ==13781== Releasing lock... [2025-01-05 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:02:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-05 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:03:04 [end_date_ymd] => 2025-01-05 18:03:04 [RateCDR] => 1 ) [2025-01-05 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:03:04' and `end` < '2025-01-05 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:03:18] Production.INFO: count ==1155 [2025-01-05 18:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:03:04 - End Time 2025-01-05 18:03:04 [2025-01-05 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181923', 'tblTempUsageDetail_20' ) start [2025-01-05 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181923', 'tblTempUsageDetail_20' ) end [2025-01-05 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181923', 'tblTempVendorCDR_20' ) start [2025-01-05 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181923', 'tblTempVendorCDR_20' ) end [2025-01-05 18:03:18] Production.INFO: ProcessCDR(1,14181923,1,1,2) [2025-01-05 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181923', 'tblTempUsageDetail_20' ) start [2025-01-05 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181923', 'tblTempUsageDetail_20' ) end [2025-01-05 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:03:21] Production.INFO: ==13869== Releasing lock... [2025-01-05 18:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:03:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:04:05 [end_date_ymd] => 2025-01-05 18:04:05 [RateCDR] => 1 ) [2025-01-05 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:04:05' and `end` < '2025-01-05 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:04:18] Production.INFO: count ==1150 [2025-01-05 18:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:04:05 - End Time 2025-01-05 18:04:05 [2025-01-05 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181928', 'tblTempUsageDetail_20' ) start [2025-01-05 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181928', 'tblTempUsageDetail_20' ) end [2025-01-05 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181928', 'tblTempVendorCDR_20' ) start [2025-01-05 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181928', 'tblTempVendorCDR_20' ) end [2025-01-05 18:04:18] Production.INFO: ProcessCDR(1,14181928,1,1,2) [2025-01-05 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181928', 'tblTempUsageDetail_20' ) start [2025-01-05 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181928', 'tblTempUsageDetail_20' ) end [2025-01-05 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:04:22] Production.INFO: ==13956== Releasing lock... [2025-01-05 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:04:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:05:05 [end_date_ymd] => 2025-01-05 18:05:05 [RateCDR] => 1 ) [2025-01-05 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:05:05' and `end` < '2025-01-05 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:05:19] Production.INFO: count ==1150 [2025-01-05 18:05:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:05:05 - End Time 2025-01-05 18:05:05 [2025-01-05 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181933', 'tblTempUsageDetail_20' ) start [2025-01-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181933', 'tblTempUsageDetail_20' ) end [2025-01-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181933', 'tblTempVendorCDR_20' ) start [2025-01-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181933', 'tblTempVendorCDR_20' ) end [2025-01-05 18:05:19] Production.INFO: ProcessCDR(1,14181933,1,1,2) [2025-01-05 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181933', 'tblTempUsageDetail_20' ) start [2025-01-05 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181933', 'tblTempUsageDetail_20' ) end [2025-01-05 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:05:23] Production.INFO: ==14082== Releasing lock... [2025-01-05 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:05:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:06:05 [end_date_ymd] => 2025-01-05 18:06:05 [RateCDR] => 1 ) [2025-01-05 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:06:05' and `end` < '2025-01-05 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:06:18] Production.INFO: count ==1150 [2025-01-05 18:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:06:05 - End Time 2025-01-05 18:06:05 [2025-01-05 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181938', 'tblTempUsageDetail_20' ) start [2025-01-05 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181938', 'tblTempUsageDetail_20' ) end [2025-01-05 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181938', 'tblTempVendorCDR_20' ) start [2025-01-05 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181938', 'tblTempVendorCDR_20' ) end [2025-01-05 18:06:18] Production.INFO: ProcessCDR(1,14181938,1,1,2) [2025-01-05 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181938', 'tblTempUsageDetail_20' ) start [2025-01-05 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181938', 'tblTempUsageDetail_20' ) end [2025-01-05 18:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:06:21] Production.INFO: ==14167== Releasing lock... [2025-01-05 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:06:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:07:05 [end_date_ymd] => 2025-01-05 18:07:05 [RateCDR] => 1 ) [2025-01-05 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:07:05' and `end` < '2025-01-05 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:07:18] Production.INFO: count ==1150 [2025-01-05 18:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:07:05 - End Time 2025-01-05 18:07:05 [2025-01-05 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181943', 'tblTempUsageDetail_20' ) start [2025-01-05 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181943', 'tblTempUsageDetail_20' ) end [2025-01-05 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181943', 'tblTempVendorCDR_20' ) start [2025-01-05 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181943', 'tblTempVendorCDR_20' ) end [2025-01-05 18:07:18] Production.INFO: ProcessCDR(1,14181943,1,1,2) [2025-01-05 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181943', 'tblTempUsageDetail_20' ) start [2025-01-05 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181943', 'tblTempUsageDetail_20' ) end [2025-01-05 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:07:22] Production.INFO: ==14255== Releasing lock... [2025-01-05 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:08:05 [end_date_ymd] => 2025-01-05 18:08:05 [RateCDR] => 1 ) [2025-01-05 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:08:05' and `end` < '2025-01-05 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:08:18] Production.INFO: count ==1151 [2025-01-05 18:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:08:05 - End Time 2025-01-05 18:08:05 [2025-01-05 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181948', 'tblTempUsageDetail_20' ) start [2025-01-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181948', 'tblTempUsageDetail_20' ) end [2025-01-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181948', 'tblTempVendorCDR_20' ) start [2025-01-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181948', 'tblTempVendorCDR_20' ) end [2025-01-05 18:08:18] Production.INFO: ProcessCDR(1,14181948,1,1,2) [2025-01-05 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181948', 'tblTempUsageDetail_20' ) start [2025-01-05 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181948', 'tblTempUsageDetail_20' ) end [2025-01-05 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:08:22] Production.INFO: ==14342== Releasing lock... [2025-01-05 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:09:05 [end_date_ymd] => 2025-01-05 18:09:05 [RateCDR] => 1 ) [2025-01-05 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:09:05' and `end` < '2025-01-05 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:09:18] Production.INFO: count ==1151 [2025-01-05 18:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:09:05 - End Time 2025-01-05 18:09:05 [2025-01-05 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181953', 'tblTempUsageDetail_20' ) start [2025-01-05 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181953', 'tblTempUsageDetail_20' ) end [2025-01-05 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181953', 'tblTempVendorCDR_20' ) start [2025-01-05 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181953', 'tblTempVendorCDR_20' ) end [2025-01-05 18:09:18] Production.INFO: ProcessCDR(1,14181953,1,1,2) [2025-01-05 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181953', 'tblTempUsageDetail_20' ) start [2025-01-05 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181953', 'tblTempUsageDetail_20' ) end [2025-01-05 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:09:21] Production.INFO: ==14429== Releasing lock... [2025-01-05 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:09:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:10:06 [end_date_ymd] => 2025-01-05 18:10:06 [RateCDR] => 1 ) [2025-01-05 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:10:06' and `end` < '2025-01-05 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:10:19] Production.INFO: count ==1152 [2025-01-05 18:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:10:06 - End Time 2025-01-05 18:10:06 [2025-01-05 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181959', 'tblTempUsageDetail_20' ) start [2025-01-05 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181959', 'tblTempUsageDetail_20' ) end [2025-01-05 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181959', 'tblTempVendorCDR_20' ) start [2025-01-05 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181959', 'tblTempVendorCDR_20' ) end [2025-01-05 18:10:19] Production.INFO: ProcessCDR(1,14181959,1,1,2) [2025-01-05 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181959', 'tblTempUsageDetail_20' ) start [2025-01-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181959', 'tblTempUsageDetail_20' ) end [2025-01-05 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:10:24] Production.INFO: ==14519== Releasing lock... [2025-01-05 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:10:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:11:04 [end_date_ymd] => 2025-01-05 18:11:04 [RateCDR] => 1 ) [2025-01-05 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:11:04' and `end` < '2025-01-05 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:11:20] Production.INFO: count ==1170 [2025-01-05 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-05 15:11:04 - End Time 2025-01-05 18:11:04 [2025-01-05 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181964', 'tblTempUsageDetail_20' ) start [2025-01-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181964', 'tblTempUsageDetail_20' ) end [2025-01-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181964', 'tblTempVendorCDR_20' ) start [2025-01-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181964', 'tblTempVendorCDR_20' ) end [2025-01-05 18:11:20] Production.INFO: ProcessCDR(1,14181964,1,1,2) [2025-01-05 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181964', 'tblTempUsageDetail_20' ) start [2025-01-05 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181964', 'tblTempUsageDetail_20' ) end [2025-01-05 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:11:23] Production.INFO: ==14611== Releasing lock... [2025-01-05 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:11:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:12:06 [end_date_ymd] => 2025-01-05 18:12:06 [RateCDR] => 1 ) [2025-01-05 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:12:06' and `end` < '2025-01-05 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:12:20] Production.INFO: count ==1170 [2025-01-05 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-05 15:12:06 - End Time 2025-01-05 18:12:06 [2025-01-05 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181969', 'tblTempUsageDetail_20' ) start [2025-01-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181969', 'tblTempUsageDetail_20' ) end [2025-01-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181969', 'tblTempVendorCDR_20' ) start [2025-01-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181969', 'tblTempVendorCDR_20' ) end [2025-01-05 18:12:20] Production.INFO: ProcessCDR(1,14181969,1,1,2) [2025-01-05 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181969', 'tblTempUsageDetail_20' ) start [2025-01-05 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181969', 'tblTempUsageDetail_20' ) end [2025-01-05 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:12:23] Production.INFO: ==14706== Releasing lock... [2025-01-05 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:12:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:13:05 [end_date_ymd] => 2025-01-05 18:13:05 [RateCDR] => 1 ) [2025-01-05 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:13:05' and `end` < '2025-01-05 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:13:19] Production.INFO: count ==1167 [2025-01-05 18:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:13:05 - End Time 2025-01-05 18:13:05 [2025-01-05 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181974', 'tblTempUsageDetail_20' ) start [2025-01-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181974', 'tblTempUsageDetail_20' ) end [2025-01-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181974', 'tblTempVendorCDR_20' ) start [2025-01-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181974', 'tblTempVendorCDR_20' ) end [2025-01-05 18:13:19] Production.INFO: ProcessCDR(1,14181974,1,1,2) [2025-01-05 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181974', 'tblTempUsageDetail_20' ) start [2025-01-05 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181974', 'tblTempUsageDetail_20' ) end [2025-01-05 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:13:22] Production.INFO: ==14791== Releasing lock... [2025-01-05 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:14:05 [end_date_ymd] => 2025-01-05 18:14:05 [RateCDR] => 1 ) [2025-01-05 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:14:05' and `end` < '2025-01-05 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:14:19] Production.INFO: count ==1166 [2025-01-05 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-05 15:14:05 - End Time 2025-01-05 18:14:05 [2025-01-05 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181979', 'tblTempUsageDetail_20' ) start [2025-01-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181979', 'tblTempUsageDetail_20' ) end [2025-01-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181979', 'tblTempVendorCDR_20' ) start [2025-01-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181979', 'tblTempVendorCDR_20' ) end [2025-01-05 18:14:20] Production.INFO: ProcessCDR(1,14181979,1,1,2) [2025-01-05 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181979', 'tblTempUsageDetail_20' ) start [2025-01-05 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181979', 'tblTempUsageDetail_20' ) end [2025-01-05 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:14:23] Production.INFO: ==14887== Releasing lock... [2025-01-05 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:14:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:15:05 [end_date_ymd] => 2025-01-05 18:15:05 [RateCDR] => 1 ) [2025-01-05 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:15:05' and `end` < '2025-01-05 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:15:17] Production.INFO: count ==1160 [2025-01-05 18:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:15:05 - End Time 2025-01-05 18:15:05 [2025-01-05 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181984', 'tblTempUsageDetail_20' ) start [2025-01-05 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181984', 'tblTempUsageDetail_20' ) end [2025-01-05 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181984', 'tblTempVendorCDR_20' ) start [2025-01-05 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181984', 'tblTempVendorCDR_20' ) end [2025-01-05 18:15:18] Production.INFO: ProcessCDR(1,14181984,1,1,2) [2025-01-05 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181984', 'tblTempUsageDetail_20' ) start [2025-01-05 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181984', 'tblTempUsageDetail_20' ) end [2025-01-05 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:15:22] Production.INFO: ==14980== Releasing lock... [2025-01-05 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:16:05 [end_date_ymd] => 2025-01-05 18:16:05 [RateCDR] => 1 ) [2025-01-05 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:16:05' and `end` < '2025-01-05 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:16:18] Production.INFO: count ==1159 [2025-01-05 18:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:16:05 - End Time 2025-01-05 18:16:05 [2025-01-05 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181989', 'tblTempUsageDetail_20' ) start [2025-01-05 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181989', 'tblTempUsageDetail_20' ) end [2025-01-05 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181989', 'tblTempVendorCDR_20' ) start [2025-01-05 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181989', 'tblTempVendorCDR_20' ) end [2025-01-05 18:16:18] Production.INFO: ProcessCDR(1,14181989,1,1,2) [2025-01-05 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181989', 'tblTempUsageDetail_20' ) start [2025-01-05 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181989', 'tblTempUsageDetail_20' ) end [2025-01-05 18:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:16:21] Production.INFO: ==15067== Releasing lock... [2025-01-05 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:16:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:17:06 [end_date_ymd] => 2025-01-05 18:17:06 [RateCDR] => 1 ) [2025-01-05 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:17:06' and `end` < '2025-01-05 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:17:18] Production.INFO: count ==1159 [2025-01-05 18:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:17:06 - End Time 2025-01-05 18:17:06 [2025-01-05 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181994', 'tblTempUsageDetail_20' ) start [2025-01-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181994', 'tblTempUsageDetail_20' ) end [2025-01-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181994', 'tblTempVendorCDR_20' ) start [2025-01-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181994', 'tblTempVendorCDR_20' ) end [2025-01-05 18:17:19] Production.INFO: ProcessCDR(1,14181994,1,1,2) [2025-01-05 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181994', 'tblTempUsageDetail_20' ) start [2025-01-05 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181994', 'tblTempUsageDetail_20' ) end [2025-01-05 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:17:23] Production.INFO: ==15158== Releasing lock... [2025-01-05 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:17:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:18:05 [end_date_ymd] => 2025-01-05 18:18:05 [RateCDR] => 1 ) [2025-01-05 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:18:05' and `end` < '2025-01-05 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:18:19] Production.INFO: count ==1158 [2025-01-05 18:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:18:05 - End Time 2025-01-05 18:18:05 [2025-01-05 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181999', 'tblTempUsageDetail_20' ) start [2025-01-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14181999', 'tblTempUsageDetail_20' ) end [2025-01-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181999', 'tblTempVendorCDR_20' ) start [2025-01-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14181999', 'tblTempVendorCDR_20' ) end [2025-01-05 18:18:19] Production.INFO: ProcessCDR(1,14181999,1,1,2) [2025-01-05 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14181999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14181999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14181999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14181999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181999', 'tblTempUsageDetail_20' ) start [2025-01-05 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14181999', 'tblTempUsageDetail_20' ) end [2025-01-05 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:18:22] Production.INFO: ==15248== Releasing lock... [2025-01-05 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:19:05 [end_date_ymd] => 2025-01-05 18:19:05 [RateCDR] => 1 ) [2025-01-05 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:19:05' and `end` < '2025-01-05 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:19:18] Production.INFO: count ==1158 [2025-01-05 18:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:19:05 - End Time 2025-01-05 18:19:05 [2025-01-05 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182004', 'tblTempUsageDetail_20' ) start [2025-01-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182004', 'tblTempUsageDetail_20' ) end [2025-01-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182004', 'tblTempVendorCDR_20' ) start [2025-01-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182004', 'tblTempVendorCDR_20' ) end [2025-01-05 18:19:18] Production.INFO: ProcessCDR(1,14182004,1,1,2) [2025-01-05 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182004', 'tblTempUsageDetail_20' ) start [2025-01-05 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182004', 'tblTempUsageDetail_20' ) end [2025-01-05 18:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:19:21] Production.INFO: ==15334== Releasing lock... [2025-01-05 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:20:05 [end_date_ymd] => 2025-01-05 18:20:05 [RateCDR] => 1 ) [2025-01-05 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:20:05' and `end` < '2025-01-05 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:20:18] Production.INFO: count ==1158 [2025-01-05 18:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:20:05 - End Time 2025-01-05 18:20:05 [2025-01-05 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182010', 'tblTempUsageDetail_20' ) start [2025-01-05 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182010', 'tblTempUsageDetail_20' ) end [2025-01-05 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182010', 'tblTempVendorCDR_20' ) start [2025-01-05 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182010', 'tblTempVendorCDR_20' ) end [2025-01-05 18:20:18] Production.INFO: ProcessCDR(1,14182010,1,1,2) [2025-01-05 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182010', 'tblTempUsageDetail_20' ) start [2025-01-05 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182010', 'tblTempUsageDetail_20' ) end [2025-01-05 18:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:20:21] Production.INFO: ==15421== Releasing lock... [2025-01-05 18:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:20:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:21:04 [end_date_ymd] => 2025-01-05 18:21:04 [RateCDR] => 1 ) [2025-01-05 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:21:04' and `end` < '2025-01-05 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:21:17] Production.INFO: count ==1172 [2025-01-05 18:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:21:04 - End Time 2025-01-05 18:21:04 [2025-01-05 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182015', 'tblTempUsageDetail_20' ) start [2025-01-05 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182015', 'tblTempUsageDetail_20' ) end [2025-01-05 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182015', 'tblTempVendorCDR_20' ) start [2025-01-05 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182015', 'tblTempVendorCDR_20' ) end [2025-01-05 18:21:18] Production.INFO: ProcessCDR(1,14182015,1,1,2) [2025-01-05 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182015', 'tblTempUsageDetail_20' ) start [2025-01-05 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182015', 'tblTempUsageDetail_20' ) end [2025-01-05 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:21:21] Production.INFO: ==15548== Releasing lock... [2025-01-05 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:22:05 [end_date_ymd] => 2025-01-05 18:22:05 [RateCDR] => 1 ) [2025-01-05 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:22:05' and `end` < '2025-01-05 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:22:18] Production.INFO: count ==1173 [2025-01-05 18:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:22:05 - End Time 2025-01-05 18:22:05 [2025-01-05 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182020', 'tblTempUsageDetail_20' ) start [2025-01-05 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182020', 'tblTempUsageDetail_20' ) end [2025-01-05 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182020', 'tblTempVendorCDR_20' ) start [2025-01-05 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182020', 'tblTempVendorCDR_20' ) end [2025-01-05 18:22:18] Production.INFO: ProcessCDR(1,14182020,1,1,2) [2025-01-05 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182020', 'tblTempUsageDetail_20' ) start [2025-01-05 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182020', 'tblTempUsageDetail_20' ) end [2025-01-05 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:22:21] Production.INFO: ==15636== Releasing lock... [2025-01-05 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:22:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:23:05 [end_date_ymd] => 2025-01-05 18:23:05 [RateCDR] => 1 ) [2025-01-05 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:23:05' and `end` < '2025-01-05 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:23:18] Production.INFO: count ==1173 [2025-01-05 18:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:23:05 - End Time 2025-01-05 18:23:05 [2025-01-05 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182024', 'tblTempUsageDetail_20' ) start [2025-01-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182024', 'tblTempUsageDetail_20' ) end [2025-01-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182024', 'tblTempVendorCDR_20' ) start [2025-01-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182024', 'tblTempVendorCDR_20' ) end [2025-01-05 18:23:18] Production.INFO: ProcessCDR(1,14182024,1,1,2) [2025-01-05 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182024', 'tblTempUsageDetail_20' ) start [2025-01-05 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182024', 'tblTempUsageDetail_20' ) end [2025-01-05 18:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:23:21] Production.INFO: ==15725== Releasing lock... [2025-01-05 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:23:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:24:05 [end_date_ymd] => 2025-01-05 18:24:05 [RateCDR] => 1 ) [2025-01-05 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:24:05' and `end` < '2025-01-05 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:24:18] Production.INFO: count ==1173 [2025-01-05 18:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:24:05 - End Time 2025-01-05 18:24:05 [2025-01-05 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182030', 'tblTempUsageDetail_20' ) start [2025-01-05 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182030', 'tblTempUsageDetail_20' ) end [2025-01-05 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182030', 'tblTempVendorCDR_20' ) start [2025-01-05 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182030', 'tblTempVendorCDR_20' ) end [2025-01-05 18:24:18] Production.INFO: ProcessCDR(1,14182030,1,1,2) [2025-01-05 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182030', 'tblTempUsageDetail_20' ) start [2025-01-05 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182030', 'tblTempUsageDetail_20' ) end [2025-01-05 18:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:24:21] Production.INFO: ==15812== Releasing lock... [2025-01-05 18:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:24:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:25:05 [end_date_ymd] => 2025-01-05 18:25:05 [RateCDR] => 1 ) [2025-01-05 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:25:05' and `end` < '2025-01-05 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:25:18] Production.INFO: count ==1172 [2025-01-05 18:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:25:05 - End Time 2025-01-05 18:25:05 [2025-01-05 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182035', 'tblTempUsageDetail_20' ) start [2025-01-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182035', 'tblTempUsageDetail_20' ) end [2025-01-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182035', 'tblTempVendorCDR_20' ) start [2025-01-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182035', 'tblTempVendorCDR_20' ) end [2025-01-05 18:25:18] Production.INFO: ProcessCDR(1,14182035,1,1,2) [2025-01-05 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182035', 'tblTempUsageDetail_20' ) start [2025-01-05 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182035', 'tblTempUsageDetail_20' ) end [2025-01-05 18:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:25:21] Production.INFO: ==15900== Releasing lock... [2025-01-05 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:25:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:26:06 [end_date_ymd] => 2025-01-05 18:26:06 [RateCDR] => 1 ) [2025-01-05 18:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:26:06' and `end` < '2025-01-05 18:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:26:20] Production.INFO: count ==1165 [2025-01-05 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-05 15:26:06 - End Time 2025-01-05 18:26:06 [2025-01-05 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182040', 'tblTempUsageDetail_20' ) start [2025-01-05 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182040', 'tblTempUsageDetail_20' ) end [2025-01-05 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182040', 'tblTempVendorCDR_20' ) start [2025-01-05 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182040', 'tblTempVendorCDR_20' ) end [2025-01-05 18:26:20] Production.INFO: ProcessCDR(1,14182040,1,1,2) [2025-01-05 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182040', 'tblTempUsageDetail_20' ) start [2025-01-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182040', 'tblTempUsageDetail_20' ) end [2025-01-05 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:26:24] Production.INFO: ==15995== Releasing lock... [2025-01-05 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:26:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:27:05 [end_date_ymd] => 2025-01-05 18:27:05 [RateCDR] => 1 ) [2025-01-05 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:27:05' and `end` < '2025-01-05 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:27:18] Production.INFO: count ==1164 [2025-01-05 18:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:27:05 - End Time 2025-01-05 18:27:05 [2025-01-05 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182045', 'tblTempUsageDetail_20' ) start [2025-01-05 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182045', 'tblTempUsageDetail_20' ) end [2025-01-05 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182045', 'tblTempVendorCDR_20' ) start [2025-01-05 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182045', 'tblTempVendorCDR_20' ) end [2025-01-05 18:27:18] Production.INFO: ProcessCDR(1,14182045,1,1,2) [2025-01-05 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182045', 'tblTempUsageDetail_20' ) start [2025-01-05 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182045', 'tblTempUsageDetail_20' ) end [2025-01-05 18:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:27:21] Production.INFO: ==16087== Releasing lock... [2025-01-05 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:28:05 [end_date_ymd] => 2025-01-05 18:28:05 [RateCDR] => 1 ) [2025-01-05 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:28:05' and `end` < '2025-01-05 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:28:18] Production.INFO: count ==1166 [2025-01-05 18:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:28:05 - End Time 2025-01-05 18:28:05 [2025-01-05 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182050', 'tblTempUsageDetail_20' ) start [2025-01-05 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182050', 'tblTempUsageDetail_20' ) end [2025-01-05 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182050', 'tblTempVendorCDR_20' ) start [2025-01-05 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182050', 'tblTempVendorCDR_20' ) end [2025-01-05 18:28:18] Production.INFO: ProcessCDR(1,14182050,1,1,2) [2025-01-05 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182050', 'tblTempUsageDetail_20' ) start [2025-01-05 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182050', 'tblTempUsageDetail_20' ) end [2025-01-05 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:28:23] Production.INFO: ==16173== Releasing lock... [2025-01-05 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:28:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:29:04 [end_date_ymd] => 2025-01-05 18:29:04 [RateCDR] => 1 ) [2025-01-05 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:29:04' and `end` < '2025-01-05 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:29:17] Production.INFO: count ==1165 [2025-01-05 18:29:17] Production.ERROR: pbx CDR StartTime 2025-01-05 15:29:04 - End Time 2025-01-05 18:29:04 [2025-01-05 18:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182055', 'tblTempUsageDetail_20' ) start [2025-01-05 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182055', 'tblTempUsageDetail_20' ) end [2025-01-05 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182055', 'tblTempVendorCDR_20' ) start [2025-01-05 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182055', 'tblTempVendorCDR_20' ) end [2025-01-05 18:29:17] Production.INFO: ProcessCDR(1,14182055,1,1,2) [2025-01-05 18:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182055', 'tblTempUsageDetail_20' ) start [2025-01-05 18:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182055', 'tblTempUsageDetail_20' ) end [2025-01-05 18:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:29:20] Production.INFO: ==16264== Releasing lock... [2025-01-05 18:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:29:20] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:30:06 [end_date_ymd] => 2025-01-05 18:30:06 [RateCDR] => 1 ) [2025-01-05 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:30:06' and `end` < '2025-01-05 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:30:19] Production.INFO: count ==1164 [2025-01-05 18:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:30:06 - End Time 2025-01-05 18:30:06 [2025-01-05 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182061', 'tblTempUsageDetail_20' ) start [2025-01-05 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182061', 'tblTempUsageDetail_20' ) end [2025-01-05 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182061', 'tblTempVendorCDR_20' ) start [2025-01-05 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182061', 'tblTempVendorCDR_20' ) end [2025-01-05 18:30:19] Production.INFO: ProcessCDR(1,14182061,1,1,2) [2025-01-05 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182061', 'tblTempUsageDetail_20' ) start [2025-01-05 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182061', 'tblTempUsageDetail_20' ) end [2025-01-05 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:30:22] Production.INFO: ==16357== Releasing lock... [2025-01-05 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:31:06 [end_date_ymd] => 2025-01-05 18:31:06 [RateCDR] => 1 ) [2025-01-05 18:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:31:06' and `end` < '2025-01-05 18:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:31:18] Production.INFO: count ==1174 [2025-01-05 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:31:06 - End Time 2025-01-05 18:31:06 [2025-01-05 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182066', 'tblTempUsageDetail_20' ) start [2025-01-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182066', 'tblTempUsageDetail_20' ) end [2025-01-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182066', 'tblTempVendorCDR_20' ) start [2025-01-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182066', 'tblTempVendorCDR_20' ) end [2025-01-05 18:31:19] Production.INFO: ProcessCDR(1,14182066,1,1,2) [2025-01-05 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182066', 'tblTempUsageDetail_20' ) start [2025-01-05 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182066', 'tblTempUsageDetail_20' ) end [2025-01-05 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:31:22] Production.INFO: ==16447== Releasing lock... [2025-01-05 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:32:05 [end_date_ymd] => 2025-01-05 18:32:05 [RateCDR] => 1 ) [2025-01-05 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:32:05' and `end` < '2025-01-05 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:32:17] Production.INFO: count ==1173 [2025-01-05 18:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:32:05 - End Time 2025-01-05 18:32:05 [2025-01-05 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182071', 'tblTempUsageDetail_20' ) start [2025-01-05 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182071', 'tblTempUsageDetail_20' ) end [2025-01-05 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182071', 'tblTempVendorCDR_20' ) start [2025-01-05 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182071', 'tblTempVendorCDR_20' ) end [2025-01-05 18:32:18] Production.INFO: ProcessCDR(1,14182071,1,1,2) [2025-01-05 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182071', 'tblTempUsageDetail_20' ) start [2025-01-05 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182071', 'tblTempUsageDetail_20' ) end [2025-01-05 18:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:32:21] Production.INFO: ==16533== Releasing lock... [2025-01-05 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:32:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:33:05 [end_date_ymd] => 2025-01-05 18:33:05 [RateCDR] => 1 ) [2025-01-05 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:33:05' and `end` < '2025-01-05 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:33:18] Production.INFO: count ==1172 [2025-01-05 18:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:33:05 - End Time 2025-01-05 18:33:05 [2025-01-05 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182076', 'tblTempUsageDetail_20' ) start [2025-01-05 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182076', 'tblTempUsageDetail_20' ) end [2025-01-05 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182076', 'tblTempVendorCDR_20' ) start [2025-01-05 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182076', 'tblTempVendorCDR_20' ) end [2025-01-05 18:33:18] Production.INFO: ProcessCDR(1,14182076,1,1,2) [2025-01-05 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182076', 'tblTempUsageDetail_20' ) start [2025-01-05 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182076', 'tblTempUsageDetail_20' ) end [2025-01-05 18:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:33:21] Production.INFO: ==16619== Releasing lock... [2025-01-05 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:33:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:34:05 [end_date_ymd] => 2025-01-05 18:34:05 [RateCDR] => 1 ) [2025-01-05 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:34:05' and `end` < '2025-01-05 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:34:18] Production.INFO: count ==1172 [2025-01-05 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:34:05 - End Time 2025-01-05 18:34:05 [2025-01-05 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182081', 'tblTempUsageDetail_20' ) start [2025-01-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182081', 'tblTempUsageDetail_20' ) end [2025-01-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182081', 'tblTempVendorCDR_20' ) start [2025-01-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182081', 'tblTempVendorCDR_20' ) end [2025-01-05 18:34:19] Production.INFO: ProcessCDR(1,14182081,1,1,2) [2025-01-05 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182081', 'tblTempUsageDetail_20' ) start [2025-01-05 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182081', 'tblTempUsageDetail_20' ) end [2025-01-05 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:34:22] Production.INFO: ==16704== Releasing lock... [2025-01-05 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:34:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:35:05 [end_date_ymd] => 2025-01-05 18:35:05 [RateCDR] => 1 ) [2025-01-05 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:35:05' and `end` < '2025-01-05 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:35:18] Production.INFO: count ==1171 [2025-01-05 18:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:35:05 - End Time 2025-01-05 18:35:05 [2025-01-05 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182086', 'tblTempUsageDetail_20' ) start [2025-01-05 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182086', 'tblTempUsageDetail_20' ) end [2025-01-05 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182086', 'tblTempVendorCDR_20' ) start [2025-01-05 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182086', 'tblTempVendorCDR_20' ) end [2025-01-05 18:35:18] Production.INFO: ProcessCDR(1,14182086,1,1,2) [2025-01-05 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182086', 'tblTempUsageDetail_20' ) start [2025-01-05 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182086', 'tblTempUsageDetail_20' ) end [2025-01-05 18:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:35:21] Production.INFO: ==16790== Releasing lock... [2025-01-05 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:35:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:36:05 [end_date_ymd] => 2025-01-05 18:36:05 [RateCDR] => 1 ) [2025-01-05 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:36:05' and `end` < '2025-01-05 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:36:18] Production.INFO: count ==1170 [2025-01-05 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:36:05 - End Time 2025-01-05 18:36:05 [2025-01-05 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182091', 'tblTempUsageDetail_20' ) start [2025-01-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182091', 'tblTempUsageDetail_20' ) end [2025-01-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182091', 'tblTempVendorCDR_20' ) start [2025-01-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182091', 'tblTempVendorCDR_20' ) end [2025-01-05 18:36:19] Production.INFO: ProcessCDR(1,14182091,1,1,2) [2025-01-05 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182091', 'tblTempUsageDetail_20' ) start [2025-01-05 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182091', 'tblTempUsageDetail_20' ) end [2025-01-05 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:36:22] Production.INFO: ==16878== Releasing lock... [2025-01-05 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:36:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:37:05 [end_date_ymd] => 2025-01-05 18:37:05 [RateCDR] => 1 ) [2025-01-05 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:37:05' and `end` < '2025-01-05 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:37:19] Production.INFO: count ==1171 [2025-01-05 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:37:05 - End Time 2025-01-05 18:37:05 [2025-01-05 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182096', 'tblTempUsageDetail_20' ) start [2025-01-05 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182096', 'tblTempUsageDetail_20' ) end [2025-01-05 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182096', 'tblTempVendorCDR_20' ) start [2025-01-05 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182096', 'tblTempVendorCDR_20' ) end [2025-01-05 18:37:19] Production.INFO: ProcessCDR(1,14182096,1,1,2) [2025-01-05 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182096', 'tblTempUsageDetail_20' ) start [2025-01-05 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182096', 'tblTempUsageDetail_20' ) end [2025-01-05 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:37:23] Production.INFO: ==17006== Releasing lock... [2025-01-05 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:37:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:38:05 [end_date_ymd] => 2025-01-05 18:38:05 [RateCDR] => 1 ) [2025-01-05 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:38:05' and `end` < '2025-01-05 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:38:18] Production.INFO: count ==1171 [2025-01-05 18:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:38:05 - End Time 2025-01-05 18:38:05 [2025-01-05 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182101', 'tblTempUsageDetail_20' ) start [2025-01-05 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182101', 'tblTempUsageDetail_20' ) end [2025-01-05 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182101', 'tblTempVendorCDR_20' ) start [2025-01-05 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182101', 'tblTempVendorCDR_20' ) end [2025-01-05 18:38:19] Production.INFO: ProcessCDR(1,14182101,1,1,2) [2025-01-05 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182101', 'tblTempUsageDetail_20' ) start [2025-01-05 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182101', 'tblTempUsageDetail_20' ) end [2025-01-05 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:38:22] Production.INFO: ==17093== Releasing lock... [2025-01-05 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:39:04 [end_date_ymd] => 2025-01-05 18:39:04 [RateCDR] => 1 ) [2025-01-05 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:39:04' and `end` < '2025-01-05 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:39:17] Production.INFO: count ==1160 [2025-01-05 18:39:17] Production.ERROR: pbx CDR StartTime 2025-01-05 15:39:04 - End Time 2025-01-05 18:39:04 [2025-01-05 18:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182106', 'tblTempUsageDetail_20' ) start [2025-01-05 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182106', 'tblTempUsageDetail_20' ) end [2025-01-05 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182106', 'tblTempVendorCDR_20' ) start [2025-01-05 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182106', 'tblTempVendorCDR_20' ) end [2025-01-05 18:39:17] Production.INFO: ProcessCDR(1,14182106,1,1,2) [2025-01-05 18:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182106', 'tblTempUsageDetail_20' ) start [2025-01-05 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182106', 'tblTempUsageDetail_20' ) end [2025-01-05 18:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:39:21] Production.INFO: ==17182== Releasing lock... [2025-01-05 18:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:39:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:40:05 [end_date_ymd] => 2025-01-05 18:40:05 [RateCDR] => 1 ) [2025-01-05 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:40:05' and `end` < '2025-01-05 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:40:18] Production.INFO: count ==1162 [2025-01-05 18:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:40:05 - End Time 2025-01-05 18:40:05 [2025-01-05 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182111', 'tblTempUsageDetail_20' ) start [2025-01-05 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182111', 'tblTempUsageDetail_20' ) end [2025-01-05 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182111', 'tblTempVendorCDR_20' ) start [2025-01-05 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182111', 'tblTempVendorCDR_20' ) end [2025-01-05 18:40:18] Production.INFO: ProcessCDR(1,14182111,1,1,2) [2025-01-05 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182111', 'tblTempUsageDetail_20' ) start [2025-01-05 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182111', 'tblTempUsageDetail_20' ) end [2025-01-05 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:40:23] Production.INFO: ==17275== Releasing lock... [2025-01-05 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:41:05 [end_date_ymd] => 2025-01-05 18:41:05 [RateCDR] => 1 ) [2025-01-05 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:41:05' and `end` < '2025-01-05 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:41:19] Production.INFO: count ==1177 [2025-01-05 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:41:05 - End Time 2025-01-05 18:41:05 [2025-01-05 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182117', 'tblTempUsageDetail_20' ) start [2025-01-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182117', 'tblTempUsageDetail_20' ) end [2025-01-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182117', 'tblTempVendorCDR_20' ) start [2025-01-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182117', 'tblTempVendorCDR_20' ) end [2025-01-05 18:41:19] Production.INFO: ProcessCDR(1,14182117,1,1,2) [2025-01-05 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182117', 'tblTempUsageDetail_20' ) start [2025-01-05 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182117', 'tblTempUsageDetail_20' ) end [2025-01-05 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:41:23] Production.INFO: ==17364== Releasing lock... [2025-01-05 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:41:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:42:05 [end_date_ymd] => 2025-01-05 18:42:05 [RateCDR] => 1 ) [2025-01-05 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:42:05' and `end` < '2025-01-05 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:42:19] Production.INFO: count ==1177 [2025-01-05 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:42:05 - End Time 2025-01-05 18:42:05 [2025-01-05 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182122', 'tblTempUsageDetail_20' ) start [2025-01-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182122', 'tblTempUsageDetail_20' ) end [2025-01-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182122', 'tblTempVendorCDR_20' ) start [2025-01-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182122', 'tblTempVendorCDR_20' ) end [2025-01-05 18:42:19] Production.INFO: ProcessCDR(1,14182122,1,1,2) [2025-01-05 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182122', 'tblTempUsageDetail_20' ) start [2025-01-05 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182122', 'tblTempUsageDetail_20' ) end [2025-01-05 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:42:23] Production.INFO: ==17454== Releasing lock... [2025-01-05 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:43:05 [end_date_ymd] => 2025-01-05 18:43:05 [RateCDR] => 1 ) [2025-01-05 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:43:05' and `end` < '2025-01-05 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:43:18] Production.INFO: count ==1176 [2025-01-05 18:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:43:05 - End Time 2025-01-05 18:43:05 [2025-01-05 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182127', 'tblTempUsageDetail_20' ) start [2025-01-05 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182127', 'tblTempUsageDetail_20' ) end [2025-01-05 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182127', 'tblTempVendorCDR_20' ) start [2025-01-05 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182127', 'tblTempVendorCDR_20' ) end [2025-01-05 18:43:18] Production.INFO: ProcessCDR(1,14182127,1,1,2) [2025-01-05 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182127', 'tblTempUsageDetail_20' ) start [2025-01-05 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182127', 'tblTempUsageDetail_20' ) end [2025-01-05 18:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:43:21] Production.INFO: ==17543== Releasing lock... [2025-01-05 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:44:05 [end_date_ymd] => 2025-01-05 18:44:05 [RateCDR] => 1 ) [2025-01-05 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:44:05' and `end` < '2025-01-05 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:44:17] Production.INFO: count ==1175 [2025-01-05 18:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:44:05 - End Time 2025-01-05 18:44:05 [2025-01-05 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182132', 'tblTempUsageDetail_20' ) start [2025-01-05 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182132', 'tblTempUsageDetail_20' ) end [2025-01-05 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182132', 'tblTempVendorCDR_20' ) start [2025-01-05 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182132', 'tblTempVendorCDR_20' ) end [2025-01-05 18:44:18] Production.INFO: ProcessCDR(1,14182132,1,1,2) [2025-01-05 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182132', 'tblTempUsageDetail_20' ) start [2025-01-05 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182132', 'tblTempUsageDetail_20' ) end [2025-01-05 18:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:44:21] Production.INFO: ==17641== Releasing lock... [2025-01-05 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:44:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:45:05 [end_date_ymd] => 2025-01-05 18:45:05 [RateCDR] => 1 ) [2025-01-05 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:45:05' and `end` < '2025-01-05 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:45:18] Production.INFO: count ==1175 [2025-01-05 18:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:45:05 - End Time 2025-01-05 18:45:05 [2025-01-05 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182137', 'tblTempUsageDetail_20' ) start [2025-01-05 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182137', 'tblTempUsageDetail_20' ) end [2025-01-05 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182137', 'tblTempVendorCDR_20' ) start [2025-01-05 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182137', 'tblTempVendorCDR_20' ) end [2025-01-05 18:45:18] Production.INFO: ProcessCDR(1,14182137,1,1,2) [2025-01-05 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182137', 'tblTempUsageDetail_20' ) start [2025-01-05 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182137', 'tblTempUsageDetail_20' ) end [2025-01-05 18:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:45:21] Production.INFO: ==17758== Releasing lock... [2025-01-05 18:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:45:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:46:05 [end_date_ymd] => 2025-01-05 18:46:05 [RateCDR] => 1 ) [2025-01-05 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:46:05' and `end` < '2025-01-05 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:46:18] Production.INFO: count ==1174 [2025-01-05 18:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:46:05 - End Time 2025-01-05 18:46:05 [2025-01-05 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182142', 'tblTempUsageDetail_20' ) start [2025-01-05 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182142', 'tblTempUsageDetail_20' ) end [2025-01-05 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182142', 'tblTempVendorCDR_20' ) start [2025-01-05 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182142', 'tblTempVendorCDR_20' ) end [2025-01-05 18:46:18] Production.INFO: ProcessCDR(1,14182142,1,1,2) [2025-01-05 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182142', 'tblTempUsageDetail_20' ) start [2025-01-05 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182142', 'tblTempUsageDetail_20' ) end [2025-01-05 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:46:22] Production.INFO: ==17878== Releasing lock... [2025-01-05 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:47:05 [end_date_ymd] => 2025-01-05 18:47:05 [RateCDR] => 1 ) [2025-01-05 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:47:05' and `end` < '2025-01-05 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:47:18] Production.INFO: count ==1176 [2025-01-05 18:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:47:05 - End Time 2025-01-05 18:47:05 [2025-01-05 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182147', 'tblTempUsageDetail_20' ) start [2025-01-05 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182147', 'tblTempUsageDetail_20' ) end [2025-01-05 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182147', 'tblTempVendorCDR_20' ) start [2025-01-05 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182147', 'tblTempVendorCDR_20' ) end [2025-01-05 18:47:18] Production.INFO: ProcessCDR(1,14182147,1,1,2) [2025-01-05 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182147', 'tblTempUsageDetail_20' ) start [2025-01-05 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182147', 'tblTempUsageDetail_20' ) end [2025-01-05 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:47:23] Production.INFO: ==17995== Releasing lock... [2025-01-05 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:47:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:48:05 [end_date_ymd] => 2025-01-05 18:48:05 [RateCDR] => 1 ) [2025-01-05 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:48:05' and `end` < '2025-01-05 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:48:18] Production.INFO: count ==1178 [2025-01-05 18:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:48:05 - End Time 2025-01-05 18:48:05 [2025-01-05 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182152', 'tblTempUsageDetail_20' ) start [2025-01-05 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182152', 'tblTempUsageDetail_20' ) end [2025-01-05 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182152', 'tblTempVendorCDR_20' ) start [2025-01-05 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182152', 'tblTempVendorCDR_20' ) end [2025-01-05 18:48:18] Production.INFO: ProcessCDR(1,14182152,1,1,2) [2025-01-05 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182152', 'tblTempUsageDetail_20' ) start [2025-01-05 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182152', 'tblTempUsageDetail_20' ) end [2025-01-05 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:48:22] Production.INFO: ==18111== Releasing lock... [2025-01-05 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:49:05 [end_date_ymd] => 2025-01-05 18:49:05 [RateCDR] => 1 ) [2025-01-05 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:49:05' and `end` < '2025-01-05 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:49:18] Production.INFO: count ==1175 [2025-01-05 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:49:05 - End Time 2025-01-05 18:49:05 [2025-01-05 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182157', 'tblTempUsageDetail_20' ) start [2025-01-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182157', 'tblTempUsageDetail_20' ) end [2025-01-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182157', 'tblTempVendorCDR_20' ) start [2025-01-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182157', 'tblTempVendorCDR_20' ) end [2025-01-05 18:49:19] Production.INFO: ProcessCDR(1,14182157,1,1,2) [2025-01-05 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182157', 'tblTempUsageDetail_20' ) start [2025-01-05 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182157', 'tblTempUsageDetail_20' ) end [2025-01-05 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:49:22] Production.INFO: ==18232== Releasing lock... [2025-01-05 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:50:06 [end_date_ymd] => 2025-01-05 18:50:06 [RateCDR] => 1 ) [2025-01-05 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:50:06' and `end` < '2025-01-05 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:50:19] Production.INFO: count ==1175 [2025-01-05 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:50:06 - End Time 2025-01-05 18:50:06 [2025-01-05 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182162', 'tblTempUsageDetail_20' ) start [2025-01-05 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182162', 'tblTempUsageDetail_20' ) end [2025-01-05 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182162', 'tblTempVendorCDR_20' ) start [2025-01-05 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182162', 'tblTempVendorCDR_20' ) end [2025-01-05 18:50:19] Production.INFO: ProcessCDR(1,14182162,1,1,2) [2025-01-05 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182162', 'tblTempUsageDetail_20' ) start [2025-01-05 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182162', 'tblTempUsageDetail_20' ) end [2025-01-05 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:50:22] Production.INFO: ==18351== Releasing lock... [2025-01-05 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:51:05 [end_date_ymd] => 2025-01-05 18:51:05 [RateCDR] => 1 ) [2025-01-05 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:51:05' and `end` < '2025-01-05 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:51:17] Production.INFO: count ==1171 [2025-01-05 18:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:51:05 - End Time 2025-01-05 18:51:05 [2025-01-05 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182168', 'tblTempUsageDetail_20' ) start [2025-01-05 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182168', 'tblTempUsageDetail_20' ) end [2025-01-05 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182168', 'tblTempVendorCDR_20' ) start [2025-01-05 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182168', 'tblTempVendorCDR_20' ) end [2025-01-05 18:51:18] Production.INFO: ProcessCDR(1,14182168,1,1,2) [2025-01-05 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182168', 'tblTempUsageDetail_20' ) start [2025-01-05 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182168', 'tblTempUsageDetail_20' ) end [2025-01-05 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:51:22] Production.INFO: ==18472== Releasing lock... [2025-01-05 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:51:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:52:05 [end_date_ymd] => 2025-01-05 18:52:05 [RateCDR] => 1 ) [2025-01-05 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:52:05' and `end` < '2025-01-05 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:52:18] Production.INFO: count ==1166 [2025-01-05 18:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:52:05 - End Time 2025-01-05 18:52:05 [2025-01-05 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182173', 'tblTempUsageDetail_20' ) start [2025-01-05 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182173', 'tblTempUsageDetail_20' ) end [2025-01-05 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182173', 'tblTempVendorCDR_20' ) start [2025-01-05 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182173', 'tblTempVendorCDR_20' ) end [2025-01-05 18:52:18] Production.INFO: ProcessCDR(1,14182173,1,1,2) [2025-01-05 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182173', 'tblTempUsageDetail_20' ) start [2025-01-05 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182173', 'tblTempUsageDetail_20' ) end [2025-01-05 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:52:21] Production.INFO: ==18629== Releasing lock... [2025-01-05 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:53:04 [end_date_ymd] => 2025-01-05 18:53:04 [RateCDR] => 1 ) [2025-01-05 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:53:04' and `end` < '2025-01-05 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:53:18] Production.INFO: count ==1160 [2025-01-05 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:53:04 - End Time 2025-01-05 18:53:04 [2025-01-05 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182178', 'tblTempUsageDetail_20' ) start [2025-01-05 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182178', 'tblTempUsageDetail_20' ) end [2025-01-05 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182178', 'tblTempVendorCDR_20' ) start [2025-01-05 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182178', 'tblTempVendorCDR_20' ) end [2025-01-05 18:53:18] Production.INFO: ProcessCDR(1,14182178,1,1,2) [2025-01-05 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182178', 'tblTempUsageDetail_20' ) start [2025-01-05 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182178', 'tblTempUsageDetail_20' ) end [2025-01-05 18:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:53:21] Production.INFO: ==18757== Releasing lock... [2025-01-05 18:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:54:05 [end_date_ymd] => 2025-01-05 18:54:05 [RateCDR] => 1 ) [2025-01-05 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:54:05' and `end` < '2025-01-05 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:54:18] Production.INFO: count ==1164 [2025-01-05 18:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:54:05 - End Time 2025-01-05 18:54:05 [2025-01-05 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182183', 'tblTempUsageDetail_20' ) start [2025-01-05 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182183', 'tblTempUsageDetail_20' ) end [2025-01-05 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182183', 'tblTempVendorCDR_20' ) start [2025-01-05 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182183', 'tblTempVendorCDR_20' ) end [2025-01-05 18:54:18] Production.INFO: ProcessCDR(1,14182183,1,1,2) [2025-01-05 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182183', 'tblTempUsageDetail_20' ) start [2025-01-05 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182183', 'tblTempUsageDetail_20' ) end [2025-01-05 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:54:23] Production.INFO: ==18875== Releasing lock... [2025-01-05 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:55:05 [end_date_ymd] => 2025-01-05 18:55:05 [RateCDR] => 1 ) [2025-01-05 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:55:05' and `end` < '2025-01-05 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:55:17] Production.INFO: count ==1164 [2025-01-05 18:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:55:05 - End Time 2025-01-05 18:55:05 [2025-01-05 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182188', 'tblTempUsageDetail_20' ) start [2025-01-05 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182188', 'tblTempUsageDetail_20' ) end [2025-01-05 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182188', 'tblTempVendorCDR_20' ) start [2025-01-05 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182188', 'tblTempVendorCDR_20' ) end [2025-01-05 18:55:18] Production.INFO: ProcessCDR(1,14182188,1,1,2) [2025-01-05 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182188', 'tblTempUsageDetail_20' ) start [2025-01-05 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182188', 'tblTempUsageDetail_20' ) end [2025-01-05 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:55:22] Production.INFO: ==18992== Releasing lock... [2025-01-05 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:56:05 [end_date_ymd] => 2025-01-05 18:56:05 [RateCDR] => 1 ) [2025-01-05 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:56:05' and `end` < '2025-01-05 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:56:18] Production.INFO: count ==1164 [2025-01-05 18:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:56:05 - End Time 2025-01-05 18:56:05 [2025-01-05 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182193', 'tblTempUsageDetail_20' ) start [2025-01-05 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182193', 'tblTempUsageDetail_20' ) end [2025-01-05 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182193', 'tblTempVendorCDR_20' ) start [2025-01-05 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182193', 'tblTempVendorCDR_20' ) end [2025-01-05 18:56:18] Production.INFO: ProcessCDR(1,14182193,1,1,2) [2025-01-05 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182193', 'tblTempUsageDetail_20' ) start [2025-01-05 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182193', 'tblTempUsageDetail_20' ) end [2025-01-05 18:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:56:21] Production.INFO: ==19106== Releasing lock... [2025-01-05 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:56:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:57:05 [end_date_ymd] => 2025-01-05 18:57:05 [RateCDR] => 1 ) [2025-01-05 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:57:05' and `end` < '2025-01-05 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:57:18] Production.INFO: count ==1161 [2025-01-05 18:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 15:57:05 - End Time 2025-01-05 18:57:05 [2025-01-05 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182198', 'tblTempUsageDetail_20' ) start [2025-01-05 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182198', 'tblTempUsageDetail_20' ) end [2025-01-05 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182198', 'tblTempVendorCDR_20' ) start [2025-01-05 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182198', 'tblTempVendorCDR_20' ) end [2025-01-05 18:57:18] Production.INFO: ProcessCDR(1,14182198,1,1,2) [2025-01-05 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182198', 'tblTempUsageDetail_20' ) start [2025-01-05 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182198', 'tblTempUsageDetail_20' ) end [2025-01-05 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:57:23] Production.INFO: ==19220== Releasing lock... [2025-01-05 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:58:05 [end_date_ymd] => 2025-01-05 18:58:05 [RateCDR] => 1 ) [2025-01-05 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:58:05' and `end` < '2025-01-05 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:58:18] Production.INFO: count ==1153 [2025-01-05 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 15:58:05 - End Time 2025-01-05 18:58:05 [2025-01-05 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182203', 'tblTempUsageDetail_20' ) start [2025-01-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182203', 'tblTempUsageDetail_20' ) end [2025-01-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182203', 'tblTempVendorCDR_20' ) start [2025-01-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182203', 'tblTempVendorCDR_20' ) end [2025-01-05 18:58:19] Production.INFO: ProcessCDR(1,14182203,1,1,2) [2025-01-05 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182203', 'tblTempUsageDetail_20' ) start [2025-01-05 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182203', 'tblTempUsageDetail_20' ) end [2025-01-05 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:58:22] Production.INFO: ==19333== Releasing lock... [2025-01-05 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 15:59:06 [end_date_ymd] => 2025-01-05 18:59:06 [RateCDR] => 1 ) [2025-01-05 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 15:59:06' and `end` < '2025-01-05 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 18:59:20] Production.INFO: count ==1154 [2025-01-05 18:59:20] Production.ERROR: pbx CDR StartTime 2025-01-05 15:59:06 - End Time 2025-01-05 18:59:06 [2025-01-05 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182208', 'tblTempUsageDetail_20' ) start [2025-01-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182208', 'tblTempUsageDetail_20' ) end [2025-01-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182208', 'tblTempVendorCDR_20' ) start [2025-01-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182208', 'tblTempVendorCDR_20' ) end [2025-01-05 18:59:20] Production.INFO: ProcessCDR(1,14182208,1,1,2) [2025-01-05 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182208', 'tblTempUsageDetail_20' ) start [2025-01-05 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182208', 'tblTempUsageDetail_20' ) end [2025-01-05 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 18:59:25] Production.INFO: ==19453== Releasing lock... [2025-01-05 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 18:59:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:00:05 [end_date_ymd] => 2025-01-05 19:00:05 [RateCDR] => 1 ) [2025-01-05 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:00:05' and `end` < '2025-01-05 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:00:18] Production.INFO: count ==1152 [2025-01-05 19:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:00:05 - End Time 2025-01-05 19:00:05 [2025-01-05 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182214', 'tblTempUsageDetail_20' ) start [2025-01-05 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182214', 'tblTempUsageDetail_20' ) end [2025-01-05 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182214', 'tblTempVendorCDR_20' ) start [2025-01-05 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182214', 'tblTempVendorCDR_20' ) end [2025-01-05 19:00:18] Production.INFO: ProcessCDR(1,14182214,1,1,2) [2025-01-05 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182214', 'tblTempUsageDetail_20' ) start [2025-01-05 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182214', 'tblTempUsageDetail_20' ) end [2025-01-05 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:00:22] Production.INFO: ==19558== Releasing lock... [2025-01-05 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:00:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:01:05 [end_date_ymd] => 2025-01-05 19:01:05 [RateCDR] => 1 ) [2025-01-05 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:01:05' and `end` < '2025-01-05 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:01:19] Production.INFO: count ==1132 [2025-01-05 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:01:05 - End Time 2025-01-05 19:01:05 [2025-01-05 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182219', 'tblTempUsageDetail_20' ) start [2025-01-05 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182219', 'tblTempUsageDetail_20' ) end [2025-01-05 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182219', 'tblTempVendorCDR_20' ) start [2025-01-05 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182219', 'tblTempVendorCDR_20' ) end [2025-01-05 19:01:19] Production.INFO: ProcessCDR(1,14182219,1,1,2) [2025-01-05 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182219', 'tblTempUsageDetail_20' ) start [2025-01-05 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182219', 'tblTempUsageDetail_20' ) end [2025-01-05 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:01:23] Production.INFO: ==19731== Releasing lock... [2025-01-05 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:01:23] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:02:06 [end_date_ymd] => 2025-01-05 19:02:06 [RateCDR] => 1 ) [2025-01-05 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:02:06' and `end` < '2025-01-05 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:02:19] Production.INFO: count ==1118 [2025-01-05 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:02:06 - End Time 2025-01-05 19:02:06 [2025-01-05 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182224', 'tblTempUsageDetail_20' ) start [2025-01-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182224', 'tblTempUsageDetail_20' ) end [2025-01-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182224', 'tblTempVendorCDR_20' ) start [2025-01-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182224', 'tblTempVendorCDR_20' ) end [2025-01-05 19:02:19] Production.INFO: ProcessCDR(1,14182224,1,1,2) [2025-01-05 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182224', 'tblTempUsageDetail_20' ) start [2025-01-05 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182224', 'tblTempUsageDetail_20' ) end [2025-01-05 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:02:22] Production.INFO: ==19810== Releasing lock... [2025-01-05 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:02:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:03:05 [end_date_ymd] => 2025-01-05 19:03:05 [RateCDR] => 1 ) [2025-01-05 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:03:05' and `end` < '2025-01-05 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:03:19] Production.INFO: count ==1118 [2025-01-05 19:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:03:05 - End Time 2025-01-05 19:03:05 [2025-01-05 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182229', 'tblTempUsageDetail_20' ) start [2025-01-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182229', 'tblTempUsageDetail_20' ) end [2025-01-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182229', 'tblTempVendorCDR_20' ) start [2025-01-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182229', 'tblTempVendorCDR_20' ) end [2025-01-05 19:03:19] Production.INFO: ProcessCDR(1,14182229,1,1,2) [2025-01-05 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182229', 'tblTempUsageDetail_20' ) start [2025-01-05 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182229', 'tblTempUsageDetail_20' ) end [2025-01-05 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:03:22] Production.INFO: ==19888== Releasing lock... [2025-01-05 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:03:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:04:05 [end_date_ymd] => 2025-01-05 19:04:05 [RateCDR] => 1 ) [2025-01-05 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:04:05' and `end` < '2025-01-05 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:04:18] Production.INFO: count ==1120 [2025-01-05 19:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:04:05 - End Time 2025-01-05 19:04:05 [2025-01-05 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182234', 'tblTempUsageDetail_20' ) start [2025-01-05 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182234', 'tblTempUsageDetail_20' ) end [2025-01-05 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182234', 'tblTempVendorCDR_20' ) start [2025-01-05 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182234', 'tblTempVendorCDR_20' ) end [2025-01-05 19:04:18] Production.INFO: ProcessCDR(1,14182234,1,1,2) [2025-01-05 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182234', 'tblTempUsageDetail_20' ) start [2025-01-05 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182234', 'tblTempUsageDetail_20' ) end [2025-01-05 19:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:04:22] Production.INFO: ==19974== Releasing lock... [2025-01-05 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:04:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:05:05 [end_date_ymd] => 2025-01-05 19:05:05 [RateCDR] => 1 ) [2025-01-05 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:05:05' and `end` < '2025-01-05 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:05:18] Production.INFO: count ==1123 [2025-01-05 19:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:05:05 - End Time 2025-01-05 19:05:05 [2025-01-05 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182239', 'tblTempUsageDetail_20' ) start [2025-01-05 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182239', 'tblTempUsageDetail_20' ) end [2025-01-05 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182239', 'tblTempVendorCDR_20' ) start [2025-01-05 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182239', 'tblTempVendorCDR_20' ) end [2025-01-05 19:05:18] Production.INFO: ProcessCDR(1,14182239,1,1,2) [2025-01-05 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182239', 'tblTempUsageDetail_20' ) start [2025-01-05 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182239', 'tblTempUsageDetail_20' ) end [2025-01-05 19:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:05:21] Production.INFO: ==20133== Releasing lock... [2025-01-05 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:06:05 [end_date_ymd] => 2025-01-05 19:06:05 [RateCDR] => 1 ) [2025-01-05 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:06:05' and `end` < '2025-01-05 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:06:18] Production.INFO: count ==1123 [2025-01-05 19:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:06:05 - End Time 2025-01-05 19:06:05 [2025-01-05 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182244', 'tblTempUsageDetail_20' ) start [2025-01-05 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182244', 'tblTempUsageDetail_20' ) end [2025-01-05 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182244', 'tblTempVendorCDR_20' ) start [2025-01-05 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182244', 'tblTempVendorCDR_20' ) end [2025-01-05 19:06:18] Production.INFO: ProcessCDR(1,14182244,1,1,2) [2025-01-05 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182244', 'tblTempUsageDetail_20' ) start [2025-01-05 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182244', 'tblTempUsageDetail_20' ) end [2025-01-05 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:06:22] Production.INFO: ==20214== Releasing lock... [2025-01-05 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:07:04 [end_date_ymd] => 2025-01-05 19:07:04 [RateCDR] => 1 ) [2025-01-05 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:07:04' and `end` < '2025-01-05 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:07:17] Production.INFO: count ==1122 [2025-01-05 19:07:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:07:04 - End Time 2025-01-05 19:07:04 [2025-01-05 19:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182249', 'tblTempUsageDetail_20' ) start [2025-01-05 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182249', 'tblTempUsageDetail_20' ) end [2025-01-05 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182249', 'tblTempVendorCDR_20' ) start [2025-01-05 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182249', 'tblTempVendorCDR_20' ) end [2025-01-05 19:07:17] Production.INFO: ProcessCDR(1,14182249,1,1,2) [2025-01-05 19:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182249', 'tblTempUsageDetail_20' ) start [2025-01-05 19:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182249', 'tblTempUsageDetail_20' ) end [2025-01-05 19:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:07:21] Production.INFO: ==20296== Releasing lock... [2025-01-05 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:07:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:08:05 [end_date_ymd] => 2025-01-05 19:08:05 [RateCDR] => 1 ) [2025-01-05 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:08:05' and `end` < '2025-01-05 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:08:18] Production.INFO: count ==1119 [2025-01-05 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:08:05 - End Time 2025-01-05 19:08:05 [2025-01-05 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182254', 'tblTempUsageDetail_20' ) start [2025-01-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182254', 'tblTempUsageDetail_20' ) end [2025-01-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182254', 'tblTempVendorCDR_20' ) start [2025-01-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182254', 'tblTempVendorCDR_20' ) end [2025-01-05 19:08:18] Production.INFO: ProcessCDR(1,14182254,1,1,2) [2025-01-05 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182254', 'tblTempUsageDetail_20' ) start [2025-01-05 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182254', 'tblTempUsageDetail_20' ) end [2025-01-05 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:08:21] Production.INFO: ==20493== Releasing lock... [2025-01-05 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:08:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:09:05 [end_date_ymd] => 2025-01-05 19:09:05 [RateCDR] => 1 ) [2025-01-05 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:09:05' and `end` < '2025-01-05 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:09:18] Production.INFO: count ==1118 [2025-01-05 19:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:09:05 - End Time 2025-01-05 19:09:05 [2025-01-05 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182259', 'tblTempUsageDetail_20' ) start [2025-01-05 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182259', 'tblTempUsageDetail_20' ) end [2025-01-05 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182259', 'tblTempVendorCDR_20' ) start [2025-01-05 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182259', 'tblTempVendorCDR_20' ) end [2025-01-05 19:09:18] Production.INFO: ProcessCDR(1,14182259,1,1,2) [2025-01-05 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182259', 'tblTempUsageDetail_20' ) start [2025-01-05 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182259', 'tblTempUsageDetail_20' ) end [2025-01-05 19:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:09:21] Production.INFO: ==20572== Releasing lock... [2025-01-05 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:09:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:10:06 [end_date_ymd] => 2025-01-05 19:10:06 [RateCDR] => 1 ) [2025-01-05 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:10:06' and `end` < '2025-01-05 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:10:19] Production.INFO: count ==1120 [2025-01-05 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:10:06 - End Time 2025-01-05 19:10:06 [2025-01-05 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182265', 'tblTempUsageDetail_20' ) start [2025-01-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182265', 'tblTempUsageDetail_20' ) end [2025-01-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182265', 'tblTempVendorCDR_20' ) start [2025-01-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182265', 'tblTempVendorCDR_20' ) end [2025-01-05 19:10:19] Production.INFO: ProcessCDR(1,14182265,1,1,2) [2025-01-05 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182265', 'tblTempUsageDetail_20' ) start [2025-01-05 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182265', 'tblTempUsageDetail_20' ) end [2025-01-05 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:10:22] Production.INFO: ==20657== Releasing lock... [2025-01-05 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:10:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:11:04 [end_date_ymd] => 2025-01-05 19:11:04 [RateCDR] => 1 ) [2025-01-05 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:11:04' and `end` < '2025-01-05 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:11:17] Production.INFO: count ==1160 [2025-01-05 19:11:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:11:04 - End Time 2025-01-05 19:11:04 [2025-01-05 19:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182270', 'tblTempUsageDetail_20' ) start [2025-01-05 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182270', 'tblTempUsageDetail_20' ) end [2025-01-05 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182270', 'tblTempVendorCDR_20' ) start [2025-01-05 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182270', 'tblTempVendorCDR_20' ) end [2025-01-05 19:11:17] Production.INFO: ProcessCDR(1,14182270,1,1,2) [2025-01-05 19:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182270', 'tblTempUsageDetail_20' ) start [2025-01-05 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182270', 'tblTempUsageDetail_20' ) end [2025-01-05 19:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:11:20] Production.INFO: ==20737== Releasing lock... [2025-01-05 19:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:11:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:12:05 [end_date_ymd] => 2025-01-05 19:12:05 [RateCDR] => 1 ) [2025-01-05 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:12:05' and `end` < '2025-01-05 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:12:19] Production.INFO: count ==1161 [2025-01-05 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:12:05 - End Time 2025-01-05 19:12:05 [2025-01-05 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182275', 'tblTempUsageDetail_20' ) start [2025-01-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182275', 'tblTempUsageDetail_20' ) end [2025-01-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182275', 'tblTempVendorCDR_20' ) start [2025-01-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182275', 'tblTempVendorCDR_20' ) end [2025-01-05 19:12:19] Production.INFO: ProcessCDR(1,14182275,1,1,2) [2025-01-05 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182275', 'tblTempUsageDetail_20' ) start [2025-01-05 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182275', 'tblTempUsageDetail_20' ) end [2025-01-05 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:12:22] Production.INFO: ==20892== Releasing lock... [2025-01-05 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:13:06 [end_date_ymd] => 2025-01-05 19:13:06 [RateCDR] => 1 ) [2025-01-05 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:13:06' and `end` < '2025-01-05 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:13:18] Production.INFO: count ==1163 [2025-01-05 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:13:06 - End Time 2025-01-05 19:13:06 [2025-01-05 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182280', 'tblTempUsageDetail_20' ) start [2025-01-05 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182280', 'tblTempUsageDetail_20' ) end [2025-01-05 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182280', 'tblTempVendorCDR_20' ) start [2025-01-05 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182280', 'tblTempVendorCDR_20' ) end [2025-01-05 19:13:19] Production.INFO: ProcessCDR(1,14182280,1,1,2) [2025-01-05 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182280', 'tblTempUsageDetail_20' ) start [2025-01-05 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182280', 'tblTempUsageDetail_20' ) end [2025-01-05 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:13:23] Production.INFO: ==20970== Releasing lock... [2025-01-05 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:13:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:14:05 [end_date_ymd] => 2025-01-05 19:14:05 [RateCDR] => 1 ) [2025-01-05 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:14:05' and `end` < '2025-01-05 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:14:18] Production.INFO: count ==1155 [2025-01-05 19:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:14:05 - End Time 2025-01-05 19:14:05 [2025-01-05 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182285', 'tblTempUsageDetail_20' ) start [2025-01-05 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182285', 'tblTempUsageDetail_20' ) end [2025-01-05 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182285', 'tblTempVendorCDR_20' ) start [2025-01-05 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182285', 'tblTempVendorCDR_20' ) end [2025-01-05 19:14:18] Production.INFO: ProcessCDR(1,14182285,1,1,2) [2025-01-05 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182285', 'tblTempUsageDetail_20' ) start [2025-01-05 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182285', 'tblTempUsageDetail_20' ) end [2025-01-05 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:14:21] Production.INFO: ==21051== Releasing lock... [2025-01-05 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:14:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:15:05 [end_date_ymd] => 2025-01-05 19:15:05 [RateCDR] => 1 ) [2025-01-05 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:15:05' and `end` < '2025-01-05 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:15:18] Production.INFO: count ==1155 [2025-01-05 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:15:05 - End Time 2025-01-05 19:15:05 [2025-01-05 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182290', 'tblTempUsageDetail_20' ) start [2025-01-05 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182290', 'tblTempUsageDetail_20' ) end [2025-01-05 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182290', 'tblTempVendorCDR_20' ) start [2025-01-05 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182290', 'tblTempVendorCDR_20' ) end [2025-01-05 19:15:18] Production.INFO: ProcessCDR(1,14182290,1,1,2) [2025-01-05 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182290', 'tblTempUsageDetail_20' ) start [2025-01-05 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182290', 'tblTempUsageDetail_20' ) end [2025-01-05 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:15:21] Production.INFO: ==21211== Releasing lock... [2025-01-05 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:15:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:16:05 [end_date_ymd] => 2025-01-05 19:16:05 [RateCDR] => 1 ) [2025-01-05 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:16:05' and `end` < '2025-01-05 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:16:18] Production.INFO: count ==1155 [2025-01-05 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:16:05 - End Time 2025-01-05 19:16:05 [2025-01-05 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182295', 'tblTempUsageDetail_20' ) start [2025-01-05 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182295', 'tblTempUsageDetail_20' ) end [2025-01-05 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182295', 'tblTempVendorCDR_20' ) start [2025-01-05 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182295', 'tblTempVendorCDR_20' ) end [2025-01-05 19:16:18] Production.INFO: ProcessCDR(1,14182295,1,1,2) [2025-01-05 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182295', 'tblTempUsageDetail_20' ) start [2025-01-05 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182295', 'tblTempUsageDetail_20' ) end [2025-01-05 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:16:23] Production.INFO: ==21289== Releasing lock... [2025-01-05 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:17:05 [end_date_ymd] => 2025-01-05 19:17:05 [RateCDR] => 1 ) [2025-01-05 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:17:05' and `end` < '2025-01-05 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:17:18] Production.INFO: count ==1154 [2025-01-05 19:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:17:05 - End Time 2025-01-05 19:17:05 [2025-01-05 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182300', 'tblTempUsageDetail_20' ) start [2025-01-05 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182300', 'tblTempUsageDetail_20' ) end [2025-01-05 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182300', 'tblTempVendorCDR_20' ) start [2025-01-05 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182300', 'tblTempVendorCDR_20' ) end [2025-01-05 19:17:18] Production.INFO: ProcessCDR(1,14182300,1,1,2) [2025-01-05 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182300', 'tblTempUsageDetail_20' ) start [2025-01-05 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182300', 'tblTempUsageDetail_20' ) end [2025-01-05 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:17:22] Production.INFO: ==21367== Releasing lock... [2025-01-05 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:17:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:18:05 [end_date_ymd] => 2025-01-05 19:18:05 [RateCDR] => 1 ) [2025-01-05 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:18:05' and `end` < '2025-01-05 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:18:19] Production.INFO: count ==1154 [2025-01-05 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:18:05 - End Time 2025-01-05 19:18:05 [2025-01-05 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182305', 'tblTempUsageDetail_20' ) start [2025-01-05 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182305', 'tblTempUsageDetail_20' ) end [2025-01-05 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182305', 'tblTempVendorCDR_20' ) start [2025-01-05 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182305', 'tblTempVendorCDR_20' ) end [2025-01-05 19:18:19] Production.INFO: ProcessCDR(1,14182305,1,1,2) [2025-01-05 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182305', 'tblTempUsageDetail_20' ) start [2025-01-05 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182305', 'tblTempUsageDetail_20' ) end [2025-01-05 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:18:22] Production.INFO: ==21446== Releasing lock... [2025-01-05 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:19:05 [end_date_ymd] => 2025-01-05 19:19:05 [RateCDR] => 1 ) [2025-01-05 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:19:05' and `end` < '2025-01-05 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:19:19] Production.INFO: count ==1154 [2025-01-05 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:19:05 - End Time 2025-01-05 19:19:05 [2025-01-05 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182310', 'tblTempUsageDetail_20' ) start [2025-01-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182310', 'tblTempUsageDetail_20' ) end [2025-01-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182310', 'tblTempVendorCDR_20' ) start [2025-01-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182310', 'tblTempVendorCDR_20' ) end [2025-01-05 19:19:19] Production.INFO: ProcessCDR(1,14182310,1,1,2) [2025-01-05 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182310', 'tblTempUsageDetail_20' ) start [2025-01-05 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182310', 'tblTempUsageDetail_20' ) end [2025-01-05 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:19:22] Production.INFO: ==21527== Releasing lock... [2025-01-05 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:19:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:20:05 [end_date_ymd] => 2025-01-05 19:20:05 [RateCDR] => 1 ) [2025-01-05 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:20:05' and `end` < '2025-01-05 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:20:18] Production.INFO: count ==1156 [2025-01-05 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:20:05 - End Time 2025-01-05 19:20:05 [2025-01-05 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182315', 'tblTempUsageDetail_20' ) start [2025-01-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182315', 'tblTempUsageDetail_20' ) end [2025-01-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182315', 'tblTempVendorCDR_20' ) start [2025-01-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182315', 'tblTempVendorCDR_20' ) end [2025-01-05 19:20:19] Production.INFO: ProcessCDR(1,14182315,1,1,2) [2025-01-05 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182315', 'tblTempUsageDetail_20' ) start [2025-01-05 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182315', 'tblTempUsageDetail_20' ) end [2025-01-05 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:20:22] Production.INFO: ==21610== Releasing lock... [2025-01-05 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:21:06 [end_date_ymd] => 2025-01-05 19:21:06 [RateCDR] => 1 ) [2025-01-05 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:21:06' and `end` < '2025-01-05 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:21:18] Production.INFO: count ==1176 [2025-01-05 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:21:06 - End Time 2025-01-05 19:21:06 [2025-01-05 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182321', 'tblTempUsageDetail_20' ) start [2025-01-05 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182321', 'tblTempUsageDetail_20' ) end [2025-01-05 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182321', 'tblTempVendorCDR_20' ) start [2025-01-05 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182321', 'tblTempVendorCDR_20' ) end [2025-01-05 19:21:19] Production.INFO: ProcessCDR(1,14182321,1,1,2) [2025-01-05 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182321', 'tblTempUsageDetail_20' ) start [2025-01-05 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182321', 'tblTempUsageDetail_20' ) end [2025-01-05 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:21:22] Production.INFO: ==21694== Releasing lock... [2025-01-05 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:21:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:22:05 [end_date_ymd] => 2025-01-05 19:22:05 [RateCDR] => 1 ) [2025-01-05 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:22:05' and `end` < '2025-01-05 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:22:18] Production.INFO: count ==1176 [2025-01-05 19:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:22:05 - End Time 2025-01-05 19:22:05 [2025-01-05 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182326', 'tblTempUsageDetail_20' ) start [2025-01-05 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182326', 'tblTempUsageDetail_20' ) end [2025-01-05 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182326', 'tblTempVendorCDR_20' ) start [2025-01-05 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182326', 'tblTempVendorCDR_20' ) end [2025-01-05 19:22:18] Production.INFO: ProcessCDR(1,14182326,1,1,2) [2025-01-05 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182326', 'tblTempUsageDetail_20' ) start [2025-01-05 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182326', 'tblTempUsageDetail_20' ) end [2025-01-05 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:22:21] Production.INFO: ==21779== Releasing lock... [2025-01-05 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:22:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:23:06 [end_date_ymd] => 2025-01-05 19:23:06 [RateCDR] => 1 ) [2025-01-05 19:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:23:06' and `end` < '2025-01-05 19:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:23:19] Production.INFO: count ==1176 [2025-01-05 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:23:06 - End Time 2025-01-05 19:23:06 [2025-01-05 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182331', 'tblTempUsageDetail_20' ) start [2025-01-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182331', 'tblTempUsageDetail_20' ) end [2025-01-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182331', 'tblTempVendorCDR_20' ) start [2025-01-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182331', 'tblTempVendorCDR_20' ) end [2025-01-05 19:23:19] Production.INFO: ProcessCDR(1,14182331,1,1,2) [2025-01-05 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182331', 'tblTempUsageDetail_20' ) start [2025-01-05 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182331', 'tblTempUsageDetail_20' ) end [2025-01-05 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:23:22] Production.INFO: ==21864== Releasing lock... [2025-01-05 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:23:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:24:04 [end_date_ymd] => 2025-01-05 19:24:04 [RateCDR] => 1 ) [2025-01-05 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:24:04' and `end` < '2025-01-05 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:24:19] Production.INFO: count ==1177 [2025-01-05 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:24:04 - End Time 2025-01-05 19:24:04 [2025-01-05 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182336', 'tblTempUsageDetail_20' ) start [2025-01-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182336', 'tblTempUsageDetail_20' ) end [2025-01-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182336', 'tblTempVendorCDR_20' ) start [2025-01-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182336', 'tblTempVendorCDR_20' ) end [2025-01-05 19:24:19] Production.INFO: ProcessCDR(1,14182336,1,1,2) [2025-01-05 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182336', 'tblTempUsageDetail_20' ) start [2025-01-05 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182336', 'tblTempUsageDetail_20' ) end [2025-01-05 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:24:22] Production.INFO: ==21982== Releasing lock... [2025-01-05 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:24:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:25:05 [end_date_ymd] => 2025-01-05 19:25:05 [RateCDR] => 1 ) [2025-01-05 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:25:05' and `end` < '2025-01-05 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:25:19] Production.INFO: count ==1173 [2025-01-05 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:25:05 - End Time 2025-01-05 19:25:05 [2025-01-05 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182341', 'tblTempUsageDetail_20' ) start [2025-01-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182341', 'tblTempUsageDetail_20' ) end [2025-01-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182341', 'tblTempVendorCDR_20' ) start [2025-01-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182341', 'tblTempVendorCDR_20' ) end [2025-01-05 19:25:19] Production.INFO: ProcessCDR(1,14182341,1,1,2) [2025-01-05 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182341', 'tblTempUsageDetail_20' ) start [2025-01-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182341', 'tblTempUsageDetail_20' ) end [2025-01-05 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:25:22] Production.INFO: ==22073== Releasing lock... [2025-01-05 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:26:05 [end_date_ymd] => 2025-01-05 19:26:05 [RateCDR] => 1 ) [2025-01-05 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:26:05' and `end` < '2025-01-05 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:26:18] Production.INFO: count ==1173 [2025-01-05 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:26:05 - End Time 2025-01-05 19:26:05 [2025-01-05 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182346', 'tblTempUsageDetail_20' ) start [2025-01-05 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182346', 'tblTempUsageDetail_20' ) end [2025-01-05 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182346', 'tblTempVendorCDR_20' ) start [2025-01-05 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182346', 'tblTempVendorCDR_20' ) end [2025-01-05 19:26:18] Production.INFO: ProcessCDR(1,14182346,1,1,2) [2025-01-05 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182346', 'tblTempUsageDetail_20' ) start [2025-01-05 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182346', 'tblTempUsageDetail_20' ) end [2025-01-05 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:26:21] Production.INFO: ==22160== Releasing lock... [2025-01-05 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:26:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:27:05 [end_date_ymd] => 2025-01-05 19:27:05 [RateCDR] => 1 ) [2025-01-05 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:27:05' and `end` < '2025-01-05 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:27:19] Production.INFO: count ==1173 [2025-01-05 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:27:05 - End Time 2025-01-05 19:27:05 [2025-01-05 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182351', 'tblTempUsageDetail_20' ) start [2025-01-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182351', 'tblTempUsageDetail_20' ) end [2025-01-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182351', 'tblTempVendorCDR_20' ) start [2025-01-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182351', 'tblTempVendorCDR_20' ) end [2025-01-05 19:27:19] Production.INFO: ProcessCDR(1,14182351,1,1,2) [2025-01-05 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182351', 'tblTempUsageDetail_20' ) start [2025-01-05 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182351', 'tblTempUsageDetail_20' ) end [2025-01-05 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:27:22] Production.INFO: ==22248== Releasing lock... [2025-01-05 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:27:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:28:04 [end_date_ymd] => 2025-01-05 19:28:04 [RateCDR] => 1 ) [2025-01-05 19:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:28:04' and `end` < '2025-01-05 19:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:28:17] Production.INFO: count ==1173 [2025-01-05 19:28:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:28:04 - End Time 2025-01-05 19:28:04 [2025-01-05 19:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182356', 'tblTempUsageDetail_20' ) start [2025-01-05 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182356', 'tblTempUsageDetail_20' ) end [2025-01-05 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182356', 'tblTempVendorCDR_20' ) start [2025-01-05 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182356', 'tblTempVendorCDR_20' ) end [2025-01-05 19:28:17] Production.INFO: ProcessCDR(1,14182356,1,1,2) [2025-01-05 19:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182356', 'tblTempUsageDetail_20' ) start [2025-01-05 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182356', 'tblTempUsageDetail_20' ) end [2025-01-05 19:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:28:20] Production.INFO: ==22337== Releasing lock... [2025-01-05 19:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:28:20] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:29:05 [end_date_ymd] => 2025-01-05 19:29:05 [RateCDR] => 1 ) [2025-01-05 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:29:05' and `end` < '2025-01-05 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:29:17] Production.INFO: count ==1174 [2025-01-05 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:29:05 - End Time 2025-01-05 19:29:05 [2025-01-05 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182361', 'tblTempUsageDetail_20' ) start [2025-01-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182361', 'tblTempUsageDetail_20' ) end [2025-01-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182361', 'tblTempVendorCDR_20' ) start [2025-01-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182361', 'tblTempVendorCDR_20' ) end [2025-01-05 19:29:18] Production.INFO: ProcessCDR(1,14182361,1,1,2) [2025-01-05 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182361', 'tblTempUsageDetail_20' ) start [2025-01-05 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182361', 'tblTempUsageDetail_20' ) end [2025-01-05 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:29:21] Production.INFO: ==22429== Releasing lock... [2025-01-05 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:29:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:30:06 [end_date_ymd] => 2025-01-05 19:30:06 [RateCDR] => 1 ) [2025-01-05 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:30:06' and `end` < '2025-01-05 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:30:19] Production.INFO: count ==1169 [2025-01-05 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:30:06 - End Time 2025-01-05 19:30:06 [2025-01-05 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182367', 'tblTempUsageDetail_20' ) start [2025-01-05 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182367', 'tblTempUsageDetail_20' ) end [2025-01-05 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182367', 'tblTempVendorCDR_20' ) start [2025-01-05 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182367', 'tblTempVendorCDR_20' ) end [2025-01-05 19:30:19] Production.INFO: ProcessCDR(1,14182367,1,1,2) [2025-01-05 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182367', 'tblTempUsageDetail_20' ) start [2025-01-05 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182367', 'tblTempUsageDetail_20' ) end [2025-01-05 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:30:22] Production.INFO: ==22524== Releasing lock... [2025-01-05 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:31:04 [end_date_ymd] => 2025-01-05 19:31:04 [RateCDR] => 1 ) [2025-01-05 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:31:04' and `end` < '2025-01-05 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:31:17] Production.INFO: count ==1177 [2025-01-05 19:31:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:31:04 - End Time 2025-01-05 19:31:04 [2025-01-05 19:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182372', 'tblTempUsageDetail_20' ) start [2025-01-05 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182372', 'tblTempUsageDetail_20' ) end [2025-01-05 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182372', 'tblTempVendorCDR_20' ) start [2025-01-05 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182372', 'tblTempVendorCDR_20' ) end [2025-01-05 19:31:17] Production.INFO: ProcessCDR(1,14182372,1,1,2) [2025-01-05 19:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182372', 'tblTempUsageDetail_20' ) start [2025-01-05 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182372', 'tblTempUsageDetail_20' ) end [2025-01-05 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:31:21] Production.INFO: ==22615== Releasing lock... [2025-01-05 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:31:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:32:05 [end_date_ymd] => 2025-01-05 19:32:05 [RateCDR] => 1 ) [2025-01-05 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:32:05' and `end` < '2025-01-05 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:32:19] Production.INFO: count ==1177 [2025-01-05 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:32:05 - End Time 2025-01-05 19:32:05 [2025-01-05 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182377', 'tblTempUsageDetail_20' ) start [2025-01-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182377', 'tblTempUsageDetail_20' ) end [2025-01-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182377', 'tblTempVendorCDR_20' ) start [2025-01-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182377', 'tblTempVendorCDR_20' ) end [2025-01-05 19:32:19] Production.INFO: ProcessCDR(1,14182377,1,1,2) [2025-01-05 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182377', 'tblTempUsageDetail_20' ) start [2025-01-05 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182377', 'tblTempUsageDetail_20' ) end [2025-01-05 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:32:22] Production.INFO: ==22704== Releasing lock... [2025-01-05 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:32:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:33:05 [end_date_ymd] => 2025-01-05 19:33:05 [RateCDR] => 1 ) [2025-01-05 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:33:05' and `end` < '2025-01-05 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:33:17] Production.INFO: count ==1175 [2025-01-05 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:33:05 - End Time 2025-01-05 19:33:05 [2025-01-05 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182382', 'tblTempUsageDetail_20' ) start [2025-01-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182382', 'tblTempUsageDetail_20' ) end [2025-01-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182382', 'tblTempVendorCDR_20' ) start [2025-01-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182382', 'tblTempVendorCDR_20' ) end [2025-01-05 19:33:18] Production.INFO: ProcessCDR(1,14182382,1,1,2) [2025-01-05 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182382', 'tblTempUsageDetail_20' ) start [2025-01-05 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182382', 'tblTempUsageDetail_20' ) end [2025-01-05 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:33:21] Production.INFO: ==22795== Releasing lock... [2025-01-05 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:33:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:34:05 [end_date_ymd] => 2025-01-05 19:34:05 [RateCDR] => 1 ) [2025-01-05 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:34:05' and `end` < '2025-01-05 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:34:17] Production.INFO: count ==1171 [2025-01-05 19:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:34:05 - End Time 2025-01-05 19:34:05 [2025-01-05 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182387', 'tblTempUsageDetail_20' ) start [2025-01-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182387', 'tblTempUsageDetail_20' ) end [2025-01-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182387', 'tblTempVendorCDR_20' ) start [2025-01-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182387', 'tblTempVendorCDR_20' ) end [2025-01-05 19:34:18] Production.INFO: ProcessCDR(1,14182387,1,1,2) [2025-01-05 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182387', 'tblTempUsageDetail_20' ) start [2025-01-05 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182387', 'tblTempUsageDetail_20' ) end [2025-01-05 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:34:21] Production.INFO: ==22882== Releasing lock... [2025-01-05 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:34:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:35:04 [end_date_ymd] => 2025-01-05 19:35:04 [RateCDR] => 1 ) [2025-01-05 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:35:04' and `end` < '2025-01-05 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:35:17] Production.INFO: count ==1167 [2025-01-05 19:35:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:35:04 - End Time 2025-01-05 19:35:04 [2025-01-05 19:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182392', 'tblTempUsageDetail_20' ) start [2025-01-05 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182392', 'tblTempUsageDetail_20' ) end [2025-01-05 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182392', 'tblTempVendorCDR_20' ) start [2025-01-05 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182392', 'tblTempVendorCDR_20' ) end [2025-01-05 19:35:17] Production.INFO: ProcessCDR(1,14182392,1,1,2) [2025-01-05 19:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182392', 'tblTempUsageDetail_20' ) start [2025-01-05 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182392', 'tblTempUsageDetail_20' ) end [2025-01-05 19:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:35:20] Production.INFO: ==22974== Releasing lock... [2025-01-05 19:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:35:20] Production.INFO: 36.5 MB #Memory Used# [2025-01-05 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:36:05 [end_date_ymd] => 2025-01-05 19:36:05 [RateCDR] => 1 ) [2025-01-05 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:36:05' and `end` < '2025-01-05 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:36:18] Production.INFO: count ==1163 [2025-01-05 19:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:36:05 - End Time 2025-01-05 19:36:05 [2025-01-05 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182397', 'tblTempUsageDetail_20' ) start [2025-01-05 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182397', 'tblTempUsageDetail_20' ) end [2025-01-05 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182397', 'tblTempVendorCDR_20' ) start [2025-01-05 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182397', 'tblTempVendorCDR_20' ) end [2025-01-05 19:36:18] Production.INFO: ProcessCDR(1,14182397,1,1,2) [2025-01-05 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182397', 'tblTempUsageDetail_20' ) start [2025-01-05 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182397', 'tblTempUsageDetail_20' ) end [2025-01-05 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:36:21] Production.INFO: ==23067== Releasing lock... [2025-01-05 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:36:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:37:05 [end_date_ymd] => 2025-01-05 19:37:05 [RateCDR] => 1 ) [2025-01-05 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:37:05' and `end` < '2025-01-05 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:37:18] Production.INFO: count ==1157 [2025-01-05 19:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:37:05 - End Time 2025-01-05 19:37:05 [2025-01-05 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182402', 'tblTempUsageDetail_20' ) start [2025-01-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182402', 'tblTempUsageDetail_20' ) end [2025-01-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182402', 'tblTempVendorCDR_20' ) start [2025-01-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182402', 'tblTempVendorCDR_20' ) end [2025-01-05 19:37:18] Production.INFO: ProcessCDR(1,14182402,1,1,2) [2025-01-05 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182402', 'tblTempUsageDetail_20' ) start [2025-01-05 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182402', 'tblTempUsageDetail_20' ) end [2025-01-05 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:37:21] Production.INFO: ==23160== Releasing lock... [2025-01-05 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:37:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:38:04 [end_date_ymd] => 2025-01-05 19:38:04 [RateCDR] => 1 ) [2025-01-05 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:38:04' and `end` < '2025-01-05 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:38:20] Production.INFO: count ==1156 [2025-01-05 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-05 16:38:04 - End Time 2025-01-05 19:38:04 [2025-01-05 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182407', 'tblTempUsageDetail_20' ) start [2025-01-05 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182407', 'tblTempUsageDetail_20' ) end [2025-01-05 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182407', 'tblTempVendorCDR_20' ) start [2025-01-05 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182407', 'tblTempVendorCDR_20' ) end [2025-01-05 19:38:20] Production.INFO: ProcessCDR(1,14182407,1,1,2) [2025-01-05 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182407', 'tblTempUsageDetail_20' ) start [2025-01-05 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182407', 'tblTempUsageDetail_20' ) end [2025-01-05 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:38:23] Production.INFO: ==23254== Releasing lock... [2025-01-05 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:38:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:39:05 [end_date_ymd] => 2025-01-05 19:39:05 [RateCDR] => 1 ) [2025-01-05 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:39:05' and `end` < '2025-01-05 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:39:18] Production.INFO: count ==1151 [2025-01-05 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:39:05 - End Time 2025-01-05 19:39:05 [2025-01-05 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182412', 'tblTempUsageDetail_20' ) start [2025-01-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182412', 'tblTempUsageDetail_20' ) end [2025-01-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182412', 'tblTempVendorCDR_20' ) start [2025-01-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182412', 'tblTempVendorCDR_20' ) end [2025-01-05 19:39:18] Production.INFO: ProcessCDR(1,14182412,1,1,2) [2025-01-05 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182412', 'tblTempUsageDetail_20' ) start [2025-01-05 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182412', 'tblTempUsageDetail_20' ) end [2025-01-05 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:39:21] Production.INFO: ==23383== Releasing lock... [2025-01-05 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:39:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:40:06 [end_date_ymd] => 2025-01-05 19:40:06 [RateCDR] => 1 ) [2025-01-05 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:40:06' and `end` < '2025-01-05 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:40:19] Production.INFO: count ==1150 [2025-01-05 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:40:06 - End Time 2025-01-05 19:40:06 [2025-01-05 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182418', 'tblTempUsageDetail_20' ) start [2025-01-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182418', 'tblTempUsageDetail_20' ) end [2025-01-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182418', 'tblTempVendorCDR_20' ) start [2025-01-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182418', 'tblTempVendorCDR_20' ) end [2025-01-05 19:40:19] Production.INFO: ProcessCDR(1,14182418,1,1,2) [2025-01-05 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182418', 'tblTempUsageDetail_20' ) start [2025-01-05 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182418', 'tblTempUsageDetail_20' ) end [2025-01-05 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:40:22] Production.INFO: ==23474== Releasing lock... [2025-01-05 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:40:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:41:05 [end_date_ymd] => 2025-01-05 19:41:05 [RateCDR] => 1 ) [2025-01-05 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:41:05' and `end` < '2025-01-05 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:41:18] Production.INFO: count ==1138 [2025-01-05 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:41:05 - End Time 2025-01-05 19:41:05 [2025-01-05 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182423', 'tblTempUsageDetail_20' ) start [2025-01-05 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182423', 'tblTempUsageDetail_20' ) end [2025-01-05 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182423', 'tblTempVendorCDR_20' ) start [2025-01-05 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182423', 'tblTempVendorCDR_20' ) end [2025-01-05 19:41:18] Production.INFO: ProcessCDR(1,14182423,1,1,2) [2025-01-05 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182423', 'tblTempUsageDetail_20' ) start [2025-01-05 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182423', 'tblTempUsageDetail_20' ) end [2025-01-05 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:41:21] Production.INFO: ==23564== Releasing lock... [2025-01-05 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:41:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:42:05 [end_date_ymd] => 2025-01-05 19:42:05 [RateCDR] => 1 ) [2025-01-05 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:42:05' and `end` < '2025-01-05 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:42:19] Production.INFO: count ==1122 [2025-01-05 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:42:05 - End Time 2025-01-05 19:42:05 [2025-01-05 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182428', 'tblTempUsageDetail_20' ) start [2025-01-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182428', 'tblTempUsageDetail_20' ) end [2025-01-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182428', 'tblTempVendorCDR_20' ) start [2025-01-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182428', 'tblTempVendorCDR_20' ) end [2025-01-05 19:42:19] Production.INFO: ProcessCDR(1,14182428,1,1,2) [2025-01-05 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182428', 'tblTempUsageDetail_20' ) start [2025-01-05 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182428', 'tblTempUsageDetail_20' ) end [2025-01-05 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:42:22] Production.INFO: ==23647== Releasing lock... [2025-01-05 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:42:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:43:04 [end_date_ymd] => 2025-01-05 19:43:04 [RateCDR] => 1 ) [2025-01-05 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:43:04' and `end` < '2025-01-05 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:43:17] Production.INFO: count ==1119 [2025-01-05 19:43:17] Production.ERROR: pbx CDR StartTime 2025-01-05 16:43:04 - End Time 2025-01-05 19:43:04 [2025-01-05 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182433', 'tblTempUsageDetail_20' ) start [2025-01-05 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182433', 'tblTempUsageDetail_20' ) end [2025-01-05 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182433', 'tblTempVendorCDR_20' ) start [2025-01-05 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182433', 'tblTempVendorCDR_20' ) end [2025-01-05 19:43:17] Production.INFO: ProcessCDR(1,14182433,1,1,2) [2025-01-05 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182433', 'tblTempUsageDetail_20' ) start [2025-01-05 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182433', 'tblTempUsageDetail_20' ) end [2025-01-05 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:43:21] Production.INFO: ==23729== Releasing lock... [2025-01-05 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:43:21] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:44:05 [end_date_ymd] => 2025-01-05 19:44:05 [RateCDR] => 1 ) [2025-01-05 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:44:05' and `end` < '2025-01-05 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:44:18] Production.INFO: count ==1117 [2025-01-05 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:44:05 - End Time 2025-01-05 19:44:05 [2025-01-05 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182438', 'tblTempUsageDetail_20' ) start [2025-01-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182438', 'tblTempUsageDetail_20' ) end [2025-01-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182438', 'tblTempVendorCDR_20' ) start [2025-01-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182438', 'tblTempVendorCDR_20' ) end [2025-01-05 19:44:18] Production.INFO: ProcessCDR(1,14182438,1,1,2) [2025-01-05 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182438', 'tblTempUsageDetail_20' ) start [2025-01-05 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182438', 'tblTempUsageDetail_20' ) end [2025-01-05 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:44:21] Production.INFO: ==23815== Releasing lock... [2025-01-05 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:44:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-05 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:45:05 [end_date_ymd] => 2025-01-05 19:45:05 [RateCDR] => 1 ) [2025-01-05 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:45:05' and `end` < '2025-01-05 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:45:19] Production.INFO: count ==1112 [2025-01-05 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:45:05 - End Time 2025-01-05 19:45:05 [2025-01-05 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182443', 'tblTempUsageDetail_20' ) start [2025-01-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182443', 'tblTempUsageDetail_20' ) end [2025-01-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182443', 'tblTempVendorCDR_20' ) start [2025-01-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182443', 'tblTempVendorCDR_20' ) end [2025-01-05 19:45:19] Production.INFO: ProcessCDR(1,14182443,1,1,2) [2025-01-05 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182443', 'tblTempUsageDetail_20' ) start [2025-01-05 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182443', 'tblTempUsageDetail_20' ) end [2025-01-05 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:45:22] Production.INFO: ==23903== Releasing lock... [2025-01-05 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:45:22] Production.INFO: 36 MB #Memory Used# [2025-01-05 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:46:05 [end_date_ymd] => 2025-01-05 19:46:05 [RateCDR] => 1 ) [2025-01-05 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:46:05' and `end` < '2025-01-05 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:46:18] Production.INFO: count ==1095 [2025-01-05 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:46:05 - End Time 2025-01-05 19:46:05 [2025-01-05 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182448', 'tblTempUsageDetail_20' ) start [2025-01-05 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182448', 'tblTempUsageDetail_20' ) end [2025-01-05 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182448', 'tblTempVendorCDR_20' ) start [2025-01-05 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182448', 'tblTempVendorCDR_20' ) end [2025-01-05 19:46:18] Production.INFO: ProcessCDR(1,14182448,1,1,2) [2025-01-05 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182448', 'tblTempUsageDetail_20' ) start [2025-01-05 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182448', 'tblTempUsageDetail_20' ) end [2025-01-05 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:46:21] Production.INFO: ==23993== Releasing lock... [2025-01-05 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:46:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:47:05 [end_date_ymd] => 2025-01-05 19:47:05 [RateCDR] => 1 ) [2025-01-05 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:47:05' and `end` < '2025-01-05 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:47:18] Production.INFO: count ==1086 [2025-01-05 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:47:05 - End Time 2025-01-05 19:47:05 [2025-01-05 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182453', 'tblTempUsageDetail_20' ) start [2025-01-05 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182453', 'tblTempUsageDetail_20' ) end [2025-01-05 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182453', 'tblTempVendorCDR_20' ) start [2025-01-05 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182453', 'tblTempVendorCDR_20' ) end [2025-01-05 19:47:18] Production.INFO: ProcessCDR(1,14182453,1,1,2) [2025-01-05 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182453', 'tblTempUsageDetail_20' ) start [2025-01-05 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182453', 'tblTempUsageDetail_20' ) end [2025-01-05 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:47:22] Production.INFO: ==24078== Releasing lock... [2025-01-05 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:48:05 [end_date_ymd] => 2025-01-05 19:48:05 [RateCDR] => 1 ) [2025-01-05 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:48:05' and `end` < '2025-01-05 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:48:19] Production.INFO: count ==1072 [2025-01-05 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:48:05 - End Time 2025-01-05 19:48:05 [2025-01-05 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182458', 'tblTempUsageDetail_20' ) start [2025-01-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182458', 'tblTempUsageDetail_20' ) end [2025-01-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182458', 'tblTempVendorCDR_20' ) start [2025-01-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182458', 'tblTempVendorCDR_20' ) end [2025-01-05 19:48:19] Production.INFO: ProcessCDR(1,14182458,1,1,2) [2025-01-05 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182458', 'tblTempUsageDetail_20' ) start [2025-01-05 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182458', 'tblTempUsageDetail_20' ) end [2025-01-05 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:48:22] Production.INFO: ==24164== Releasing lock... [2025-01-05 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:48:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:49:05 [end_date_ymd] => 2025-01-05 19:49:05 [RateCDR] => 1 ) [2025-01-05 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:49:05' and `end` < '2025-01-05 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:49:18] Production.INFO: count ==1070 [2025-01-05 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:49:05 - End Time 2025-01-05 19:49:05 [2025-01-05 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182463', 'tblTempUsageDetail_20' ) start [2025-01-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182463', 'tblTempUsageDetail_20' ) end [2025-01-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182463', 'tblTempVendorCDR_20' ) start [2025-01-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182463', 'tblTempVendorCDR_20' ) end [2025-01-05 19:49:18] Production.INFO: ProcessCDR(1,14182463,1,1,2) [2025-01-05 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182463', 'tblTempUsageDetail_20' ) start [2025-01-05 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182463', 'tblTempUsageDetail_20' ) end [2025-01-05 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:49:21] Production.INFO: ==24256== Releasing lock... [2025-01-05 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:49:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:50:06 [end_date_ymd] => 2025-01-05 19:50:06 [RateCDR] => 1 ) [2025-01-05 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:50:06' and `end` < '2025-01-05 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:50:19] Production.INFO: count ==1073 [2025-01-05 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:50:06 - End Time 2025-01-05 19:50:06 [2025-01-05 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182469', 'tblTempUsageDetail_20' ) start [2025-01-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182469', 'tblTempUsageDetail_20' ) end [2025-01-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182469', 'tblTempVendorCDR_20' ) start [2025-01-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182469', 'tblTempVendorCDR_20' ) end [2025-01-05 19:50:19] Production.INFO: ProcessCDR(1,14182469,1,1,2) [2025-01-05 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182469', 'tblTempUsageDetail_20' ) start [2025-01-05 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182469', 'tblTempUsageDetail_20' ) end [2025-01-05 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:50:23] Production.INFO: ==24343== Releasing lock... [2025-01-05 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:50:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:51:05 [end_date_ymd] => 2025-01-05 19:51:05 [RateCDR] => 1 ) [2025-01-05 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:51:05' and `end` < '2025-01-05 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:51:19] Production.INFO: count ==1078 [2025-01-05 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:51:05 - End Time 2025-01-05 19:51:05 [2025-01-05 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182474', 'tblTempUsageDetail_20' ) start [2025-01-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182474', 'tblTempUsageDetail_20' ) end [2025-01-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182474', 'tblTempVendorCDR_20' ) start [2025-01-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182474', 'tblTempVendorCDR_20' ) end [2025-01-05 19:51:19] Production.INFO: ProcessCDR(1,14182474,1,1,2) [2025-01-05 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182474', 'tblTempUsageDetail_20' ) start [2025-01-05 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182474', 'tblTempUsageDetail_20' ) end [2025-01-05 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:51:22] Production.INFO: ==24440== Releasing lock... [2025-01-05 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:52:04 [end_date_ymd] => 2025-01-05 19:52:04 [RateCDR] => 1 ) [2025-01-05 19:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:52:04' and `end` < '2025-01-05 19:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:52:18] Production.INFO: count ==1074 [2025-01-05 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:52:04 - End Time 2025-01-05 19:52:04 [2025-01-05 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182479', 'tblTempUsageDetail_20' ) start [2025-01-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182479', 'tblTempUsageDetail_20' ) end [2025-01-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182479', 'tblTempVendorCDR_20' ) start [2025-01-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182479', 'tblTempVendorCDR_20' ) end [2025-01-05 19:52:18] Production.INFO: ProcessCDR(1,14182479,1,1,2) [2025-01-05 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182479', 'tblTempUsageDetail_20' ) start [2025-01-05 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182479', 'tblTempUsageDetail_20' ) end [2025-01-05 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:52:21] Production.INFO: ==24528== Releasing lock... [2025-01-05 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:52:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:53:05 [end_date_ymd] => 2025-01-05 19:53:05 [RateCDR] => 1 ) [2025-01-05 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:53:05' and `end` < '2025-01-05 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:53:19] Production.INFO: count ==1075 [2025-01-05 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:53:05 - End Time 2025-01-05 19:53:05 [2025-01-05 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182484', 'tblTempUsageDetail_20' ) start [2025-01-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182484', 'tblTempUsageDetail_20' ) end [2025-01-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182484', 'tblTempVendorCDR_20' ) start [2025-01-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182484', 'tblTempVendorCDR_20' ) end [2025-01-05 19:53:19] Production.INFO: ProcessCDR(1,14182484,1,1,2) [2025-01-05 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182484', 'tblTempUsageDetail_20' ) start [2025-01-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182484', 'tblTempUsageDetail_20' ) end [2025-01-05 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:53:22] Production.INFO: ==24622== Releasing lock... [2025-01-05 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:53:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:54:04 [end_date_ymd] => 2025-01-05 19:54:04 [RateCDR] => 1 ) [2025-01-05 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:54:04' and `end` < '2025-01-05 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:54:18] Production.INFO: count ==1076 [2025-01-05 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:54:04 - End Time 2025-01-05 19:54:04 [2025-01-05 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182489', 'tblTempUsageDetail_20' ) start [2025-01-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182489', 'tblTempUsageDetail_20' ) end [2025-01-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182489', 'tblTempVendorCDR_20' ) start [2025-01-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182489', 'tblTempVendorCDR_20' ) end [2025-01-05 19:54:18] Production.INFO: ProcessCDR(1,14182489,1,1,2) [2025-01-05 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182489', 'tblTempUsageDetail_20' ) start [2025-01-05 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182489', 'tblTempUsageDetail_20' ) end [2025-01-05 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:54:22] Production.INFO: ==24708== Releasing lock... [2025-01-05 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:54:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:55:05 [end_date_ymd] => 2025-01-05 19:55:05 [RateCDR] => 1 ) [2025-01-05 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:55:05' and `end` < '2025-01-05 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:55:18] Production.INFO: count ==1076 [2025-01-05 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:55:05 - End Time 2025-01-05 19:55:05 [2025-01-05 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182494', 'tblTempUsageDetail_20' ) start [2025-01-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182494', 'tblTempUsageDetail_20' ) end [2025-01-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182494', 'tblTempVendorCDR_20' ) start [2025-01-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182494', 'tblTempVendorCDR_20' ) end [2025-01-05 19:55:18] Production.INFO: ProcessCDR(1,14182494,1,1,2) [2025-01-05 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182494', 'tblTempUsageDetail_20' ) start [2025-01-05 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182494', 'tblTempUsageDetail_20' ) end [2025-01-05 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:55:21] Production.INFO: ==24834== Releasing lock... [2025-01-05 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:55:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-05 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:56:05 [end_date_ymd] => 2025-01-05 19:56:05 [RateCDR] => 1 ) [2025-01-05 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:56:05' and `end` < '2025-01-05 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:56:18] Production.INFO: count ==1072 [2025-01-05 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:56:05 - End Time 2025-01-05 19:56:05 [2025-01-05 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182499', 'tblTempUsageDetail_20' ) start [2025-01-05 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182499', 'tblTempUsageDetail_20' ) end [2025-01-05 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182499', 'tblTempVendorCDR_20' ) start [2025-01-05 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182499', 'tblTempVendorCDR_20' ) end [2025-01-05 19:56:18] Production.INFO: ProcessCDR(1,14182499,1,1,2) [2025-01-05 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182499', 'tblTempUsageDetail_20' ) start [2025-01-05 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182499', 'tblTempUsageDetail_20' ) end [2025-01-05 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:56:22] Production.INFO: ==24919== Releasing lock... [2025-01-05 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:57:05 [end_date_ymd] => 2025-01-05 19:57:05 [RateCDR] => 1 ) [2025-01-05 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:57:05' and `end` < '2025-01-05 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:57:19] Production.INFO: count ==1070 [2025-01-05 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:57:05 - End Time 2025-01-05 19:57:05 [2025-01-05 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182504', 'tblTempUsageDetail_20' ) start [2025-01-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182504', 'tblTempUsageDetail_20' ) end [2025-01-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182504', 'tblTempVendorCDR_20' ) start [2025-01-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182504', 'tblTempVendorCDR_20' ) end [2025-01-05 19:57:19] Production.INFO: ProcessCDR(1,14182504,1,1,2) [2025-01-05 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182504', 'tblTempUsageDetail_20' ) start [2025-01-05 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182504', 'tblTempUsageDetail_20' ) end [2025-01-05 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:57:22] Production.INFO: ==25004== Releasing lock... [2025-01-05 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:57:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:58:05 [end_date_ymd] => 2025-01-05 19:58:05 [RateCDR] => 1 ) [2025-01-05 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:58:05' and `end` < '2025-01-05 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:58:19] Production.INFO: count ==1069 [2025-01-05 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 16:58:05 - End Time 2025-01-05 19:58:05 [2025-01-05 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182509', 'tblTempUsageDetail_20' ) start [2025-01-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182509', 'tblTempUsageDetail_20' ) end [2025-01-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182509', 'tblTempVendorCDR_20' ) start [2025-01-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182509', 'tblTempVendorCDR_20' ) end [2025-01-05 19:58:19] Production.INFO: ProcessCDR(1,14182509,1,1,2) [2025-01-05 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182509', 'tblTempUsageDetail_20' ) start [2025-01-05 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182509', 'tblTempUsageDetail_20' ) end [2025-01-05 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:58:24] Production.INFO: ==25090== Releasing lock... [2025-01-05 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:58:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 16:59:05 [end_date_ymd] => 2025-01-05 19:59:05 [RateCDR] => 1 ) [2025-01-05 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 16:59:05' and `end` < '2025-01-05 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 19:59:18] Production.INFO: count ==1069 [2025-01-05 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 16:59:05 - End Time 2025-01-05 19:59:05 [2025-01-05 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182514', 'tblTempUsageDetail_20' ) start [2025-01-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182514', 'tblTempUsageDetail_20' ) end [2025-01-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182514', 'tblTempVendorCDR_20' ) start [2025-01-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182514', 'tblTempVendorCDR_20' ) end [2025-01-05 19:59:18] Production.INFO: ProcessCDR(1,14182514,1,1,2) [2025-01-05 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182514', 'tblTempUsageDetail_20' ) start [2025-01-05 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182514', 'tblTempUsageDetail_20' ) end [2025-01-05 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 19:59:21] Production.INFO: ==25169== Releasing lock... [2025-01-05 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 19:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:00:05 [end_date_ymd] => 2025-01-05 20:00:05 [RateCDR] => 1 ) [2025-01-05 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:00:05' and `end` < '2025-01-05 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:00:18] Production.INFO: count ==1070 [2025-01-05 20:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:00:05 - End Time 2025-01-05 20:00:05 [2025-01-05 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182519', 'tblTempUsageDetail_20' ) start [2025-01-05 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182519', 'tblTempUsageDetail_20' ) end [2025-01-05 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182519', 'tblTempVendorCDR_20' ) start [2025-01-05 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182519', 'tblTempVendorCDR_20' ) end [2025-01-05 20:00:18] Production.INFO: ProcessCDR(1,14182519,1,1,2) [2025-01-05 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182519', 'tblTempUsageDetail_20' ) start [2025-01-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182519', 'tblTempUsageDetail_20' ) end [2025-01-05 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:00:23] Production.INFO: ==25256== Releasing lock... [2025-01-05 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:00:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:01:04 [end_date_ymd] => 2025-01-05 20:01:04 [RateCDR] => 1 ) [2025-01-05 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:01:04' and `end` < '2025-01-05 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:01:17] Production.INFO: count ==1058 [2025-01-05 20:01:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:01:04 - End Time 2025-01-05 20:01:04 [2025-01-05 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182525', 'tblTempUsageDetail_20' ) start [2025-01-05 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182525', 'tblTempUsageDetail_20' ) end [2025-01-05 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182525', 'tblTempVendorCDR_20' ) start [2025-01-05 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182525', 'tblTempVendorCDR_20' ) end [2025-01-05 20:01:17] Production.INFO: ProcessCDR(1,14182525,1,1,2) [2025-01-05 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182525', 'tblTempUsageDetail_20' ) start [2025-01-05 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182525', 'tblTempUsageDetail_20' ) end [2025-01-05 20:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:01:20] Production.INFO: ==25392== Releasing lock... [2025-01-05 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:01:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:02:05 [end_date_ymd] => 2025-01-05 20:02:05 [RateCDR] => 1 ) [2025-01-05 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:02:05' and `end` < '2025-01-05 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:02:18] Production.INFO: count ==1055 [2025-01-05 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:02:05 - End Time 2025-01-05 20:02:05 [2025-01-05 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182530', 'tblTempUsageDetail_20' ) start [2025-01-05 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182530', 'tblTempUsageDetail_20' ) end [2025-01-05 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182530', 'tblTempVendorCDR_20' ) start [2025-01-05 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182530', 'tblTempVendorCDR_20' ) end [2025-01-05 20:02:18] Production.INFO: ProcessCDR(1,14182530,1,1,2) [2025-01-05 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182530', 'tblTempUsageDetail_20' ) start [2025-01-05 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182530', 'tblTempUsageDetail_20' ) end [2025-01-05 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:02:21] Production.INFO: ==25475== Releasing lock... [2025-01-05 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:02:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:03:06 [end_date_ymd] => 2025-01-05 20:03:06 [RateCDR] => 1 ) [2025-01-05 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:03:06' and `end` < '2025-01-05 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:03:19] Production.INFO: count ==1040 [2025-01-05 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:03:06 - End Time 2025-01-05 20:03:06 [2025-01-05 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182535', 'tblTempUsageDetail_20' ) start [2025-01-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182535', 'tblTempUsageDetail_20' ) end [2025-01-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182535', 'tblTempVendorCDR_20' ) start [2025-01-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182535', 'tblTempVendorCDR_20' ) end [2025-01-05 20:03:19] Production.INFO: ProcessCDR(1,14182535,1,1,2) [2025-01-05 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182535', 'tblTempUsageDetail_20' ) start [2025-01-05 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182535', 'tblTempUsageDetail_20' ) end [2025-01-05 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:03:22] Production.INFO: ==25566== Releasing lock... [2025-01-05 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-05 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:04:05 [end_date_ymd] => 2025-01-05 20:04:05 [RateCDR] => 1 ) [2025-01-05 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:04:05' and `end` < '2025-01-05 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:04:17] Production.INFO: count ==1039 [2025-01-05 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:04:05 - End Time 2025-01-05 20:04:05 [2025-01-05 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182540', 'tblTempUsageDetail_20' ) start [2025-01-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182540', 'tblTempUsageDetail_20' ) end [2025-01-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182540', 'tblTempVendorCDR_20' ) start [2025-01-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182540', 'tblTempVendorCDR_20' ) end [2025-01-05 20:04:18] Production.INFO: ProcessCDR(1,14182540,1,1,2) [2025-01-05 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182540', 'tblTempUsageDetail_20' ) start [2025-01-05 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182540', 'tblTempUsageDetail_20' ) end [2025-01-05 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:04:21] Production.INFO: ==25647== Releasing lock... [2025-01-05 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:04:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:05:05 [end_date_ymd] => 2025-01-05 20:05:05 [RateCDR] => 1 ) [2025-01-05 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:05:05' and `end` < '2025-01-05 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:05:18] Production.INFO: count ==1036 [2025-01-05 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:05:05 - End Time 2025-01-05 20:05:05 [2025-01-05 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182545', 'tblTempUsageDetail_20' ) start [2025-01-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182545', 'tblTempUsageDetail_20' ) end [2025-01-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182545', 'tblTempVendorCDR_20' ) start [2025-01-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182545', 'tblTempVendorCDR_20' ) end [2025-01-05 20:05:18] Production.INFO: ProcessCDR(1,14182545,1,1,2) [2025-01-05 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182545', 'tblTempUsageDetail_20' ) start [2025-01-05 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182545', 'tblTempUsageDetail_20' ) end [2025-01-05 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:05:21] Production.INFO: ==25748== Releasing lock... [2025-01-05 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:06:05 [end_date_ymd] => 2025-01-05 20:06:05 [RateCDR] => 1 ) [2025-01-05 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:06:05' and `end` < '2025-01-05 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:06:19] Production.INFO: count ==1035 [2025-01-05 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:06:05 - End Time 2025-01-05 20:06:05 [2025-01-05 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182550', 'tblTempUsageDetail_20' ) start [2025-01-05 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182550', 'tblTempUsageDetail_20' ) end [2025-01-05 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182550', 'tblTempVendorCDR_20' ) start [2025-01-05 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182550', 'tblTempVendorCDR_20' ) end [2025-01-05 20:06:19] Production.INFO: ProcessCDR(1,14182550,1,1,2) [2025-01-05 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182550', 'tblTempUsageDetail_20' ) start [2025-01-05 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182550', 'tblTempUsageDetail_20' ) end [2025-01-05 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:06:22] Production.INFO: ==25829== Releasing lock... [2025-01-05 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:06:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:07:05 [end_date_ymd] => 2025-01-05 20:07:05 [RateCDR] => 1 ) [2025-01-05 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:07:05' and `end` < '2025-01-05 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:07:18] Production.INFO: count ==1034 [2025-01-05 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:07:05 - End Time 2025-01-05 20:07:05 [2025-01-05 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182555', 'tblTempUsageDetail_20' ) start [2025-01-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182555', 'tblTempUsageDetail_20' ) end [2025-01-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182555', 'tblTempVendorCDR_20' ) start [2025-01-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182555', 'tblTempVendorCDR_20' ) end [2025-01-05 20:07:19] Production.INFO: ProcessCDR(1,14182555,1,1,2) [2025-01-05 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182555', 'tblTempUsageDetail_20' ) start [2025-01-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182555', 'tblTempUsageDetail_20' ) end [2025-01-05 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:07:22] Production.INFO: ==25911== Releasing lock... [2025-01-05 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:07:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:08:04 [end_date_ymd] => 2025-01-05 20:08:04 [RateCDR] => 1 ) [2025-01-05 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:08:04' and `end` < '2025-01-05 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:08:17] Production.INFO: count ==1026 [2025-01-05 20:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:08:04 - End Time 2025-01-05 20:08:04 [2025-01-05 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182560', 'tblTempUsageDetail_20' ) start [2025-01-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182560', 'tblTempUsageDetail_20' ) end [2025-01-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182560', 'tblTempVendorCDR_20' ) start [2025-01-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182560', 'tblTempVendorCDR_20' ) end [2025-01-05 20:08:18] Production.INFO: ProcessCDR(1,14182560,1,1,2) [2025-01-05 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182560', 'tblTempUsageDetail_20' ) start [2025-01-05 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182560', 'tblTempUsageDetail_20' ) end [2025-01-05 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:08:21] Production.INFO: ==25990== Releasing lock... [2025-01-05 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:08:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:09:05 [end_date_ymd] => 2025-01-05 20:09:05 [RateCDR] => 1 ) [2025-01-05 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:09:05' and `end` < '2025-01-05 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:09:19] Production.INFO: count ==1027 [2025-01-05 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:09:05 - End Time 2025-01-05 20:09:05 [2025-01-05 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182565', 'tblTempUsageDetail_20' ) start [2025-01-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182565', 'tblTempUsageDetail_20' ) end [2025-01-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182565', 'tblTempVendorCDR_20' ) start [2025-01-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182565', 'tblTempVendorCDR_20' ) end [2025-01-05 20:09:19] Production.INFO: ProcessCDR(1,14182565,1,1,2) [2025-01-05 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182565', 'tblTempUsageDetail_20' ) start [2025-01-05 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182565', 'tblTempUsageDetail_20' ) end [2025-01-05 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:09:22] Production.INFO: ==26068== Releasing lock... [2025-01-05 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:09:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:10:05 [end_date_ymd] => 2025-01-05 20:10:05 [RateCDR] => 1 ) [2025-01-05 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:10:05' and `end` < '2025-01-05 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:10:18] Production.INFO: count ==1027 [2025-01-05 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:10:05 - End Time 2025-01-05 20:10:05 [2025-01-05 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182571', 'tblTempUsageDetail_20' ) start [2025-01-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182571', 'tblTempUsageDetail_20' ) end [2025-01-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182571', 'tblTempVendorCDR_20' ) start [2025-01-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182571', 'tblTempVendorCDR_20' ) end [2025-01-05 20:10:19] Production.INFO: ProcessCDR(1,14182571,1,1,2) [2025-01-05 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182571', 'tblTempUsageDetail_20' ) start [2025-01-05 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182571', 'tblTempUsageDetail_20' ) end [2025-01-05 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:10:22] Production.INFO: ==26156== Releasing lock... [2025-01-05 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:10:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:11:04 [end_date_ymd] => 2025-01-05 20:11:04 [RateCDR] => 1 ) [2025-01-05 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:11:04' and `end` < '2025-01-05 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:11:17] Production.INFO: count ==1015 [2025-01-05 20:11:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:11:04 - End Time 2025-01-05 20:11:04 [2025-01-05 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182576', 'tblTempUsageDetail_20' ) start [2025-01-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182576', 'tblTempUsageDetail_20' ) end [2025-01-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182576', 'tblTempVendorCDR_20' ) start [2025-01-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182576', 'tblTempVendorCDR_20' ) end [2025-01-05 20:11:17] Production.INFO: ProcessCDR(1,14182576,1,1,2) [2025-01-05 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182576', 'tblTempUsageDetail_20' ) start [2025-01-05 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182576', 'tblTempUsageDetail_20' ) end [2025-01-05 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:11:22] Production.INFO: ==26274== Releasing lock... [2025-01-05 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:11:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:12:06 [end_date_ymd] => 2025-01-05 20:12:06 [RateCDR] => 1 ) [2025-01-05 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:12:06' and `end` < '2025-01-05 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:12:19] Production.INFO: count ==1016 [2025-01-05 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:12:06 - End Time 2025-01-05 20:12:06 [2025-01-05 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182581', 'tblTempUsageDetail_20' ) start [2025-01-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182581', 'tblTempUsageDetail_20' ) end [2025-01-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182581', 'tblTempVendorCDR_20' ) start [2025-01-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182581', 'tblTempVendorCDR_20' ) end [2025-01-05 20:12:19] Production.INFO: ProcessCDR(1,14182581,1,1,2) [2025-01-05 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182581', 'tblTempUsageDetail_20' ) start [2025-01-05 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182581', 'tblTempUsageDetail_20' ) end [2025-01-05 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:12:22] Production.INFO: ==26425== Releasing lock... [2025-01-05 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:12:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:13:05 [end_date_ymd] => 2025-01-05 20:13:05 [RateCDR] => 1 ) [2025-01-05 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:13:05' and `end` < '2025-01-05 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:13:18] Production.INFO: count ==1017 [2025-01-05 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:13:05 - End Time 2025-01-05 20:13:05 [2025-01-05 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182585', 'tblTempUsageDetail_20' ) start [2025-01-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182585', 'tblTempUsageDetail_20' ) end [2025-01-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182585', 'tblTempVendorCDR_20' ) start [2025-01-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182585', 'tblTempVendorCDR_20' ) end [2025-01-05 20:13:18] Production.INFO: ProcessCDR(1,14182585,1,1,2) [2025-01-05 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182585', 'tblTempUsageDetail_20' ) start [2025-01-05 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182585', 'tblTempUsageDetail_20' ) end [2025-01-05 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:13:23] Production.INFO: ==26755== Releasing lock... [2025-01-05 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:13:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:14:05 [end_date_ymd] => 2025-01-05 20:14:05 [RateCDR] => 1 ) [2025-01-05 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:14:05' and `end` < '2025-01-05 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:14:19] Production.INFO: count ==1018 [2025-01-05 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:14:05 - End Time 2025-01-05 20:14:05 [2025-01-05 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182591', 'tblTempUsageDetail_20' ) start [2025-01-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182591', 'tblTempUsageDetail_20' ) end [2025-01-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182591', 'tblTempVendorCDR_20' ) start [2025-01-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182591', 'tblTempVendorCDR_20' ) end [2025-01-05 20:14:19] Production.INFO: ProcessCDR(1,14182591,1,1,2) [2025-01-05 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182591', 'tblTempUsageDetail_20' ) start [2025-01-05 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182591', 'tblTempUsageDetail_20' ) end [2025-01-05 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:14:23] Production.INFO: ==26890== Releasing lock... [2025-01-05 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:14:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:15:05 [end_date_ymd] => 2025-01-05 20:15:05 [RateCDR] => 1 ) [2025-01-05 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:15:05' and `end` < '2025-01-05 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:15:18] Production.INFO: count ==1017 [2025-01-05 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:15:05 - End Time 2025-01-05 20:15:05 [2025-01-05 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182596', 'tblTempUsageDetail_20' ) start [2025-01-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182596', 'tblTempUsageDetail_20' ) end [2025-01-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182596', 'tblTempVendorCDR_20' ) start [2025-01-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182596', 'tblTempVendorCDR_20' ) end [2025-01-05 20:15:18] Production.INFO: ProcessCDR(1,14182596,1,1,2) [2025-01-05 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182596', 'tblTempUsageDetail_20' ) start [2025-01-05 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182596', 'tblTempUsageDetail_20' ) end [2025-01-05 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:15:21] Production.INFO: ==26969== Releasing lock... [2025-01-05 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:15:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:16:05 [end_date_ymd] => 2025-01-05 20:16:05 [RateCDR] => 1 ) [2025-01-05 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:16:05' and `end` < '2025-01-05 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:16:19] Production.INFO: count ==1018 [2025-01-05 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:16:05 - End Time 2025-01-05 20:16:05 [2025-01-05 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182601', 'tblTempUsageDetail_20' ) start [2025-01-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182601', 'tblTempUsageDetail_20' ) end [2025-01-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182601', 'tblTempVendorCDR_20' ) start [2025-01-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182601', 'tblTempVendorCDR_20' ) end [2025-01-05 20:16:19] Production.INFO: ProcessCDR(1,14182601,1,1,2) [2025-01-05 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182601', 'tblTempUsageDetail_20' ) start [2025-01-05 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182601', 'tblTempUsageDetail_20' ) end [2025-01-05 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:16:22] Production.INFO: ==27050== Releasing lock... [2025-01-05 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:16:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:17:05 [end_date_ymd] => 2025-01-05 20:17:05 [RateCDR] => 1 ) [2025-01-05 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:17:05' and `end` < '2025-01-05 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:17:18] Production.INFO: count ==1018 [2025-01-05 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:17:05 - End Time 2025-01-05 20:17:05 [2025-01-05 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182606', 'tblTempUsageDetail_20' ) start [2025-01-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182606', 'tblTempUsageDetail_20' ) end [2025-01-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182606', 'tblTempVendorCDR_20' ) start [2025-01-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182606', 'tblTempVendorCDR_20' ) end [2025-01-05 20:17:18] Production.INFO: ProcessCDR(1,14182606,1,1,2) [2025-01-05 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182606', 'tblTempUsageDetail_20' ) start [2025-01-05 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182606', 'tblTempUsageDetail_20' ) end [2025-01-05 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:17:21] Production.INFO: ==27133== Releasing lock... [2025-01-05 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:17:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:18:05 [end_date_ymd] => 2025-01-05 20:18:05 [RateCDR] => 1 ) [2025-01-05 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:18:05' and `end` < '2025-01-05 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:18:19] Production.INFO: count ==1017 [2025-01-05 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:18:05 - End Time 2025-01-05 20:18:05 [2025-01-05 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182611', 'tblTempUsageDetail_20' ) start [2025-01-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182611', 'tblTempUsageDetail_20' ) end [2025-01-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182611', 'tblTempVendorCDR_20' ) start [2025-01-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182611', 'tblTempVendorCDR_20' ) end [2025-01-05 20:18:19] Production.INFO: ProcessCDR(1,14182611,1,1,2) [2025-01-05 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182611', 'tblTempUsageDetail_20' ) start [2025-01-05 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182611', 'tblTempUsageDetail_20' ) end [2025-01-05 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:18:22] Production.INFO: ==27222== Releasing lock... [2025-01-05 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:19:04 [end_date_ymd] => 2025-01-05 20:19:04 [RateCDR] => 1 ) [2025-01-05 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:19:04' and `end` < '2025-01-05 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:19:17] Production.INFO: count ==1018 [2025-01-05 20:19:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:19:04 - End Time 2025-01-05 20:19:04 [2025-01-05 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182616', 'tblTempUsageDetail_20' ) start [2025-01-05 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182616', 'tblTempUsageDetail_20' ) end [2025-01-05 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182616', 'tblTempVendorCDR_20' ) start [2025-01-05 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182616', 'tblTempVendorCDR_20' ) end [2025-01-05 20:19:17] Production.INFO: ProcessCDR(1,14182616,1,1,2) [2025-01-05 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182616', 'tblTempUsageDetail_20' ) start [2025-01-05 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182616', 'tblTempUsageDetail_20' ) end [2025-01-05 20:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:19:20] Production.INFO: ==27301== Releasing lock... [2025-01-05 20:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:19:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:20:05 [end_date_ymd] => 2025-01-05 20:20:05 [RateCDR] => 1 ) [2025-01-05 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:20:05' and `end` < '2025-01-05 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:20:18] Production.INFO: count ==1017 [2025-01-05 20:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:20:05 - End Time 2025-01-05 20:20:05 [2025-01-05 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182619', 'tblTempUsageDetail_20' ) start [2025-01-05 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182619', 'tblTempUsageDetail_20' ) end [2025-01-05 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182619', 'tblTempVendorCDR_20' ) start [2025-01-05 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182619', 'tblTempVendorCDR_20' ) end [2025-01-05 20:20:18] Production.INFO: ProcessCDR(1,14182619,1,1,2) [2025-01-05 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182619', 'tblTempUsageDetail_20' ) start [2025-01-05 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182619', 'tblTempUsageDetail_20' ) end [2025-01-05 20:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:20:21] Production.INFO: ==27383== Releasing lock... [2025-01-05 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:20:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:21:05 [end_date_ymd] => 2025-01-05 20:21:05 [RateCDR] => 1 ) [2025-01-05 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:21:05' and `end` < '2025-01-05 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:21:18] Production.INFO: count ==1004 [2025-01-05 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:21:05 - End Time 2025-01-05 20:21:05 [2025-01-05 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182627', 'tblTempUsageDetail_20' ) start [2025-01-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182627', 'tblTempUsageDetail_20' ) end [2025-01-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182627', 'tblTempVendorCDR_20' ) start [2025-01-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182627', 'tblTempVendorCDR_20' ) end [2025-01-05 20:21:19] Production.INFO: ProcessCDR(1,14182627,1,1,2) [2025-01-05 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182627', 'tblTempUsageDetail_20' ) start [2025-01-05 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182627', 'tblTempUsageDetail_20' ) end [2025-01-05 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:21:23] Production.INFO: ==27465== Releasing lock... [2025-01-05 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:21:23] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:22:05 [end_date_ymd] => 2025-01-05 20:22:05 [RateCDR] => 1 ) [2025-01-05 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:22:05' and `end` < '2025-01-05 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:22:18] Production.INFO: count ==1001 [2025-01-05 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:22:05 - End Time 2025-01-05 20:22:05 [2025-01-05 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182632', 'tblTempUsageDetail_20' ) start [2025-01-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182632', 'tblTempUsageDetail_20' ) end [2025-01-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182632', 'tblTempVendorCDR_20' ) start [2025-01-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182632', 'tblTempVendorCDR_20' ) end [2025-01-05 20:22:18] Production.INFO: ProcessCDR(1,14182632,1,1,2) [2025-01-05 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182632', 'tblTempUsageDetail_20' ) start [2025-01-05 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182632', 'tblTempUsageDetail_20' ) end [2025-01-05 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:22:22] Production.INFO: ==27544== Releasing lock... [2025-01-05 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:22:22] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:23:05 [end_date_ymd] => 2025-01-05 20:23:05 [RateCDR] => 1 ) [2025-01-05 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:23:05' and `end` < '2025-01-05 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:23:18] Production.INFO: count ==997 [2025-01-05 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:23:05 - End Time 2025-01-05 20:23:05 [2025-01-05 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182637', 'tblTempUsageDetail_20' ) start [2025-01-05 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182637', 'tblTempUsageDetail_20' ) end [2025-01-05 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182637', 'tblTempVendorCDR_20' ) start [2025-01-05 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182637', 'tblTempVendorCDR_20' ) end [2025-01-05 20:23:18] Production.INFO: ProcessCDR(1,14182637,1,1,2) [2025-01-05 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182637', 'tblTempUsageDetail_20' ) start [2025-01-05 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182637', 'tblTempUsageDetail_20' ) end [2025-01-05 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:23:21] Production.INFO: ==27645== Releasing lock... [2025-01-05 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:23:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:24:05 [end_date_ymd] => 2025-01-05 20:24:05 [RateCDR] => 1 ) [2025-01-05 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:24:05' and `end` < '2025-01-05 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:24:18] Production.INFO: count ==995 [2025-01-05 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:24:05 - End Time 2025-01-05 20:24:05 [2025-01-05 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182642', 'tblTempUsageDetail_20' ) start [2025-01-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182642', 'tblTempUsageDetail_20' ) end [2025-01-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182642', 'tblTempVendorCDR_20' ) start [2025-01-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182642', 'tblTempVendorCDR_20' ) end [2025-01-05 20:24:18] Production.INFO: ProcessCDR(1,14182642,1,1,2) [2025-01-05 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182642', 'tblTempUsageDetail_20' ) start [2025-01-05 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182642', 'tblTempUsageDetail_20' ) end [2025-01-05 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:24:21] Production.INFO: ==27723== Releasing lock... [2025-01-05 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:24:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:25:05 [end_date_ymd] => 2025-01-05 20:25:05 [RateCDR] => 1 ) [2025-01-05 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:25:05' and `end` < '2025-01-05 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:25:18] Production.INFO: count ==994 [2025-01-05 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:25:05 - End Time 2025-01-05 20:25:05 [2025-01-05 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182647', 'tblTempUsageDetail_20' ) start [2025-01-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182647', 'tblTempUsageDetail_20' ) end [2025-01-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182647', 'tblTempVendorCDR_20' ) start [2025-01-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182647', 'tblTempVendorCDR_20' ) end [2025-01-05 20:25:18] Production.INFO: ProcessCDR(1,14182647,1,1,2) [2025-01-05 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182647', 'tblTempUsageDetail_20' ) start [2025-01-05 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182647', 'tblTempUsageDetail_20' ) end [2025-01-05 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:25:21] Production.INFO: ==27807== Releasing lock... [2025-01-05 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:25:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:26:05 [end_date_ymd] => 2025-01-05 20:26:05 [RateCDR] => 1 ) [2025-01-05 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:26:05' and `end` < '2025-01-05 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:26:18] Production.INFO: count ==995 [2025-01-05 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:26:05 - End Time 2025-01-05 20:26:05 [2025-01-05 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182652', 'tblTempUsageDetail_20' ) start [2025-01-05 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182652', 'tblTempUsageDetail_20' ) end [2025-01-05 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182652', 'tblTempVendorCDR_20' ) start [2025-01-05 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182652', 'tblTempVendorCDR_20' ) end [2025-01-05 20:26:18] Production.INFO: ProcessCDR(1,14182652,1,1,2) [2025-01-05 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182652', 'tblTempUsageDetail_20' ) start [2025-01-05 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182652', 'tblTempUsageDetail_20' ) end [2025-01-05 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:26:21] Production.INFO: ==27930== Releasing lock... [2025-01-05 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:26:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-05 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:27:05 [end_date_ymd] => 2025-01-05 20:27:05 [RateCDR] => 1 ) [2025-01-05 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:27:05' and `end` < '2025-01-05 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:27:18] Production.INFO: count ==985 [2025-01-05 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:27:05 - End Time 2025-01-05 20:27:05 [2025-01-05 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182657', 'tblTempUsageDetail_20' ) start [2025-01-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182657', 'tblTempUsageDetail_20' ) end [2025-01-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182657', 'tblTempVendorCDR_20' ) start [2025-01-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182657', 'tblTempVendorCDR_20' ) end [2025-01-05 20:27:18] Production.INFO: ProcessCDR(1,14182657,1,1,2) [2025-01-05 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182657', 'tblTempUsageDetail_20' ) start [2025-01-05 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182657', 'tblTempUsageDetail_20' ) end [2025-01-05 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:27:22] Production.INFO: ==28021== Releasing lock... [2025-01-05 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:27:22] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:28:04 [end_date_ymd] => 2025-01-05 20:28:04 [RateCDR] => 1 ) [2025-01-05 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:28:04' and `end` < '2025-01-05 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:28:17] Production.INFO: count ==980 [2025-01-05 20:28:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:28:04 - End Time 2025-01-05 20:28:04 [2025-01-05 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182662', 'tblTempUsageDetail_20' ) start [2025-01-05 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182662', 'tblTempUsageDetail_20' ) end [2025-01-05 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182662', 'tblTempVendorCDR_20' ) start [2025-01-05 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182662', 'tblTempVendorCDR_20' ) end [2025-01-05 20:28:17] Production.INFO: ProcessCDR(1,14182662,1,1,2) [2025-01-05 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182662', 'tblTempUsageDetail_20' ) start [2025-01-05 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182662', 'tblTempUsageDetail_20' ) end [2025-01-05 20:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:28:20] Production.INFO: ==28104== Releasing lock... [2025-01-05 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:28:20] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:29:05 [end_date_ymd] => 2025-01-05 20:29:05 [RateCDR] => 1 ) [2025-01-05 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:29:05' and `end` < '2025-01-05 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:29:18] Production.INFO: count ==981 [2025-01-05 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:29:05 - End Time 2025-01-05 20:29:05 [2025-01-05 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182667', 'tblTempUsageDetail_20' ) start [2025-01-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182667', 'tblTempUsageDetail_20' ) end [2025-01-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182667', 'tblTempVendorCDR_20' ) start [2025-01-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182667', 'tblTempVendorCDR_20' ) end [2025-01-05 20:29:18] Production.INFO: ProcessCDR(1,14182667,1,1,2) [2025-01-05 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182667', 'tblTempUsageDetail_20' ) start [2025-01-05 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182667', 'tblTempUsageDetail_20' ) end [2025-01-05 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:29:22] Production.INFO: ==28204== Releasing lock... [2025-01-05 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:29:22] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:30:05 [end_date_ymd] => 2025-01-05 20:30:05 [RateCDR] => 1 ) [2025-01-05 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:30:05' and `end` < '2025-01-05 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:30:18] Production.INFO: count ==981 [2025-01-05 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:30:05 - End Time 2025-01-05 20:30:05 [2025-01-05 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182672', 'tblTempUsageDetail_20' ) start [2025-01-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182672', 'tblTempUsageDetail_20' ) end [2025-01-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182672', 'tblTempVendorCDR_20' ) start [2025-01-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182672', 'tblTempVendorCDR_20' ) end [2025-01-05 20:30:18] Production.INFO: ProcessCDR(1,14182672,1,1,2) [2025-01-05 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182672', 'tblTempUsageDetail_20' ) start [2025-01-05 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182672', 'tblTempUsageDetail_20' ) end [2025-01-05 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:30:23] Production.INFO: ==28301== Releasing lock... [2025-01-05 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:30:23] Production.INFO: 35 MB #Memory Used# [2025-01-05 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:31:05 [end_date_ymd] => 2025-01-05 20:31:05 [RateCDR] => 1 ) [2025-01-05 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:31:05' and `end` < '2025-01-05 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:31:18] Production.INFO: count ==960 [2025-01-05 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:31:05 - End Time 2025-01-05 20:31:05 [2025-01-05 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182678', 'tblTempUsageDetail_20' ) start [2025-01-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182678', 'tblTempUsageDetail_20' ) end [2025-01-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182678', 'tblTempVendorCDR_20' ) start [2025-01-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182678', 'tblTempVendorCDR_20' ) end [2025-01-05 20:31:18] Production.INFO: ProcessCDR(1,14182678,1,1,2) [2025-01-05 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182678', 'tblTempUsageDetail_20' ) start [2025-01-05 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182678', 'tblTempUsageDetail_20' ) end [2025-01-05 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:31:22] Production.INFO: ==28398== Releasing lock... [2025-01-05 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:32:05 [end_date_ymd] => 2025-01-05 20:32:05 [RateCDR] => 1 ) [2025-01-05 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:32:05' and `end` < '2025-01-05 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:32:18] Production.INFO: count ==965 [2025-01-05 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:32:05 - End Time 2025-01-05 20:32:05 [2025-01-05 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182683', 'tblTempUsageDetail_20' ) start [2025-01-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182683', 'tblTempUsageDetail_20' ) end [2025-01-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182683', 'tblTempVendorCDR_20' ) start [2025-01-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182683', 'tblTempVendorCDR_20' ) end [2025-01-05 20:32:18] Production.INFO: ProcessCDR(1,14182683,1,1,2) [2025-01-05 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182683', 'tblTempUsageDetail_20' ) start [2025-01-05 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182683', 'tblTempUsageDetail_20' ) end [2025-01-05 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:32:21] Production.INFO: ==28489== Releasing lock... [2025-01-05 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:33:04 [end_date_ymd] => 2025-01-05 20:33:04 [RateCDR] => 1 ) [2025-01-05 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:33:04' and `end` < '2025-01-05 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:33:18] Production.INFO: count ==961 [2025-01-05 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:33:04 - End Time 2025-01-05 20:33:04 [2025-01-05 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182688', 'tblTempUsageDetail_20' ) start [2025-01-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182688', 'tblTempUsageDetail_20' ) end [2025-01-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182688', 'tblTempVendorCDR_20' ) start [2025-01-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182688', 'tblTempVendorCDR_20' ) end [2025-01-05 20:33:18] Production.INFO: ProcessCDR(1,14182688,1,1,2) [2025-01-05 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182688', 'tblTempUsageDetail_20' ) start [2025-01-05 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182688', 'tblTempUsageDetail_20' ) end [2025-01-05 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:33:21] Production.INFO: ==28573== Releasing lock... [2025-01-05 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:33:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:34:05 [end_date_ymd] => 2025-01-05 20:34:05 [RateCDR] => 1 ) [2025-01-05 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:34:05' and `end` < '2025-01-05 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:34:19] Production.INFO: count ==960 [2025-01-05 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:34:05 - End Time 2025-01-05 20:34:05 [2025-01-05 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182693', 'tblTempUsageDetail_20' ) start [2025-01-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182693', 'tblTempUsageDetail_20' ) end [2025-01-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182693', 'tblTempVendorCDR_20' ) start [2025-01-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182693', 'tblTempVendorCDR_20' ) end [2025-01-05 20:34:19] Production.INFO: ProcessCDR(1,14182693,1,1,2) [2025-01-05 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182693', 'tblTempUsageDetail_20' ) start [2025-01-05 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182693', 'tblTempUsageDetail_20' ) end [2025-01-05 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:34:22] Production.INFO: ==28663== Releasing lock... [2025-01-05 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:34:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:35:04 [end_date_ymd] => 2025-01-05 20:35:04 [RateCDR] => 1 ) [2025-01-05 20:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:35:04' and `end` < '2025-01-05 20:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:35:18] Production.INFO: count ==960 [2025-01-05 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:35:04 - End Time 2025-01-05 20:35:04 [2025-01-05 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182698', 'tblTempUsageDetail_20' ) start [2025-01-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182698', 'tblTempUsageDetail_20' ) end [2025-01-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182698', 'tblTempVendorCDR_20' ) start [2025-01-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182698', 'tblTempVendorCDR_20' ) end [2025-01-05 20:35:18] Production.INFO: ProcessCDR(1,14182698,1,1,2) [2025-01-05 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182698', 'tblTempUsageDetail_20' ) start [2025-01-05 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182698', 'tblTempUsageDetail_20' ) end [2025-01-05 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:35:21] Production.INFO: ==28754== Releasing lock... [2025-01-05 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:36:05 [end_date_ymd] => 2025-01-05 20:36:05 [RateCDR] => 1 ) [2025-01-05 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:36:05' and `end` < '2025-01-05 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:36:18] Production.INFO: count ==961 [2025-01-05 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:36:05 - End Time 2025-01-05 20:36:05 [2025-01-05 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182703', 'tblTempUsageDetail_20' ) start [2025-01-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182703', 'tblTempUsageDetail_20' ) end [2025-01-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182703', 'tblTempVendorCDR_20' ) start [2025-01-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182703', 'tblTempVendorCDR_20' ) end [2025-01-05 20:36:18] Production.INFO: ProcessCDR(1,14182703,1,1,2) [2025-01-05 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182703', 'tblTempUsageDetail_20' ) start [2025-01-05 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182703', 'tblTempUsageDetail_20' ) end [2025-01-05 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:36:22] Production.INFO: ==28846== Releasing lock... [2025-01-05 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:36:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:37:05 [end_date_ymd] => 2025-01-05 20:37:05 [RateCDR] => 1 ) [2025-01-05 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:37:05' and `end` < '2025-01-05 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:37:19] Production.INFO: count ==961 [2025-01-05 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:37:05 - End Time 2025-01-05 20:37:05 [2025-01-05 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182708', 'tblTempUsageDetail_20' ) start [2025-01-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182708', 'tblTempUsageDetail_20' ) end [2025-01-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182708', 'tblTempVendorCDR_20' ) start [2025-01-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182708', 'tblTempVendorCDR_20' ) end [2025-01-05 20:37:19] Production.INFO: ProcessCDR(1,14182708,1,1,2) [2025-01-05 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182708', 'tblTempUsageDetail_20' ) start [2025-01-05 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182708', 'tblTempUsageDetail_20' ) end [2025-01-05 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:37:22] Production.INFO: ==28939== Releasing lock... [2025-01-05 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:37:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:38:05 [end_date_ymd] => 2025-01-05 20:38:05 [RateCDR] => 1 ) [2025-01-05 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:38:05' and `end` < '2025-01-05 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:38:18] Production.INFO: count ==960 [2025-01-05 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:38:05 - End Time 2025-01-05 20:38:05 [2025-01-05 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182712', 'tblTempUsageDetail_20' ) start [2025-01-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182712', 'tblTempUsageDetail_20' ) end [2025-01-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182712', 'tblTempVendorCDR_20' ) start [2025-01-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182712', 'tblTempVendorCDR_20' ) end [2025-01-05 20:38:18] Production.INFO: ProcessCDR(1,14182712,1,1,2) [2025-01-05 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182712', 'tblTempUsageDetail_20' ) start [2025-01-05 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182712', 'tblTempUsageDetail_20' ) end [2025-01-05 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:38:22] Production.INFO: ==29029== Releasing lock... [2025-01-05 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:39:05 [end_date_ymd] => 2025-01-05 20:39:05 [RateCDR] => 1 ) [2025-01-05 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:39:05' and `end` < '2025-01-05 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:39:20] Production.INFO: count ==963 [2025-01-05 20:39:20] Production.ERROR: pbx CDR StartTime 2025-01-05 17:39:05 - End Time 2025-01-05 20:39:05 [2025-01-05 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182718', 'tblTempUsageDetail_20' ) start [2025-01-05 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182718', 'tblTempUsageDetail_20' ) end [2025-01-05 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182718', 'tblTempVendorCDR_20' ) start [2025-01-05 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182718', 'tblTempVendorCDR_20' ) end [2025-01-05 20:39:20] Production.INFO: ProcessCDR(1,14182718,1,1,2) [2025-01-05 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182718', 'tblTempUsageDetail_20' ) start [2025-01-05 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182718', 'tblTempUsageDetail_20' ) end [2025-01-05 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:39:23] Production.INFO: ==29117== Releasing lock... [2025-01-05 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:39:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:40:06 [end_date_ymd] => 2025-01-05 20:40:06 [RateCDR] => 1 ) [2025-01-05 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:40:06' and `end` < '2025-01-05 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:40:18] Production.INFO: count ==958 [2025-01-05 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:40:06 - End Time 2025-01-05 20:40:06 [2025-01-05 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182724', 'tblTempUsageDetail_20' ) start [2025-01-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182724', 'tblTempUsageDetail_20' ) end [2025-01-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182724', 'tblTempVendorCDR_20' ) start [2025-01-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182724', 'tblTempVendorCDR_20' ) end [2025-01-05 20:40:19] Production.INFO: ProcessCDR(1,14182724,1,1,2) [2025-01-05 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182724', 'tblTempUsageDetail_20' ) start [2025-01-05 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182724', 'tblTempUsageDetail_20' ) end [2025-01-05 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:40:22] Production.INFO: ==29212== Releasing lock... [2025-01-05 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:41:05 [end_date_ymd] => 2025-01-05 20:41:05 [RateCDR] => 1 ) [2025-01-05 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:41:05' and `end` < '2025-01-05 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:41:19] Production.INFO: count ==923 [2025-01-05 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:41:05 - End Time 2025-01-05 20:41:05 [2025-01-05 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182729', 'tblTempUsageDetail_20' ) start [2025-01-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182729', 'tblTempUsageDetail_20' ) end [2025-01-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182729', 'tblTempVendorCDR_20' ) start [2025-01-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182729', 'tblTempVendorCDR_20' ) end [2025-01-05 20:41:19] Production.INFO: ProcessCDR(1,14182729,1,1,2) [2025-01-05 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182729', 'tblTempUsageDetail_20' ) start [2025-01-05 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182729', 'tblTempUsageDetail_20' ) end [2025-01-05 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:41:22] Production.INFO: ==29303== Releasing lock... [2025-01-05 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:41:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:42:05 [end_date_ymd] => 2025-01-05 20:42:05 [RateCDR] => 1 ) [2025-01-05 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:42:05' and `end` < '2025-01-05 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:42:18] Production.INFO: count ==921 [2025-01-05 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:42:05 - End Time 2025-01-05 20:42:05 [2025-01-05 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182734', 'tblTempUsageDetail_20' ) start [2025-01-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182734', 'tblTempUsageDetail_20' ) end [2025-01-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182734', 'tblTempVendorCDR_20' ) start [2025-01-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182734', 'tblTempVendorCDR_20' ) end [2025-01-05 20:42:18] Production.INFO: ProcessCDR(1,14182734,1,1,2) [2025-01-05 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182734', 'tblTempUsageDetail_20' ) start [2025-01-05 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182734', 'tblTempUsageDetail_20' ) end [2025-01-05 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:42:21] Production.INFO: ==29432== Releasing lock... [2025-01-05 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:42:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:43:05 [end_date_ymd] => 2025-01-05 20:43:05 [RateCDR] => 1 ) [2025-01-05 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:43:05' and `end` < '2025-01-05 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:43:18] Production.INFO: count ==920 [2025-01-05 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:43:05 - End Time 2025-01-05 20:43:05 [2025-01-05 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182739', 'tblTempUsageDetail_20' ) start [2025-01-05 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182739', 'tblTempUsageDetail_20' ) end [2025-01-05 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182739', 'tblTempVendorCDR_20' ) start [2025-01-05 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182739', 'tblTempVendorCDR_20' ) end [2025-01-05 20:43:18] Production.INFO: ProcessCDR(1,14182739,1,1,2) [2025-01-05 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182739', 'tblTempUsageDetail_20' ) start [2025-01-05 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182739', 'tblTempUsageDetail_20' ) end [2025-01-05 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:43:21] Production.INFO: ==29523== Releasing lock... [2025-01-05 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:44:05 [end_date_ymd] => 2025-01-05 20:44:05 [RateCDR] => 1 ) [2025-01-05 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:44:05' and `end` < '2025-01-05 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:44:18] Production.INFO: count ==914 [2025-01-05 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:44:05 - End Time 2025-01-05 20:44:05 [2025-01-05 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182744', 'tblTempUsageDetail_20' ) start [2025-01-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182744', 'tblTempUsageDetail_20' ) end [2025-01-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182744', 'tblTempVendorCDR_20' ) start [2025-01-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182744', 'tblTempVendorCDR_20' ) end [2025-01-05 20:44:18] Production.INFO: ProcessCDR(1,14182744,1,1,2) [2025-01-05 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182744', 'tblTempUsageDetail_20' ) start [2025-01-05 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182744', 'tblTempUsageDetail_20' ) end [2025-01-05 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:44:21] Production.INFO: ==29618== Releasing lock... [2025-01-05 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:45:05 [end_date_ymd] => 2025-01-05 20:45:05 [RateCDR] => 1 ) [2025-01-05 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:45:05' and `end` < '2025-01-05 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:45:18] Production.INFO: count ==913 [2025-01-05 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:45:05 - End Time 2025-01-05 20:45:05 [2025-01-05 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182749', 'tblTempUsageDetail_20' ) start [2025-01-05 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182749', 'tblTempUsageDetail_20' ) end [2025-01-05 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182749', 'tblTempVendorCDR_20' ) start [2025-01-05 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182749', 'tblTempVendorCDR_20' ) end [2025-01-05 20:45:18] Production.INFO: ProcessCDR(1,14182749,1,1,2) [2025-01-05 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182749', 'tblTempUsageDetail_20' ) start [2025-01-05 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182749', 'tblTempUsageDetail_20' ) end [2025-01-05 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:45:21] Production.INFO: ==29709== Releasing lock... [2025-01-05 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:46:04 [end_date_ymd] => 2025-01-05 20:46:04 [RateCDR] => 1 ) [2025-01-05 20:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:46:04' and `end` < '2025-01-05 20:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:46:17] Production.INFO: count ==911 [2025-01-05 20:46:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:46:04 - End Time 2025-01-05 20:46:04 [2025-01-05 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182754', 'tblTempUsageDetail_20' ) start [2025-01-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182754', 'tblTempUsageDetail_20' ) end [2025-01-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182754', 'tblTempVendorCDR_20' ) start [2025-01-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182754', 'tblTempVendorCDR_20' ) end [2025-01-05 20:46:17] Production.INFO: ProcessCDR(1,14182754,1,1,2) [2025-01-05 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182754', 'tblTempUsageDetail_20' ) start [2025-01-05 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182754', 'tblTempUsageDetail_20' ) end [2025-01-05 20:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:46:20] Production.INFO: ==29800== Releasing lock... [2025-01-05 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:46:20] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:47:05 [end_date_ymd] => 2025-01-05 20:47:05 [RateCDR] => 1 ) [2025-01-05 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:47:05' and `end` < '2025-01-05 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:47:18] Production.INFO: count ==912 [2025-01-05 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:47:05 - End Time 2025-01-05 20:47:05 [2025-01-05 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182759', 'tblTempUsageDetail_20' ) start [2025-01-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182759', 'tblTempUsageDetail_20' ) end [2025-01-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182759', 'tblTempVendorCDR_20' ) start [2025-01-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182759', 'tblTempVendorCDR_20' ) end [2025-01-05 20:47:18] Production.INFO: ProcessCDR(1,14182759,1,1,2) [2025-01-05 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182759', 'tblTempUsageDetail_20' ) start [2025-01-05 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182759', 'tblTempUsageDetail_20' ) end [2025-01-05 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:47:21] Production.INFO: ==29892== Releasing lock... [2025-01-05 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:47:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:48:04 [end_date_ymd] => 2025-01-05 20:48:04 [RateCDR] => 1 ) [2025-01-05 20:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:48:04' and `end` < '2025-01-05 20:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:48:18] Production.INFO: count ==910 [2025-01-05 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:48:04 - End Time 2025-01-05 20:48:04 [2025-01-05 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182764', 'tblTempUsageDetail_20' ) start [2025-01-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182764', 'tblTempUsageDetail_20' ) end [2025-01-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182764', 'tblTempVendorCDR_20' ) start [2025-01-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182764', 'tblTempVendorCDR_20' ) end [2025-01-05 20:48:18] Production.INFO: ProcessCDR(1,14182764,1,1,2) [2025-01-05 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182764', 'tblTempUsageDetail_20' ) start [2025-01-05 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182764', 'tblTempUsageDetail_20' ) end [2025-01-05 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:48:21] Production.INFO: ==29982== Releasing lock... [2025-01-05 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:48:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:49:05 [end_date_ymd] => 2025-01-05 20:49:05 [RateCDR] => 1 ) [2025-01-05 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:49:05' and `end` < '2025-01-05 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:49:19] Production.INFO: count ==901 [2025-01-05 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:49:05 - End Time 2025-01-05 20:49:05 [2025-01-05 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182769', 'tblTempUsageDetail_20' ) start [2025-01-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182769', 'tblTempUsageDetail_20' ) end [2025-01-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182769', 'tblTempVendorCDR_20' ) start [2025-01-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182769', 'tblTempVendorCDR_20' ) end [2025-01-05 20:49:19] Production.INFO: ProcessCDR(1,14182769,1,1,2) [2025-01-05 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182769', 'tblTempUsageDetail_20' ) start [2025-01-05 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182769', 'tblTempUsageDetail_20' ) end [2025-01-05 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:49:22] Production.INFO: ==30074== Releasing lock... [2025-01-05 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:49:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:50:06 [end_date_ymd] => 2025-01-05 20:50:06 [RateCDR] => 1 ) [2025-01-05 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:50:06' and `end` < '2025-01-05 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:50:19] Production.INFO: count ==897 [2025-01-05 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 17:50:06 - End Time 2025-01-05 20:50:06 [2025-01-05 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182775', 'tblTempUsageDetail_20' ) start [2025-01-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182775', 'tblTempUsageDetail_20' ) end [2025-01-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182775', 'tblTempVendorCDR_20' ) start [2025-01-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182775', 'tblTempVendorCDR_20' ) end [2025-01-05 20:50:19] Production.INFO: ProcessCDR(1,14182775,1,1,2) [2025-01-05 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182775', 'tblTempUsageDetail_20' ) start [2025-01-05 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182775', 'tblTempUsageDetail_20' ) end [2025-01-05 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:50:22] Production.INFO: ==30167== Releasing lock... [2025-01-05 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:51:05 [end_date_ymd] => 2025-01-05 20:51:05 [RateCDR] => 1 ) [2025-01-05 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:51:05' and `end` < '2025-01-05 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:51:18] Production.INFO: count ==862 [2025-01-05 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:51:05 - End Time 2025-01-05 20:51:05 [2025-01-05 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182780', 'tblTempUsageDetail_20' ) start [2025-01-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182780', 'tblTempUsageDetail_20' ) end [2025-01-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182780', 'tblTempVendorCDR_20' ) start [2025-01-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182780', 'tblTempVendorCDR_20' ) end [2025-01-05 20:51:18] Production.INFO: ProcessCDR(1,14182780,1,1,2) [2025-01-05 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182780', 'tblTempUsageDetail_20' ) start [2025-01-05 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182780', 'tblTempUsageDetail_20' ) end [2025-01-05 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:51:22] Production.INFO: ==30253== Releasing lock... [2025-01-05 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:52:05 [end_date_ymd] => 2025-01-05 20:52:05 [RateCDR] => 1 ) [2025-01-05 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:52:05' and `end` < '2025-01-05 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:52:18] Production.INFO: count ==862 [2025-01-05 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:52:05 - End Time 2025-01-05 20:52:05 [2025-01-05 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182785', 'tblTempUsageDetail_20' ) start [2025-01-05 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182785', 'tblTempUsageDetail_20' ) end [2025-01-05 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182785', 'tblTempVendorCDR_20' ) start [2025-01-05 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182785', 'tblTempVendorCDR_20' ) end [2025-01-05 20:52:18] Production.INFO: ProcessCDR(1,14182785,1,1,2) [2025-01-05 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182785', 'tblTempUsageDetail_20' ) start [2025-01-05 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182785', 'tblTempUsageDetail_20' ) end [2025-01-05 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:52:23] Production.INFO: ==30347== Releasing lock... [2025-01-05 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:53:04 [end_date_ymd] => 2025-01-05 20:53:04 [RateCDR] => 1 ) [2025-01-05 20:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:53:04' and `end` < '2025-01-05 20:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:53:17] Production.INFO: count ==863 [2025-01-05 20:53:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:53:04 - End Time 2025-01-05 20:53:04 [2025-01-05 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182790', 'tblTempUsageDetail_20' ) start [2025-01-05 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182790', 'tblTempUsageDetail_20' ) end [2025-01-05 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182790', 'tblTempVendorCDR_20' ) start [2025-01-05 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182790', 'tblTempVendorCDR_20' ) end [2025-01-05 20:53:17] Production.INFO: ProcessCDR(1,14182790,1,1,2) [2025-01-05 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182790', 'tblTempUsageDetail_20' ) start [2025-01-05 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182790', 'tblTempUsageDetail_20' ) end [2025-01-05 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:53:22] Production.INFO: ==30439== Releasing lock... [2025-01-05 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:54:05 [end_date_ymd] => 2025-01-05 20:54:05 [RateCDR] => 1 ) [2025-01-05 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:54:05' and `end` < '2025-01-05 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:54:18] Production.INFO: count ==862 [2025-01-05 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:54:05 - End Time 2025-01-05 20:54:05 [2025-01-05 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182795', 'tblTempUsageDetail_20' ) start [2025-01-05 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182795', 'tblTempUsageDetail_20' ) end [2025-01-05 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182795', 'tblTempVendorCDR_20' ) start [2025-01-05 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182795', 'tblTempVendorCDR_20' ) end [2025-01-05 20:54:18] Production.INFO: ProcessCDR(1,14182795,1,1,2) [2025-01-05 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182795', 'tblTempUsageDetail_20' ) start [2025-01-05 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182795', 'tblTempUsageDetail_20' ) end [2025-01-05 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:54:21] Production.INFO: ==30532== Releasing lock... [2025-01-05 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:55:04 [end_date_ymd] => 2025-01-05 20:55:04 [RateCDR] => 1 ) [2025-01-05 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:55:04' and `end` < '2025-01-05 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:55:17] Production.INFO: count ==865 [2025-01-05 20:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:55:04 - End Time 2025-01-05 20:55:04 [2025-01-05 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182800', 'tblTempUsageDetail_20' ) start [2025-01-05 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182800', 'tblTempUsageDetail_20' ) end [2025-01-05 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182800', 'tblTempVendorCDR_20' ) start [2025-01-05 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182800', 'tblTempVendorCDR_20' ) end [2025-01-05 20:55:17] Production.INFO: ProcessCDR(1,14182800,1,1,2) [2025-01-05 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182800', 'tblTempUsageDetail_20' ) start [2025-01-05 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182800', 'tblTempUsageDetail_20' ) end [2025-01-05 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:55:21] Production.INFO: ==30623== Releasing lock... [2025-01-05 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:56:05 [end_date_ymd] => 2025-01-05 20:56:05 [RateCDR] => 1 ) [2025-01-05 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:56:05' and `end` < '2025-01-05 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:56:18] Production.INFO: count ==870 [2025-01-05 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:56:05 - End Time 2025-01-05 20:56:05 [2025-01-05 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182805', 'tblTempUsageDetail_20' ) start [2025-01-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182805', 'tblTempUsageDetail_20' ) end [2025-01-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182805', 'tblTempVendorCDR_20' ) start [2025-01-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182805', 'tblTempVendorCDR_20' ) end [2025-01-05 20:56:18] Production.INFO: ProcessCDR(1,14182805,1,1,2) [2025-01-05 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182805', 'tblTempUsageDetail_20' ) start [2025-01-05 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182805', 'tblTempUsageDetail_20' ) end [2025-01-05 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:56:22] Production.INFO: ==30711== Releasing lock... [2025-01-05 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:57:05 [end_date_ymd] => 2025-01-05 20:57:05 [RateCDR] => 1 ) [2025-01-05 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:57:05' and `end` < '2025-01-05 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:57:18] Production.INFO: count ==874 [2025-01-05 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:57:05 - End Time 2025-01-05 20:57:05 [2025-01-05 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182810', 'tblTempUsageDetail_20' ) start [2025-01-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182810', 'tblTempUsageDetail_20' ) end [2025-01-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182810', 'tblTempVendorCDR_20' ) start [2025-01-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182810', 'tblTempVendorCDR_20' ) end [2025-01-05 20:57:18] Production.INFO: ProcessCDR(1,14182810,1,1,2) [2025-01-05 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182810', 'tblTempUsageDetail_20' ) start [2025-01-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182810', 'tblTempUsageDetail_20' ) end [2025-01-05 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:57:21] Production.INFO: ==30836== Releasing lock... [2025-01-05 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:58:04 [end_date_ymd] => 2025-01-05 20:58:04 [RateCDR] => 1 ) [2025-01-05 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:58:04' and `end` < '2025-01-05 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:58:17] Production.INFO: count ==870 [2025-01-05 20:58:17] Production.ERROR: pbx CDR StartTime 2025-01-05 17:58:04 - End Time 2025-01-05 20:58:04 [2025-01-05 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182815', 'tblTempUsageDetail_20' ) start [2025-01-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182815', 'tblTempUsageDetail_20' ) end [2025-01-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182815', 'tblTempVendorCDR_20' ) start [2025-01-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182815', 'tblTempVendorCDR_20' ) end [2025-01-05 20:58:17] Production.INFO: ProcessCDR(1,14182815,1,1,2) [2025-01-05 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182815', 'tblTempUsageDetail_20' ) start [2025-01-05 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182815', 'tblTempUsageDetail_20' ) end [2025-01-05 20:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:58:20] Production.INFO: ==30927== Releasing lock... [2025-01-05 20:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:58:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 17:59:05 [end_date_ymd] => 2025-01-05 20:59:05 [RateCDR] => 1 ) [2025-01-05 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 17:59:05' and `end` < '2025-01-05 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 20:59:18] Production.INFO: count ==869 [2025-01-05 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 17:59:05 - End Time 2025-01-05 20:59:05 [2025-01-05 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182820', 'tblTempUsageDetail_20' ) start [2025-01-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182820', 'tblTempUsageDetail_20' ) end [2025-01-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182820', 'tblTempVendorCDR_20' ) start [2025-01-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182820', 'tblTempVendorCDR_20' ) end [2025-01-05 20:59:18] Production.INFO: ProcessCDR(1,14182820,1,1,2) [2025-01-05 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182820', 'tblTempUsageDetail_20' ) start [2025-01-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182820', 'tblTempUsageDetail_20' ) end [2025-01-05 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 20:59:21] Production.INFO: ==31019== Releasing lock... [2025-01-05 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 20:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:00:05 [end_date_ymd] => 2025-01-05 21:00:05 [RateCDR] => 1 ) [2025-01-05 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:00:05' and `end` < '2025-01-05 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:00:18] Production.INFO: count ==868 [2025-01-05 21:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:00:05 - End Time 2025-01-05 21:00:05 [2025-01-05 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182826', 'tblTempUsageDetail_20' ) start [2025-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182826', 'tblTempUsageDetail_20' ) end [2025-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182826', 'tblTempVendorCDR_20' ) start [2025-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182826', 'tblTempVendorCDR_20' ) end [2025-01-05 21:00:18] Production.INFO: ProcessCDR(1,14182826,1,1,2) [2025-01-05 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182826', 'tblTempUsageDetail_20' ) start [2025-01-05 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182826', 'tblTempUsageDetail_20' ) end [2025-01-05 21:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:00:21] Production.INFO: ==31107== Releasing lock... [2025-01-05 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:00:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:01:04 [end_date_ymd] => 2025-01-05 21:01:04 [RateCDR] => 1 ) [2025-01-05 21:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:01:04' and `end` < '2025-01-05 21:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:01:17] Production.INFO: count ==847 [2025-01-05 21:01:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:01:04 - End Time 2025-01-05 21:01:04 [2025-01-05 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182831', 'tblTempUsageDetail_20' ) start [2025-01-05 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182831', 'tblTempUsageDetail_20' ) end [2025-01-05 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182831', 'tblTempVendorCDR_20' ) start [2025-01-05 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182831', 'tblTempVendorCDR_20' ) end [2025-01-05 21:01:17] Production.INFO: ProcessCDR(1,14182831,1,1,2) [2025-01-05 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182831', 'tblTempUsageDetail_20' ) start [2025-01-05 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182831', 'tblTempUsageDetail_20' ) end [2025-01-05 21:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:01:20] Production.INFO: ==31209== Releasing lock... [2025-01-05 21:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:01:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:02:05 [end_date_ymd] => 2025-01-05 21:02:05 [RateCDR] => 1 ) [2025-01-05 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:02:05' and `end` < '2025-01-05 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:02:19] Production.INFO: count ==844 [2025-01-05 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:02:05 - End Time 2025-01-05 21:02:05 [2025-01-05 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182836', 'tblTempUsageDetail_20' ) start [2025-01-05 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182836', 'tblTempUsageDetail_20' ) end [2025-01-05 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182836', 'tblTempVendorCDR_20' ) start [2025-01-05 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182836', 'tblTempVendorCDR_20' ) end [2025-01-05 21:02:19] Production.INFO: ProcessCDR(1,14182836,1,1,2) [2025-01-05 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182836', 'tblTempUsageDetail_20' ) start [2025-01-05 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182836', 'tblTempUsageDetail_20' ) end [2025-01-05 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:02:23] Production.INFO: ==31291== Releasing lock... [2025-01-05 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:03:04 [end_date_ymd] => 2025-01-05 21:03:04 [RateCDR] => 1 ) [2025-01-05 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:03:04' and `end` < '2025-01-05 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:03:18] Production.INFO: count ==842 [2025-01-05 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:03:04 - End Time 2025-01-05 21:03:04 [2025-01-05 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182841', 'tblTempUsageDetail_20' ) start [2025-01-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182841', 'tblTempUsageDetail_20' ) end [2025-01-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182841', 'tblTempVendorCDR_20' ) start [2025-01-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182841', 'tblTempVendorCDR_20' ) end [2025-01-05 21:03:18] Production.INFO: ProcessCDR(1,14182841,1,1,2) [2025-01-05 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182841', 'tblTempUsageDetail_20' ) start [2025-01-05 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182841', 'tblTempUsageDetail_20' ) end [2025-01-05 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:03:21] Production.INFO: ==31373== Releasing lock... [2025-01-05 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:04:06 [end_date_ymd] => 2025-01-05 21:04:06 [RateCDR] => 1 ) [2025-01-05 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:04:06' and `end` < '2025-01-05 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:04:20] Production.INFO: count ==841 [2025-01-05 21:04:20] Production.ERROR: pbx CDR StartTime 2025-01-05 18:04:06 - End Time 2025-01-05 21:04:06 [2025-01-05 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182846', 'tblTempUsageDetail_20' ) start [2025-01-05 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182846', 'tblTempUsageDetail_20' ) end [2025-01-05 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182846', 'tblTempVendorCDR_20' ) start [2025-01-05 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182846', 'tblTempVendorCDR_20' ) end [2025-01-05 21:04:20] Production.INFO: ProcessCDR(1,14182846,1,1,2) [2025-01-05 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182846', 'tblTempUsageDetail_20' ) start [2025-01-05 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182846', 'tblTempUsageDetail_20' ) end [2025-01-05 21:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:04:25] Production.INFO: ==31453== Releasing lock... [2025-01-05 21:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:04:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:05:04 [end_date_ymd] => 2025-01-05 21:05:04 [RateCDR] => 1 ) [2025-01-05 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:05:04' and `end` < '2025-01-05 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:05:17] Production.INFO: count ==841 [2025-01-05 21:05:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:05:04 - End Time 2025-01-05 21:05:04 [2025-01-05 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182850', 'tblTempUsageDetail_20' ) start [2025-01-05 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182850', 'tblTempUsageDetail_20' ) end [2025-01-05 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182850', 'tblTempVendorCDR_20' ) start [2025-01-05 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182850', 'tblTempVendorCDR_20' ) end [2025-01-05 21:05:17] Production.INFO: ProcessCDR(1,14182850,1,1,2) [2025-01-05 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182850', 'tblTempUsageDetail_20' ) start [2025-01-05 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182850', 'tblTempUsageDetail_20' ) end [2025-01-05 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:05:22] Production.INFO: ==31533== Releasing lock... [2025-01-05 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:06:05 [end_date_ymd] => 2025-01-05 21:06:05 [RateCDR] => 1 ) [2025-01-05 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:06:05' and `end` < '2025-01-05 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:06:21] Production.INFO: count ==841 [2025-01-05 21:06:21] Production.ERROR: pbx CDR StartTime 2025-01-05 18:06:05 - End Time 2025-01-05 21:06:05 [2025-01-05 21:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182856', 'tblTempUsageDetail_20' ) start [2025-01-05 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182856', 'tblTempUsageDetail_20' ) end [2025-01-05 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182856', 'tblTempVendorCDR_20' ) start [2025-01-05 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182856', 'tblTempVendorCDR_20' ) end [2025-01-05 21:06:21] Production.INFO: ProcessCDR(1,14182856,1,1,2) [2025-01-05 21:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182856', 'tblTempUsageDetail_20' ) start [2025-01-05 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182856', 'tblTempUsageDetail_20' ) end [2025-01-05 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:06:24] Production.INFO: ==31614== Releasing lock... [2025-01-05 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:06:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:07:04 [end_date_ymd] => 2025-01-05 21:07:04 [RateCDR] => 1 ) [2025-01-05 21:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:07:04' and `end` < '2025-01-05 21:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:07:17] Production.INFO: count ==841 [2025-01-05 21:07:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:07:04 - End Time 2025-01-05 21:07:04 [2025-01-05 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182861', 'tblTempUsageDetail_20' ) start [2025-01-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182861', 'tblTempUsageDetail_20' ) end [2025-01-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182861', 'tblTempVendorCDR_20' ) start [2025-01-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182861', 'tblTempVendorCDR_20' ) end [2025-01-05 21:07:17] Production.INFO: ProcessCDR(1,14182861,1,1,2) [2025-01-05 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182861', 'tblTempUsageDetail_20' ) start [2025-01-05 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182861', 'tblTempUsageDetail_20' ) end [2025-01-05 21:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:07:20] Production.INFO: ==31694== Releasing lock... [2025-01-05 21:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:07:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:08:05 [end_date_ymd] => 2025-01-05 21:08:05 [RateCDR] => 1 ) [2025-01-05 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:08:05' and `end` < '2025-01-05 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:08:17] Production.INFO: count ==840 [2025-01-05 21:08:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:08:05 - End Time 2025-01-05 21:08:05 [2025-01-05 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182866', 'tblTempUsageDetail_20' ) start [2025-01-05 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182866', 'tblTempUsageDetail_20' ) end [2025-01-05 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182866', 'tblTempVendorCDR_20' ) start [2025-01-05 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182866', 'tblTempVendorCDR_20' ) end [2025-01-05 21:08:17] Production.INFO: ProcessCDR(1,14182866,1,1,2) [2025-01-05 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182866', 'tblTempUsageDetail_20' ) start [2025-01-05 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182866', 'tblTempUsageDetail_20' ) end [2025-01-05 21:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:08:20] Production.INFO: ==31771== Releasing lock... [2025-01-05 21:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:08:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:09:05 [end_date_ymd] => 2025-01-05 21:09:05 [RateCDR] => 1 ) [2025-01-05 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:09:05' and `end` < '2025-01-05 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:09:18] Production.INFO: count ==841 [2025-01-05 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:09:05 - End Time 2025-01-05 21:09:05 [2025-01-05 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182871', 'tblTempUsageDetail_20' ) start [2025-01-05 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182871', 'tblTempUsageDetail_20' ) end [2025-01-05 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182871', 'tblTempVendorCDR_20' ) start [2025-01-05 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182871', 'tblTempVendorCDR_20' ) end [2025-01-05 21:09:18] Production.INFO: ProcessCDR(1,14182871,1,1,2) [2025-01-05 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182871', 'tblTempUsageDetail_20' ) start [2025-01-05 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182871', 'tblTempUsageDetail_20' ) end [2025-01-05 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:09:22] Production.INFO: ==31847== Releasing lock... [2025-01-05 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:10:06 [end_date_ymd] => 2025-01-05 21:10:06 [RateCDR] => 1 ) [2025-01-05 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:10:06' and `end` < '2025-01-05 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:10:19] Production.INFO: count ==836 [2025-01-05 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:10:06 - End Time 2025-01-05 21:10:06 [2025-01-05 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182877', 'tblTempUsageDetail_20' ) start [2025-01-05 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182877', 'tblTempUsageDetail_20' ) end [2025-01-05 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182877', 'tblTempVendorCDR_20' ) start [2025-01-05 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182877', 'tblTempVendorCDR_20' ) end [2025-01-05 21:10:19] Production.INFO: ProcessCDR(1,14182877,1,1,2) [2025-01-05 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182877', 'tblTempUsageDetail_20' ) start [2025-01-05 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182877', 'tblTempUsageDetail_20' ) end [2025-01-05 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:10:22] Production.INFO: ==31928== Releasing lock... [2025-01-05 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:11:06 [end_date_ymd] => 2025-01-05 21:11:06 [RateCDR] => 1 ) [2025-01-05 21:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:11:06' and `end` < '2025-01-05 21:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:11:18] Production.INFO: count ==800 [2025-01-05 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:11:06 - End Time 2025-01-05 21:11:06 [2025-01-05 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182882', 'tblTempUsageDetail_20' ) start [2025-01-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182882', 'tblTempUsageDetail_20' ) end [2025-01-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182882', 'tblTempVendorCDR_20' ) start [2025-01-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182882', 'tblTempVendorCDR_20' ) end [2025-01-05 21:11:19] Production.INFO: ProcessCDR(1,14182882,1,1,2) [2025-01-05 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182882', 'tblTempUsageDetail_20' ) start [2025-01-05 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182882', 'tblTempUsageDetail_20' ) end [2025-01-05 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:11:22] Production.INFO: ==32006== Releasing lock... [2025-01-05 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:12:05 [end_date_ymd] => 2025-01-05 21:12:05 [RateCDR] => 1 ) [2025-01-05 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:12:05' and `end` < '2025-01-05 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:12:19] Production.INFO: count ==800 [2025-01-05 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:12:05 - End Time 2025-01-05 21:12:05 [2025-01-05 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182887', 'tblTempUsageDetail_20' ) start [2025-01-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182887', 'tblTempUsageDetail_20' ) end [2025-01-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182887', 'tblTempVendorCDR_20' ) start [2025-01-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182887', 'tblTempVendorCDR_20' ) end [2025-01-05 21:12:19] Production.INFO: ProcessCDR(1,14182887,1,1,2) [2025-01-05 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182887', 'tblTempUsageDetail_20' ) start [2025-01-05 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182887', 'tblTempUsageDetail_20' ) end [2025-01-05 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:12:23] Production.INFO: ==32087== Releasing lock... [2025-01-05 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:13:05 [end_date_ymd] => 2025-01-05 21:13:05 [RateCDR] => 1 ) [2025-01-05 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:13:05' and `end` < '2025-01-05 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:13:19] Production.INFO: count ==800 [2025-01-05 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:13:05 - End Time 2025-01-05 21:13:05 [2025-01-05 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182892', 'tblTempUsageDetail_20' ) start [2025-01-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182892', 'tblTempUsageDetail_20' ) end [2025-01-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182892', 'tblTempVendorCDR_20' ) start [2025-01-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182892', 'tblTempVendorCDR_20' ) end [2025-01-05 21:13:19] Production.INFO: ProcessCDR(1,14182892,1,1,2) [2025-01-05 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182892', 'tblTempUsageDetail_20' ) start [2025-01-05 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182892', 'tblTempUsageDetail_20' ) end [2025-01-05 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:13:22] Production.INFO: ==32206== Releasing lock... [2025-01-05 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:14:05 [end_date_ymd] => 2025-01-05 21:14:05 [RateCDR] => 1 ) [2025-01-05 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:14:05' and `end` < '2025-01-05 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:14:19] Production.INFO: count ==800 [2025-01-05 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:14:05 - End Time 2025-01-05 21:14:05 [2025-01-05 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182897', 'tblTempUsageDetail_20' ) start [2025-01-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182897', 'tblTempUsageDetail_20' ) end [2025-01-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182897', 'tblTempVendorCDR_20' ) start [2025-01-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182897', 'tblTempVendorCDR_20' ) end [2025-01-05 21:14:19] Production.INFO: ProcessCDR(1,14182897,1,1,2) [2025-01-05 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182897', 'tblTempUsageDetail_20' ) start [2025-01-05 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182897', 'tblTempUsageDetail_20' ) end [2025-01-05 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:14:22] Production.INFO: ==32286== Releasing lock... [2025-01-05 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:15:05 [end_date_ymd] => 2025-01-05 21:15:05 [RateCDR] => 1 ) [2025-01-05 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:15:05' and `end` < '2025-01-05 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:15:18] Production.INFO: count ==797 [2025-01-05 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:15:05 - End Time 2025-01-05 21:15:05 [2025-01-05 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182902', 'tblTempUsageDetail_20' ) start [2025-01-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182902', 'tblTempUsageDetail_20' ) end [2025-01-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182902', 'tblTempVendorCDR_20' ) start [2025-01-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182902', 'tblTempVendorCDR_20' ) end [2025-01-05 21:15:18] Production.INFO: ProcessCDR(1,14182902,1,1,2) [2025-01-05 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182902', 'tblTempUsageDetail_20' ) start [2025-01-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182902', 'tblTempUsageDetail_20' ) end [2025-01-05 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:15:21] Production.INFO: ==32367== Releasing lock... [2025-01-05 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:16:05 [end_date_ymd] => 2025-01-05 21:16:05 [RateCDR] => 1 ) [2025-01-05 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:16:05' and `end` < '2025-01-05 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:16:17] Production.INFO: count ==798 [2025-01-05 21:16:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:16:05 - End Time 2025-01-05 21:16:05 [2025-01-05 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182907', 'tblTempUsageDetail_20' ) start [2025-01-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182907', 'tblTempUsageDetail_20' ) end [2025-01-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182907', 'tblTempVendorCDR_20' ) start [2025-01-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182907', 'tblTempVendorCDR_20' ) end [2025-01-05 21:16:17] Production.INFO: ProcessCDR(1,14182907,1,1,2) [2025-01-05 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182907', 'tblTempUsageDetail_20' ) start [2025-01-05 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182907', 'tblTempUsageDetail_20' ) end [2025-01-05 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:16:22] Production.INFO: ==32447== Releasing lock... [2025-01-05 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:17:05 [end_date_ymd] => 2025-01-05 21:17:05 [RateCDR] => 1 ) [2025-01-05 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:17:05' and `end` < '2025-01-05 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:17:18] Production.INFO: count ==797 [2025-01-05 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:17:05 - End Time 2025-01-05 21:17:05 [2025-01-05 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182912', 'tblTempUsageDetail_20' ) start [2025-01-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182912', 'tblTempUsageDetail_20' ) end [2025-01-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182912', 'tblTempVendorCDR_20' ) start [2025-01-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182912', 'tblTempVendorCDR_20' ) end [2025-01-05 21:17:18] Production.INFO: ProcessCDR(1,14182912,1,1,2) [2025-01-05 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182912', 'tblTempUsageDetail_20' ) start [2025-01-05 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182912', 'tblTempUsageDetail_20' ) end [2025-01-05 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:17:21] Production.INFO: ==32525== Releasing lock... [2025-01-05 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:18:05 [end_date_ymd] => 2025-01-05 21:18:05 [RateCDR] => 1 ) [2025-01-05 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:18:05' and `end` < '2025-01-05 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:18:19] Production.INFO: count ==797 [2025-01-05 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:18:05 - End Time 2025-01-05 21:18:05 [2025-01-05 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182917', 'tblTempUsageDetail_20' ) start [2025-01-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182917', 'tblTempUsageDetail_20' ) end [2025-01-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182917', 'tblTempVendorCDR_20' ) start [2025-01-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182917', 'tblTempVendorCDR_20' ) end [2025-01-05 21:18:19] Production.INFO: ProcessCDR(1,14182917,1,1,2) [2025-01-05 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182917', 'tblTempUsageDetail_20' ) start [2025-01-05 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182917', 'tblTempUsageDetail_20' ) end [2025-01-05 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:18:22] Production.INFO: ==32605== Releasing lock... [2025-01-05 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:19:05 [end_date_ymd] => 2025-01-05 21:19:05 [RateCDR] => 1 ) [2025-01-05 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:19:05' and `end` < '2025-01-05 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:19:17] Production.INFO: count ==800 [2025-01-05 21:19:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:19:05 - End Time 2025-01-05 21:19:05 [2025-01-05 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182922', 'tblTempUsageDetail_20' ) start [2025-01-05 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182922', 'tblTempUsageDetail_20' ) end [2025-01-05 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182922', 'tblTempVendorCDR_20' ) start [2025-01-05 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182922', 'tblTempVendorCDR_20' ) end [2025-01-05 21:19:17] Production.INFO: ProcessCDR(1,14182922,1,1,2) [2025-01-05 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182922', 'tblTempUsageDetail_20' ) start [2025-01-05 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182922', 'tblTempUsageDetail_20' ) end [2025-01-05 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:19:21] Production.INFO: ==32686== Releasing lock... [2025-01-05 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:20:06 [end_date_ymd] => 2025-01-05 21:20:06 [RateCDR] => 1 ) [2025-01-05 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:20:06' and `end` < '2025-01-05 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:20:19] Production.INFO: count ==797 [2025-01-05 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:20:06 - End Time 2025-01-05 21:20:06 [2025-01-05 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182928', 'tblTempUsageDetail_20' ) start [2025-01-05 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182928', 'tblTempUsageDetail_20' ) end [2025-01-05 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182928', 'tblTempVendorCDR_20' ) start [2025-01-05 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182928', 'tblTempVendorCDR_20' ) end [2025-01-05 21:20:19] Production.INFO: ProcessCDR(1,14182928,1,1,2) [2025-01-05 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182928', 'tblTempUsageDetail_20' ) start [2025-01-05 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182928', 'tblTempUsageDetail_20' ) end [2025-01-05 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:20:22] Production.INFO: ==302== Releasing lock... [2025-01-05 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:21:05 [end_date_ymd] => 2025-01-05 21:21:05 [RateCDR] => 1 ) [2025-01-05 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:21:05' and `end` < '2025-01-05 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:21:18] Production.INFO: count ==765 [2025-01-05 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:21:05 - End Time 2025-01-05 21:21:05 [2025-01-05 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182933', 'tblTempUsageDetail_20' ) start [2025-01-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182933', 'tblTempUsageDetail_20' ) end [2025-01-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182933', 'tblTempVendorCDR_20' ) start [2025-01-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182933', 'tblTempVendorCDR_20' ) end [2025-01-05 21:21:18] Production.INFO: ProcessCDR(1,14182933,1,1,2) [2025-01-05 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182933', 'tblTempUsageDetail_20' ) start [2025-01-05 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182933', 'tblTempUsageDetail_20' ) end [2025-01-05 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:21:21] Production.INFO: ==400== Releasing lock... [2025-01-05 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:21:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:22:05 [end_date_ymd] => 2025-01-05 21:22:05 [RateCDR] => 1 ) [2025-01-05 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:22:05' and `end` < '2025-01-05 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:22:18] Production.INFO: count ==768 [2025-01-05 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:22:05 - End Time 2025-01-05 21:22:05 [2025-01-05 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182938', 'tblTempUsageDetail_20' ) start [2025-01-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182938', 'tblTempUsageDetail_20' ) end [2025-01-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182938', 'tblTempVendorCDR_20' ) start [2025-01-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182938', 'tblTempVendorCDR_20' ) end [2025-01-05 21:22:18] Production.INFO: ProcessCDR(1,14182938,1,1,2) [2025-01-05 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182938', 'tblTempUsageDetail_20' ) start [2025-01-05 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182938', 'tblTempUsageDetail_20' ) end [2025-01-05 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:22:22] Production.INFO: ==482== Releasing lock... [2025-01-05 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:22:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:23:04 [end_date_ymd] => 2025-01-05 21:23:04 [RateCDR] => 1 ) [2025-01-05 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:23:04' and `end` < '2025-01-05 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:23:17] Production.INFO: count ==768 [2025-01-05 21:23:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:23:04 - End Time 2025-01-05 21:23:04 [2025-01-05 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182943', 'tblTempUsageDetail_20' ) start [2025-01-05 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182943', 'tblTempUsageDetail_20' ) end [2025-01-05 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182943', 'tblTempVendorCDR_20' ) start [2025-01-05 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182943', 'tblTempVendorCDR_20' ) end [2025-01-05 21:23:17] Production.INFO: ProcessCDR(1,14182943,1,1,2) [2025-01-05 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182943', 'tblTempUsageDetail_20' ) start [2025-01-05 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182943', 'tblTempUsageDetail_20' ) end [2025-01-05 21:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:23:20] Production.INFO: ==563== Releasing lock... [2025-01-05 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:23:20] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:24:06 [end_date_ymd] => 2025-01-05 21:24:06 [RateCDR] => 1 ) [2025-01-05 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:24:06' and `end` < '2025-01-05 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:24:18] Production.INFO: count ==778 [2025-01-05 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:24:06 - End Time 2025-01-05 21:24:06 [2025-01-05 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182948', 'tblTempUsageDetail_20' ) start [2025-01-05 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182948', 'tblTempUsageDetail_20' ) end [2025-01-05 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182948', 'tblTempVendorCDR_20' ) start [2025-01-05 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182948', 'tblTempVendorCDR_20' ) end [2025-01-05 21:24:18] Production.INFO: ProcessCDR(1,14182948,1,1,2) [2025-01-05 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182948', 'tblTempUsageDetail_20' ) start [2025-01-05 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182948', 'tblTempUsageDetail_20' ) end [2025-01-05 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:24:22] Production.INFO: ==652== Releasing lock... [2025-01-05 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:24:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:25:05 [end_date_ymd] => 2025-01-05 21:25:05 [RateCDR] => 1 ) [2025-01-05 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:25:05' and `end` < '2025-01-05 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:25:18] Production.INFO: count ==778 [2025-01-05 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:25:05 - End Time 2025-01-05 21:25:05 [2025-01-05 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182953', 'tblTempUsageDetail_20' ) start [2025-01-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182953', 'tblTempUsageDetail_20' ) end [2025-01-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182953', 'tblTempVendorCDR_20' ) start [2025-01-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182953', 'tblTempVendorCDR_20' ) end [2025-01-05 21:25:18] Production.INFO: ProcessCDR(1,14182953,1,1,2) [2025-01-05 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182953', 'tblTempUsageDetail_20' ) start [2025-01-05 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182953', 'tblTempUsageDetail_20' ) end [2025-01-05 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:25:21] Production.INFO: ==757== Releasing lock... [2025-01-05 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:25:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:26:05 [end_date_ymd] => 2025-01-05 21:26:05 [RateCDR] => 1 ) [2025-01-05 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:26:05' and `end` < '2025-01-05 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:26:20] Production.INFO: count ==778 [2025-01-05 21:26:20] Production.ERROR: pbx CDR StartTime 2025-01-05 18:26:05 - End Time 2025-01-05 21:26:05 [2025-01-05 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182958', 'tblTempUsageDetail_20' ) start [2025-01-05 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182958', 'tblTempUsageDetail_20' ) end [2025-01-05 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182958', 'tblTempVendorCDR_20' ) start [2025-01-05 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182958', 'tblTempVendorCDR_20' ) end [2025-01-05 21:26:20] Production.INFO: ProcessCDR(1,14182958,1,1,2) [2025-01-05 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182958', 'tblTempUsageDetail_20' ) start [2025-01-05 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182958', 'tblTempUsageDetail_20' ) end [2025-01-05 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:26:23] Production.INFO: ==850== Releasing lock... [2025-01-05 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:26:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:27:05 [end_date_ymd] => 2025-01-05 21:27:05 [RateCDR] => 1 ) [2025-01-05 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:27:05' and `end` < '2025-01-05 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:27:18] Production.INFO: count ==777 [2025-01-05 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:27:05 - End Time 2025-01-05 21:27:05 [2025-01-05 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182963', 'tblTempUsageDetail_20' ) start [2025-01-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182963', 'tblTempUsageDetail_20' ) end [2025-01-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182963', 'tblTempVendorCDR_20' ) start [2025-01-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182963', 'tblTempVendorCDR_20' ) end [2025-01-05 21:27:18] Production.INFO: ProcessCDR(1,14182963,1,1,2) [2025-01-05 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182963', 'tblTempUsageDetail_20' ) start [2025-01-05 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182963', 'tblTempUsageDetail_20' ) end [2025-01-05 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:27:21] Production.INFO: ==931== Releasing lock... [2025-01-05 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:27:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:28:04 [end_date_ymd] => 2025-01-05 21:28:04 [RateCDR] => 1 ) [2025-01-05 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:28:04' and `end` < '2025-01-05 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:28:17] Production.INFO: count ==779 [2025-01-05 21:28:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:28:04 - End Time 2025-01-05 21:28:04 [2025-01-05 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182968', 'tblTempUsageDetail_20' ) start [2025-01-05 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182968', 'tblTempUsageDetail_20' ) end [2025-01-05 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182968', 'tblTempVendorCDR_20' ) start [2025-01-05 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182968', 'tblTempVendorCDR_20' ) end [2025-01-05 21:28:17] Production.INFO: ProcessCDR(1,14182968,1,1,2) [2025-01-05 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182968', 'tblTempUsageDetail_20' ) start [2025-01-05 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182968', 'tblTempUsageDetail_20' ) end [2025-01-05 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:28:21] Production.INFO: ==1010== Releasing lock... [2025-01-05 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:28:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:29:05 [end_date_ymd] => 2025-01-05 21:29:05 [RateCDR] => 1 ) [2025-01-05 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:29:05' and `end` < '2025-01-05 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:29:18] Production.INFO: count ==927 [2025-01-05 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:29:05 - End Time 2025-01-05 21:29:05 [2025-01-05 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182973', 'tblTempUsageDetail_20' ) start [2025-01-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182973', 'tblTempUsageDetail_20' ) end [2025-01-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182973', 'tblTempVendorCDR_20' ) start [2025-01-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182973', 'tblTempVendorCDR_20' ) end [2025-01-05 21:29:18] Production.INFO: ProcessCDR(1,14182973,1,1,2) [2025-01-05 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182973', 'tblTempUsageDetail_20' ) start [2025-01-05 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182973', 'tblTempUsageDetail_20' ) end [2025-01-05 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:29:22] Production.INFO: ==1128== Releasing lock... [2025-01-05 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:30:05 [end_date_ymd] => 2025-01-05 21:30:05 [RateCDR] => 1 ) [2025-01-05 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:30:05' and `end` < '2025-01-05 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:30:18] Production.INFO: count ==930 [2025-01-05 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:30:05 - End Time 2025-01-05 21:30:05 [2025-01-05 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182979', 'tblTempUsageDetail_20' ) start [2025-01-05 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182979', 'tblTempUsageDetail_20' ) end [2025-01-05 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182979', 'tblTempVendorCDR_20' ) start [2025-01-05 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182979', 'tblTempVendorCDR_20' ) end [2025-01-05 21:30:18] Production.INFO: ProcessCDR(1,14182979,1,1,2) [2025-01-05 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182979', 'tblTempUsageDetail_20' ) start [2025-01-05 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182979', 'tblTempUsageDetail_20' ) end [2025-01-05 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:30:23] Production.INFO: ==1217== Releasing lock... [2025-01-05 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:30:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:31:05 [end_date_ymd] => 2025-01-05 21:31:05 [RateCDR] => 1 ) [2025-01-05 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:31:05' and `end` < '2025-01-05 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:31:20] Production.INFO: count ==924 [2025-01-05 21:31:21] Production.ERROR: pbx CDR StartTime 2025-01-05 18:31:05 - End Time 2025-01-05 21:31:05 [2025-01-05 21:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182984', 'tblTempUsageDetail_20' ) start [2025-01-05 21:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182984', 'tblTempUsageDetail_20' ) end [2025-01-05 21:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182984', 'tblTempVendorCDR_20' ) start [2025-01-05 21:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182984', 'tblTempVendorCDR_20' ) end [2025-01-05 21:31:21] Production.INFO: ProcessCDR(1,14182984,1,1,2) [2025-01-05 21:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182984', 'tblTempUsageDetail_20' ) start [2025-01-05 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182984', 'tblTempUsageDetail_20' ) end [2025-01-05 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:31:24] Production.INFO: ==1309== Releasing lock... [2025-01-05 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:31:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:32:04 [end_date_ymd] => 2025-01-05 21:32:04 [RateCDR] => 1 ) [2025-01-05 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:32:04' and `end` < '2025-01-05 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:32:19] Production.INFO: count ==924 [2025-01-05 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:32:04 - End Time 2025-01-05 21:32:04 [2025-01-05 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182989', 'tblTempUsageDetail_20' ) start [2025-01-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182989', 'tblTempUsageDetail_20' ) end [2025-01-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182989', 'tblTempVendorCDR_20' ) start [2025-01-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182989', 'tblTempVendorCDR_20' ) end [2025-01-05 21:32:19] Production.INFO: ProcessCDR(1,14182989,1,1,2) [2025-01-05 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182989', 'tblTempUsageDetail_20' ) start [2025-01-05 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182989', 'tblTempUsageDetail_20' ) end [2025-01-05 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:32:22] Production.INFO: ==1391== Releasing lock... [2025-01-05 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:33:05 [end_date_ymd] => 2025-01-05 21:33:05 [RateCDR] => 1 ) [2025-01-05 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:33:05' and `end` < '2025-01-05 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:33:18] Production.INFO: count ==924 [2025-01-05 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:33:05 - End Time 2025-01-05 21:33:05 [2025-01-05 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182994', 'tblTempUsageDetail_20' ) start [2025-01-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182994', 'tblTempUsageDetail_20' ) end [2025-01-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182994', 'tblTempVendorCDR_20' ) start [2025-01-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182994', 'tblTempVendorCDR_20' ) end [2025-01-05 21:33:19] Production.INFO: ProcessCDR(1,14182994,1,1,2) [2025-01-05 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182994', 'tblTempUsageDetail_20' ) start [2025-01-05 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182994', 'tblTempUsageDetail_20' ) end [2025-01-05 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:33:22] Production.INFO: ==1470== Releasing lock... [2025-01-05 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:34:05 [end_date_ymd] => 2025-01-05 21:34:05 [RateCDR] => 1 ) [2025-01-05 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:34:05' and `end` < '2025-01-05 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:34:18] Production.INFO: count ==926 [2025-01-05 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:34:05 - End Time 2025-01-05 21:34:05 [2025-01-05 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182999', 'tblTempUsageDetail_20' ) start [2025-01-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14182999', 'tblTempUsageDetail_20' ) end [2025-01-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182999', 'tblTempVendorCDR_20' ) start [2025-01-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14182999', 'tblTempVendorCDR_20' ) end [2025-01-05 21:34:18] Production.INFO: ProcessCDR(1,14182999,1,1,2) [2025-01-05 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14182999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14182999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14182999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14182999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182999', 'tblTempUsageDetail_20' ) start [2025-01-05 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14182999', 'tblTempUsageDetail_20' ) end [2025-01-05 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:34:23] Production.INFO: ==1587== Releasing lock... [2025-01-05 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:34:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:35:05 [end_date_ymd] => 2025-01-05 21:35:05 [RateCDR] => 1 ) [2025-01-05 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:35:05' and `end` < '2025-01-05 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:35:18] Production.INFO: count ==926 [2025-01-05 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:35:05 - End Time 2025-01-05 21:35:05 [2025-01-05 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183004', 'tblTempUsageDetail_20' ) start [2025-01-05 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183004', 'tblTempUsageDetail_20' ) end [2025-01-05 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183004', 'tblTempVendorCDR_20' ) start [2025-01-05 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183004', 'tblTempVendorCDR_20' ) end [2025-01-05 21:35:18] Production.INFO: ProcessCDR(1,14183004,1,1,2) [2025-01-05 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183004', 'tblTempUsageDetail_20' ) start [2025-01-05 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183004', 'tblTempUsageDetail_20' ) end [2025-01-05 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:35:21] Production.INFO: ==1670== Releasing lock... [2025-01-05 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:36:05 [end_date_ymd] => 2025-01-05 21:36:05 [RateCDR] => 1 ) [2025-01-05 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:36:05' and `end` < '2025-01-05 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:36:18] Production.INFO: count ==926 [2025-01-05 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:36:05 - End Time 2025-01-05 21:36:05 [2025-01-05 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183009', 'tblTempUsageDetail_20' ) start [2025-01-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183009', 'tblTempUsageDetail_20' ) end [2025-01-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183009', 'tblTempVendorCDR_20' ) start [2025-01-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183009', 'tblTempVendorCDR_20' ) end [2025-01-05 21:36:18] Production.INFO: ProcessCDR(1,14183009,1,1,2) [2025-01-05 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183009', 'tblTempUsageDetail_20' ) start [2025-01-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183009', 'tblTempUsageDetail_20' ) end [2025-01-05 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:36:21] Production.INFO: ==1748== Releasing lock... [2025-01-05 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:36:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:37:05 [end_date_ymd] => 2025-01-05 21:37:05 [RateCDR] => 1 ) [2025-01-05 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:37:05' and `end` < '2025-01-05 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:37:18] Production.INFO: count ==928 [2025-01-05 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:37:05 - End Time 2025-01-05 21:37:05 [2025-01-05 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183014', 'tblTempUsageDetail_20' ) start [2025-01-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183014', 'tblTempUsageDetail_20' ) end [2025-01-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183014', 'tblTempVendorCDR_20' ) start [2025-01-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183014', 'tblTempVendorCDR_20' ) end [2025-01-05 21:37:18] Production.INFO: ProcessCDR(1,14183014,1,1,2) [2025-01-05 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183014', 'tblTempUsageDetail_20' ) start [2025-01-05 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183014', 'tblTempUsageDetail_20' ) end [2025-01-05 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:37:21] Production.INFO: ==1833== Releasing lock... [2025-01-05 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:38:05 [end_date_ymd] => 2025-01-05 21:38:05 [RateCDR] => 1 ) [2025-01-05 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:38:05' and `end` < '2025-01-05 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:38:18] Production.INFO: count ==930 [2025-01-05 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:38:05 - End Time 2025-01-05 21:38:05 [2025-01-05 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183019', 'tblTempUsageDetail_20' ) start [2025-01-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183019', 'tblTempUsageDetail_20' ) end [2025-01-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183019', 'tblTempVendorCDR_20' ) start [2025-01-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183019', 'tblTempVendorCDR_20' ) end [2025-01-05 21:38:18] Production.INFO: ProcessCDR(1,14183019,1,1,2) [2025-01-05 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183019', 'tblTempUsageDetail_20' ) start [2025-01-05 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183019', 'tblTempUsageDetail_20' ) end [2025-01-05 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:38:23] Production.INFO: ==1911== Releasing lock... [2025-01-05 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:38:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:39:04 [end_date_ymd] => 2025-01-05 21:39:04 [RateCDR] => 1 ) [2025-01-05 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:39:04' and `end` < '2025-01-05 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:39:17] Production.INFO: count ==930 [2025-01-05 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:39:04 - End Time 2025-01-05 21:39:04 [2025-01-05 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183021', 'tblTempUsageDetail_20' ) start [2025-01-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183021', 'tblTempUsageDetail_20' ) end [2025-01-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183021', 'tblTempVendorCDR_20' ) start [2025-01-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183021', 'tblTempVendorCDR_20' ) end [2025-01-05 21:39:17] Production.INFO: ProcessCDR(1,14183021,1,1,2) [2025-01-05 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183021', 'tblTempUsageDetail_20' ) start [2025-01-05 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183021', 'tblTempUsageDetail_20' ) end [2025-01-05 21:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:39:20] Production.INFO: ==1987== Releasing lock... [2025-01-05 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:39:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:40:06 [end_date_ymd] => 2025-01-05 21:40:06 [RateCDR] => 1 ) [2025-01-05 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:40:06' and `end` < '2025-01-05 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:40:19] Production.INFO: count ==930 [2025-01-05 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:40:06 - End Time 2025-01-05 21:40:06 [2025-01-05 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183030', 'tblTempUsageDetail_20' ) start [2025-01-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183030', 'tblTempUsageDetail_20' ) end [2025-01-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183030', 'tblTempVendorCDR_20' ) start [2025-01-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183030', 'tblTempVendorCDR_20' ) end [2025-01-05 21:40:19] Production.INFO: ProcessCDR(1,14183030,1,1,2) [2025-01-05 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183030', 'tblTempUsageDetail_20' ) start [2025-01-05 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183030', 'tblTempUsageDetail_20' ) end [2025-01-05 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:40:22] Production.INFO: ==2073== Releasing lock... [2025-01-05 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:40:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:41:05 [end_date_ymd] => 2025-01-05 21:41:05 [RateCDR] => 1 ) [2025-01-05 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:41:05' and `end` < '2025-01-05 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:41:19] Production.INFO: count ==907 [2025-01-05 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:41:05 - End Time 2025-01-05 21:41:05 [2025-01-05 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183035', 'tblTempUsageDetail_20' ) start [2025-01-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183035', 'tblTempUsageDetail_20' ) end [2025-01-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183035', 'tblTempVendorCDR_20' ) start [2025-01-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183035', 'tblTempVendorCDR_20' ) end [2025-01-05 21:41:19] Production.INFO: ProcessCDR(1,14183035,1,1,2) [2025-01-05 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183035', 'tblTempUsageDetail_20' ) start [2025-01-05 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183035', 'tblTempUsageDetail_20' ) end [2025-01-05 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:41:22] Production.INFO: ==2151== Releasing lock... [2025-01-05 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:41:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:42:05 [end_date_ymd] => 2025-01-05 21:42:05 [RateCDR] => 1 ) [2025-01-05 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:42:05' and `end` < '2025-01-05 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:42:18] Production.INFO: count ==906 [2025-01-05 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:42:05 - End Time 2025-01-05 21:42:05 [2025-01-05 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183040', 'tblTempUsageDetail_20' ) start [2025-01-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183040', 'tblTempUsageDetail_20' ) end [2025-01-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183040', 'tblTempVendorCDR_20' ) start [2025-01-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183040', 'tblTempVendorCDR_20' ) end [2025-01-05 21:42:18] Production.INFO: ProcessCDR(1,14183040,1,1,2) [2025-01-05 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183040', 'tblTempUsageDetail_20' ) start [2025-01-05 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183040', 'tblTempUsageDetail_20' ) end [2025-01-05 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:42:21] Production.INFO: ==2232== Releasing lock... [2025-01-05 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:43:04 [end_date_ymd] => 2025-01-05 21:43:04 [RateCDR] => 1 ) [2025-01-05 21:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:43:04' and `end` < '2025-01-05 21:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:43:18] Production.INFO: count ==906 [2025-01-05 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:43:04 - End Time 2025-01-05 21:43:04 [2025-01-05 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183045', 'tblTempUsageDetail_20' ) start [2025-01-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183045', 'tblTempUsageDetail_20' ) end [2025-01-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183045', 'tblTempVendorCDR_20' ) start [2025-01-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183045', 'tblTempVendorCDR_20' ) end [2025-01-05 21:43:18] Production.INFO: ProcessCDR(1,14183045,1,1,2) [2025-01-05 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183045', 'tblTempUsageDetail_20' ) start [2025-01-05 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183045', 'tblTempUsageDetail_20' ) end [2025-01-05 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:43:21] Production.INFO: ==2309== Releasing lock... [2025-01-05 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:43:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:44:05 [end_date_ymd] => 2025-01-05 21:44:05 [RateCDR] => 1 ) [2025-01-05 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:44:05' and `end` < '2025-01-05 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:44:18] Production.INFO: count ==906 [2025-01-05 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:44:05 - End Time 2025-01-05 21:44:05 [2025-01-05 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183050', 'tblTempUsageDetail_20' ) start [2025-01-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183050', 'tblTempUsageDetail_20' ) end [2025-01-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183050', 'tblTempVendorCDR_20' ) start [2025-01-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183050', 'tblTempVendorCDR_20' ) end [2025-01-05 21:44:18] Production.INFO: ProcessCDR(1,14183050,1,1,2) [2025-01-05 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183050', 'tblTempUsageDetail_20' ) start [2025-01-05 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183050', 'tblTempUsageDetail_20' ) end [2025-01-05 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:44:21] Production.INFO: ==2425== Releasing lock... [2025-01-05 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:44:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:45:05 [end_date_ymd] => 2025-01-05 21:45:05 [RateCDR] => 1 ) [2025-01-05 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:45:05' and `end` < '2025-01-05 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:45:18] Production.INFO: count ==916 [2025-01-05 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:45:05 - End Time 2025-01-05 21:45:05 [2025-01-05 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183055', 'tblTempUsageDetail_20' ) start [2025-01-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183055', 'tblTempUsageDetail_20' ) end [2025-01-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183055', 'tblTempVendorCDR_20' ) start [2025-01-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183055', 'tblTempVendorCDR_20' ) end [2025-01-05 21:45:18] Production.INFO: ProcessCDR(1,14183055,1,1,2) [2025-01-05 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183055', 'tblTempUsageDetail_20' ) start [2025-01-05 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183055', 'tblTempUsageDetail_20' ) end [2025-01-05 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:45:21] Production.INFO: ==2503== Releasing lock... [2025-01-05 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:46:05 [end_date_ymd] => 2025-01-05 21:46:05 [RateCDR] => 1 ) [2025-01-05 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:46:05' and `end` < '2025-01-05 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:46:19] Production.INFO: count ==916 [2025-01-05 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:46:05 - End Time 2025-01-05 21:46:05 [2025-01-05 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183060', 'tblTempUsageDetail_20' ) start [2025-01-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183060', 'tblTempUsageDetail_20' ) end [2025-01-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183060', 'tblTempVendorCDR_20' ) start [2025-01-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183060', 'tblTempVendorCDR_20' ) end [2025-01-05 21:46:19] Production.INFO: ProcessCDR(1,14183060,1,1,2) [2025-01-05 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183060', 'tblTempUsageDetail_20' ) start [2025-01-05 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183060', 'tblTempUsageDetail_20' ) end [2025-01-05 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:46:22] Production.INFO: ==2579== Releasing lock... [2025-01-05 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:46:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:47:05 [end_date_ymd] => 2025-01-05 21:47:05 [RateCDR] => 1 ) [2025-01-05 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:47:05' and `end` < '2025-01-05 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:47:18] Production.INFO: count ==915 [2025-01-05 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:47:05 - End Time 2025-01-05 21:47:05 [2025-01-05 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183065', 'tblTempUsageDetail_20' ) start [2025-01-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183065', 'tblTempUsageDetail_20' ) end [2025-01-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183065', 'tblTempVendorCDR_20' ) start [2025-01-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183065', 'tblTempVendorCDR_20' ) end [2025-01-05 21:47:18] Production.INFO: ProcessCDR(1,14183065,1,1,2) [2025-01-05 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183065', 'tblTempUsageDetail_20' ) start [2025-01-05 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183065', 'tblTempUsageDetail_20' ) end [2025-01-05 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:47:21] Production.INFO: ==2659== Releasing lock... [2025-01-05 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:48:05 [end_date_ymd] => 2025-01-05 21:48:05 [RateCDR] => 1 ) [2025-01-05 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:48:05' and `end` < '2025-01-05 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:48:18] Production.INFO: count ==913 [2025-01-05 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:48:05 - End Time 2025-01-05 21:48:05 [2025-01-05 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183070', 'tblTempUsageDetail_20' ) start [2025-01-05 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183070', 'tblTempUsageDetail_20' ) end [2025-01-05 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183070', 'tblTempVendorCDR_20' ) start [2025-01-05 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183070', 'tblTempVendorCDR_20' ) end [2025-01-05 21:48:18] Production.INFO: ProcessCDR(1,14183070,1,1,2) [2025-01-05 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183070', 'tblTempUsageDetail_20' ) start [2025-01-05 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183070', 'tblTempUsageDetail_20' ) end [2025-01-05 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:48:22] Production.INFO: ==2738== Releasing lock... [2025-01-05 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:49:05 [end_date_ymd] => 2025-01-05 21:49:05 [RateCDR] => 1 ) [2025-01-05 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:49:05' and `end` < '2025-01-05 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:49:18] Production.INFO: count ==916 [2025-01-05 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:49:05 - End Time 2025-01-05 21:49:05 [2025-01-05 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183075', 'tblTempUsageDetail_20' ) start [2025-01-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183075', 'tblTempUsageDetail_20' ) end [2025-01-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183075', 'tblTempVendorCDR_20' ) start [2025-01-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183075', 'tblTempVendorCDR_20' ) end [2025-01-05 21:49:18] Production.INFO: ProcessCDR(1,14183075,1,1,2) [2025-01-05 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183075', 'tblTempUsageDetail_20' ) start [2025-01-05 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183075', 'tblTempUsageDetail_20' ) end [2025-01-05 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:49:21] Production.INFO: ==2816== Releasing lock... [2025-01-05 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:49:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:50:06 [end_date_ymd] => 2025-01-05 21:50:06 [RateCDR] => 1 ) [2025-01-05 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:50:06' and `end` < '2025-01-05 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:50:19] Production.INFO: count ==914 [2025-01-05 21:50:20] Production.ERROR: pbx CDR StartTime 2025-01-05 18:50:06 - End Time 2025-01-05 21:50:06 [2025-01-05 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183081', 'tblTempUsageDetail_20' ) start [2025-01-05 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183081', 'tblTempUsageDetail_20' ) end [2025-01-05 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183081', 'tblTempVendorCDR_20' ) start [2025-01-05 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183081', 'tblTempVendorCDR_20' ) end [2025-01-05 21:50:20] Production.INFO: ProcessCDR(1,14183081,1,1,2) [2025-01-05 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183081', 'tblTempUsageDetail_20' ) start [2025-01-05 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183081', 'tblTempUsageDetail_20' ) end [2025-01-05 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:50:23] Production.INFO: ==2897== Releasing lock... [2025-01-05 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:50:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:51:05 [end_date_ymd] => 2025-01-05 21:51:05 [RateCDR] => 1 ) [2025-01-05 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:51:05' and `end` < '2025-01-05 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:51:18] Production.INFO: count ==918 [2025-01-05 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:51:05 - End Time 2025-01-05 21:51:05 [2025-01-05 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183086', 'tblTempUsageDetail_20' ) start [2025-01-05 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183086', 'tblTempUsageDetail_20' ) end [2025-01-05 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183086', 'tblTempVendorCDR_20' ) start [2025-01-05 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183086', 'tblTempVendorCDR_20' ) end [2025-01-05 21:51:18] Production.INFO: ProcessCDR(1,14183086,1,1,2) [2025-01-05 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183086', 'tblTempUsageDetail_20' ) start [2025-01-05 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183086', 'tblTempUsageDetail_20' ) end [2025-01-05 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:51:21] Production.INFO: ==2975== Releasing lock... [2025-01-05 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:51:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:52:04 [end_date_ymd] => 2025-01-05 21:52:04 [RateCDR] => 1 ) [2025-01-05 21:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:52:04' and `end` < '2025-01-05 21:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:52:17] Production.INFO: count ==918 [2025-01-05 21:52:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:52:04 - End Time 2025-01-05 21:52:04 [2025-01-05 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183091', 'tblTempUsageDetail_20' ) start [2025-01-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183091', 'tblTempUsageDetail_20' ) end [2025-01-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183091', 'tblTempVendorCDR_20' ) start [2025-01-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183091', 'tblTempVendorCDR_20' ) end [2025-01-05 21:52:17] Production.INFO: ProcessCDR(1,14183091,1,1,2) [2025-01-05 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183091', 'tblTempUsageDetail_20' ) start [2025-01-05 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183091', 'tblTempUsageDetail_20' ) end [2025-01-05 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:52:21] Production.INFO: ==3051== Releasing lock... [2025-01-05 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:52:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:53:05 [end_date_ymd] => 2025-01-05 21:53:05 [RateCDR] => 1 ) [2025-01-05 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:53:05' and `end` < '2025-01-05 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:53:18] Production.INFO: count ==919 [2025-01-05 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:53:05 - End Time 2025-01-05 21:53:05 [2025-01-05 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183096', 'tblTempUsageDetail_20' ) start [2025-01-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183096', 'tblTempUsageDetail_20' ) end [2025-01-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183096', 'tblTempVendorCDR_20' ) start [2025-01-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183096', 'tblTempVendorCDR_20' ) end [2025-01-05 21:53:18] Production.INFO: ProcessCDR(1,14183096,1,1,2) [2025-01-05 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183096', 'tblTempUsageDetail_20' ) start [2025-01-05 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183096', 'tblTempUsageDetail_20' ) end [2025-01-05 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:53:21] Production.INFO: ==3131== Releasing lock... [2025-01-05 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:54:05 [end_date_ymd] => 2025-01-05 21:54:05 [RateCDR] => 1 ) [2025-01-05 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:54:05' and `end` < '2025-01-05 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:54:18] Production.INFO: count ==917 [2025-01-05 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:54:05 - End Time 2025-01-05 21:54:05 [2025-01-05 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183101', 'tblTempUsageDetail_20' ) start [2025-01-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183101', 'tblTempUsageDetail_20' ) end [2025-01-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183101', 'tblTempVendorCDR_20' ) start [2025-01-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183101', 'tblTempVendorCDR_20' ) end [2025-01-05 21:54:18] Production.INFO: ProcessCDR(1,14183101,1,1,2) [2025-01-05 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183101', 'tblTempUsageDetail_20' ) start [2025-01-05 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183101', 'tblTempUsageDetail_20' ) end [2025-01-05 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:54:23] Production.INFO: ==3212== Releasing lock... [2025-01-05 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:54:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:55:04 [end_date_ymd] => 2025-01-05 21:55:04 [RateCDR] => 1 ) [2025-01-05 21:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:55:04' and `end` < '2025-01-05 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:55:17] Production.INFO: count ==920 [2025-01-05 21:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:55:04 - End Time 2025-01-05 21:55:04 [2025-01-05 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183106', 'tblTempUsageDetail_20' ) start [2025-01-05 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183106', 'tblTempUsageDetail_20' ) end [2025-01-05 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183106', 'tblTempVendorCDR_20' ) start [2025-01-05 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183106', 'tblTempVendorCDR_20' ) end [2025-01-05 21:55:17] Production.INFO: ProcessCDR(1,14183106,1,1,2) [2025-01-05 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183106', 'tblTempUsageDetail_20' ) start [2025-01-05 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183106', 'tblTempUsageDetail_20' ) end [2025-01-05 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:55:22] Production.INFO: ==3289== Releasing lock... [2025-01-05 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:55:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:56:05 [end_date_ymd] => 2025-01-05 21:56:05 [RateCDR] => 1 ) [2025-01-05 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:56:05' and `end` < '2025-01-05 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:56:19] Production.INFO: count ==919 [2025-01-05 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 18:56:05 - End Time 2025-01-05 21:56:05 [2025-01-05 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183111', 'tblTempUsageDetail_20' ) start [2025-01-05 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183111', 'tblTempUsageDetail_20' ) end [2025-01-05 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183111', 'tblTempVendorCDR_20' ) start [2025-01-05 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183111', 'tblTempVendorCDR_20' ) end [2025-01-05 21:56:19] Production.INFO: ProcessCDR(1,14183111,1,1,2) [2025-01-05 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183111', 'tblTempUsageDetail_20' ) start [2025-01-05 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183111', 'tblTempUsageDetail_20' ) end [2025-01-05 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:56:24] Production.INFO: ==3367== Releasing lock... [2025-01-05 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:56:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:57:04 [end_date_ymd] => 2025-01-05 21:57:04 [RateCDR] => 1 ) [2025-01-05 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:57:04' and `end` < '2025-01-05 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:57:17] Production.INFO: count ==915 [2025-01-05 21:57:17] Production.ERROR: pbx CDR StartTime 2025-01-05 18:57:04 - End Time 2025-01-05 21:57:04 [2025-01-05 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183116', 'tblTempUsageDetail_20' ) start [2025-01-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183116', 'tblTempUsageDetail_20' ) end [2025-01-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183116', 'tblTempVendorCDR_20' ) start [2025-01-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183116', 'tblTempVendorCDR_20' ) end [2025-01-05 21:57:17] Production.INFO: ProcessCDR(1,14183116,1,1,2) [2025-01-05 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183116', 'tblTempUsageDetail_20' ) start [2025-01-05 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183116', 'tblTempUsageDetail_20' ) end [2025-01-05 21:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:57:20] Production.INFO: ==3442== Releasing lock... [2025-01-05 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:57:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:58:04 [end_date_ymd] => 2025-01-05 21:58:04 [RateCDR] => 1 ) [2025-01-05 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:58:04' and `end` < '2025-01-05 21:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:58:20] Production.INFO: count ==915 [2025-01-05 21:58:20] Production.ERROR: pbx CDR StartTime 2025-01-05 18:58:04 - End Time 2025-01-05 21:58:04 [2025-01-05 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183121', 'tblTempUsageDetail_20' ) start [2025-01-05 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183121', 'tblTempUsageDetail_20' ) end [2025-01-05 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183121', 'tblTempVendorCDR_20' ) start [2025-01-05 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183121', 'tblTempVendorCDR_20' ) end [2025-01-05 21:58:20] Production.INFO: ProcessCDR(1,14183121,1,1,2) [2025-01-05 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183121', 'tblTempUsageDetail_20' ) start [2025-01-05 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183121', 'tblTempUsageDetail_20' ) end [2025-01-05 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:58:23] Production.INFO: ==3519== Releasing lock... [2025-01-05 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:58:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 18:59:05 [end_date_ymd] => 2025-01-05 21:59:05 [RateCDR] => 1 ) [2025-01-05 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 18:59:05' and `end` < '2025-01-05 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 21:59:18] Production.INFO: count ==915 [2025-01-05 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 18:59:05 - End Time 2025-01-05 21:59:05 [2025-01-05 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183126', 'tblTempUsageDetail_20' ) start [2025-01-05 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183126', 'tblTempUsageDetail_20' ) end [2025-01-05 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183126', 'tblTempVendorCDR_20' ) start [2025-01-05 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183126', 'tblTempVendorCDR_20' ) end [2025-01-05 21:59:18] Production.INFO: ProcessCDR(1,14183126,1,1,2) [2025-01-05 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183126', 'tblTempUsageDetail_20' ) start [2025-01-05 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183126', 'tblTempUsageDetail_20' ) end [2025-01-05 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 21:59:21] Production.INFO: ==3600== Releasing lock... [2025-01-05 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 21:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:00:05 [end_date_ymd] => 2025-01-05 22:00:05 [RateCDR] => 1 ) [2025-01-05 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:00:05' and `end` < '2025-01-05 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:00:18] Production.INFO: count ==917 [2025-01-05 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:00:05 - End Time 2025-01-05 22:00:05 [2025-01-05 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183132', 'tblTempUsageDetail_20' ) start [2025-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183132', 'tblTempUsageDetail_20' ) end [2025-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183132', 'tblTempVendorCDR_20' ) start [2025-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183132', 'tblTempVendorCDR_20' ) end [2025-01-05 22:00:18] Production.INFO: ProcessCDR(1,14183132,1,1,2) [2025-01-05 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183132', 'tblTempUsageDetail_20' ) start [2025-01-05 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183132', 'tblTempUsageDetail_20' ) end [2025-01-05 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:00:22] Production.INFO: ==3718== Releasing lock... [2025-01-05 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:00:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:01:05 [end_date_ymd] => 2025-01-05 22:01:05 [RateCDR] => 1 ) [2025-01-05 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:01:05' and `end` < '2025-01-05 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:01:18] Production.INFO: count ==931 [2025-01-05 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:01:05 - End Time 2025-01-05 22:01:05 [2025-01-05 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183137', 'tblTempUsageDetail_20' ) start [2025-01-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183137', 'tblTempUsageDetail_20' ) end [2025-01-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183137', 'tblTempVendorCDR_20' ) start [2025-01-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183137', 'tblTempVendorCDR_20' ) end [2025-01-05 22:01:18] Production.INFO: ProcessCDR(1,14183137,1,1,2) [2025-01-05 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183137', 'tblTempUsageDetail_20' ) start [2025-01-05 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183137', 'tblTempUsageDetail_20' ) end [2025-01-05 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:01:21] Production.INFO: ==3812== Releasing lock... [2025-01-05 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:01:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:02:04 [end_date_ymd] => 2025-01-05 22:02:04 [RateCDR] => 1 ) [2025-01-05 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:02:04' and `end` < '2025-01-05 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:02:17] Production.INFO: count ==935 [2025-01-05 22:02:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:02:04 - End Time 2025-01-05 22:02:04 [2025-01-05 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183142', 'tblTempUsageDetail_20' ) start [2025-01-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183142', 'tblTempUsageDetail_20' ) end [2025-01-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183142', 'tblTempVendorCDR_20' ) start [2025-01-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183142', 'tblTempVendorCDR_20' ) end [2025-01-05 22:02:17] Production.INFO: ProcessCDR(1,14183142,1,1,2) [2025-01-05 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183142', 'tblTempUsageDetail_20' ) start [2025-01-05 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183142', 'tblTempUsageDetail_20' ) end [2025-01-05 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:02:21] Production.INFO: ==3891== Releasing lock... [2025-01-05 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:02:21] Production.INFO: 35 MB #Memory Used# [2025-01-05 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:03:05 [end_date_ymd] => 2025-01-05 22:03:05 [RateCDR] => 1 ) [2025-01-05 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:03:05' and `end` < '2025-01-05 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:03:18] Production.INFO: count ==933 [2025-01-05 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:03:05 - End Time 2025-01-05 22:03:05 [2025-01-05 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183147', 'tblTempUsageDetail_20' ) start [2025-01-05 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183147', 'tblTempUsageDetail_20' ) end [2025-01-05 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183147', 'tblTempVendorCDR_20' ) start [2025-01-05 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183147', 'tblTempVendorCDR_20' ) end [2025-01-05 22:03:18] Production.INFO: ProcessCDR(1,14183147,1,1,2) [2025-01-05 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183147', 'tblTempUsageDetail_20' ) start [2025-01-05 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183147', 'tblTempUsageDetail_20' ) end [2025-01-05 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:03:21] Production.INFO: ==3968== Releasing lock... [2025-01-05 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:04:05 [end_date_ymd] => 2025-01-05 22:04:05 [RateCDR] => 1 ) [2025-01-05 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:04:05' and `end` < '2025-01-05 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:04:18] Production.INFO: count ==933 [2025-01-05 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:04:05 - End Time 2025-01-05 22:04:05 [2025-01-05 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183152', 'tblTempUsageDetail_20' ) start [2025-01-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183152', 'tblTempUsageDetail_20' ) end [2025-01-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183152', 'tblTempVendorCDR_20' ) start [2025-01-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183152', 'tblTempVendorCDR_20' ) end [2025-01-05 22:04:18] Production.INFO: ProcessCDR(1,14183152,1,1,2) [2025-01-05 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183152', 'tblTempUsageDetail_20' ) start [2025-01-05 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183152', 'tblTempUsageDetail_20' ) end [2025-01-05 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:04:23] Production.INFO: ==4047== Releasing lock... [2025-01-05 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:04:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:05:05 [end_date_ymd] => 2025-01-05 22:05:05 [RateCDR] => 1 ) [2025-01-05 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:05:05' and `end` < '2025-01-05 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:05:18] Production.INFO: count ==932 [2025-01-05 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:05:05 - End Time 2025-01-05 22:05:05 [2025-01-05 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183157', 'tblTempUsageDetail_20' ) start [2025-01-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183157', 'tblTempUsageDetail_20' ) end [2025-01-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183157', 'tblTempVendorCDR_20' ) start [2025-01-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183157', 'tblTempVendorCDR_20' ) end [2025-01-05 22:05:18] Production.INFO: ProcessCDR(1,14183157,1,1,2) [2025-01-05 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183157', 'tblTempUsageDetail_20' ) start [2025-01-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183157', 'tblTempUsageDetail_20' ) end [2025-01-05 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:05:21] Production.INFO: ==4124== Releasing lock... [2025-01-05 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:06:05 [end_date_ymd] => 2025-01-05 22:06:05 [RateCDR] => 1 ) [2025-01-05 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:06:05' and `end` < '2025-01-05 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:06:18] Production.INFO: count ==933 [2025-01-05 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:06:05 - End Time 2025-01-05 22:06:05 [2025-01-05 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183162', 'tblTempUsageDetail_20' ) start [2025-01-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183162', 'tblTempUsageDetail_20' ) end [2025-01-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183162', 'tblTempVendorCDR_20' ) start [2025-01-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183162', 'tblTempVendorCDR_20' ) end [2025-01-05 22:06:18] Production.INFO: ProcessCDR(1,14183162,1,1,2) [2025-01-05 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183162', 'tblTempUsageDetail_20' ) start [2025-01-05 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183162', 'tblTempUsageDetail_20' ) end [2025-01-05 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:06:23] Production.INFO: ==4200== Releasing lock... [2025-01-05 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:07:04 [end_date_ymd] => 2025-01-05 22:07:04 [RateCDR] => 1 ) [2025-01-05 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:07:04' and `end` < '2025-01-05 22:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:07:17] Production.INFO: count ==937 [2025-01-05 22:07:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:07:04 - End Time 2025-01-05 22:07:04 [2025-01-05 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183167', 'tblTempUsageDetail_20' ) start [2025-01-05 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183167', 'tblTempUsageDetail_20' ) end [2025-01-05 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183167', 'tblTempVendorCDR_20' ) start [2025-01-05 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183167', 'tblTempVendorCDR_20' ) end [2025-01-05 22:07:17] Production.INFO: ProcessCDR(1,14183167,1,1,2) [2025-01-05 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183167', 'tblTempUsageDetail_20' ) start [2025-01-05 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183167', 'tblTempUsageDetail_20' ) end [2025-01-05 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:07:22] Production.INFO: ==4277== Releasing lock... [2025-01-05 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:07:22] Production.INFO: 35 MB #Memory Used# [2025-01-05 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:08:05 [end_date_ymd] => 2025-01-05 22:08:05 [RateCDR] => 1 ) [2025-01-05 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:08:05' and `end` < '2025-01-05 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:08:19] Production.INFO: count ==941 [2025-01-05 22:08:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:08:05 - End Time 2025-01-05 22:08:05 [2025-01-05 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183172', 'tblTempUsageDetail_20' ) start [2025-01-05 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183172', 'tblTempUsageDetail_20' ) end [2025-01-05 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183172', 'tblTempVendorCDR_20' ) start [2025-01-05 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183172', 'tblTempVendorCDR_20' ) end [2025-01-05 22:08:20] Production.INFO: ProcessCDR(1,14183172,1,1,2) [2025-01-05 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183172', 'tblTempUsageDetail_20' ) start [2025-01-05 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183172', 'tblTempUsageDetail_20' ) end [2025-01-05 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:08:23] Production.INFO: ==4358== Releasing lock... [2025-01-05 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:08:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:09:04 [end_date_ymd] => 2025-01-05 22:09:04 [RateCDR] => 1 ) [2025-01-05 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:09:04' and `end` < '2025-01-05 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:09:17] Production.INFO: count ==939 [2025-01-05 22:09:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:09:04 - End Time 2025-01-05 22:09:04 [2025-01-05 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183177', 'tblTempUsageDetail_20' ) start [2025-01-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183177', 'tblTempUsageDetail_20' ) end [2025-01-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183177', 'tblTempVendorCDR_20' ) start [2025-01-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183177', 'tblTempVendorCDR_20' ) end [2025-01-05 22:09:17] Production.INFO: ProcessCDR(1,14183177,1,1,2) [2025-01-05 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183177', 'tblTempUsageDetail_20' ) start [2025-01-05 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183177', 'tblTempUsageDetail_20' ) end [2025-01-05 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:09:20] Production.INFO: ==4435== Releasing lock... [2025-01-05 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:09:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-05 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:10:06 [end_date_ymd] => 2025-01-05 22:10:06 [RateCDR] => 1 ) [2025-01-05 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:10:06' and `end` < '2025-01-05 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:10:18] Production.INFO: count ==934 [2025-01-05 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:10:06 - End Time 2025-01-05 22:10:06 [2025-01-05 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183183', 'tblTempUsageDetail_20' ) start [2025-01-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183183', 'tblTempUsageDetail_20' ) end [2025-01-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183183', 'tblTempVendorCDR_20' ) start [2025-01-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183183', 'tblTempVendorCDR_20' ) end [2025-01-05 22:10:19] Production.INFO: ProcessCDR(1,14183183,1,1,2) [2025-01-05 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183183', 'tblTempUsageDetail_20' ) start [2025-01-05 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183183', 'tblTempUsageDetail_20' ) end [2025-01-05 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:10:23] Production.INFO: ==4512== Releasing lock... [2025-01-05 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:10:23] Production.INFO: 35 MB #Memory Used# [2025-01-05 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:11:04 [end_date_ymd] => 2025-01-05 22:11:04 [RateCDR] => 1 ) [2025-01-05 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:11:04' and `end` < '2025-01-05 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:11:19] Production.INFO: count ==901 [2025-01-05 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:11:04 - End Time 2025-01-05 22:11:04 [2025-01-05 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183187', 'tblTempUsageDetail_20' ) start [2025-01-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183187', 'tblTempUsageDetail_20' ) end [2025-01-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183187', 'tblTempVendorCDR_20' ) start [2025-01-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183187', 'tblTempVendorCDR_20' ) end [2025-01-05 22:11:19] Production.INFO: ProcessCDR(1,14183187,1,1,2) [2025-01-05 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183187', 'tblTempUsageDetail_20' ) start [2025-01-05 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183187', 'tblTempUsageDetail_20' ) end [2025-01-05 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:11:22] Production.INFO: ==4595== Releasing lock... [2025-01-05 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:12:05 [end_date_ymd] => 2025-01-05 22:12:05 [RateCDR] => 1 ) [2025-01-05 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:12:05' and `end` < '2025-01-05 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:12:18] Production.INFO: count ==894 [2025-01-05 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:12:05 - End Time 2025-01-05 22:12:05 [2025-01-05 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183193', 'tblTempUsageDetail_20' ) start [2025-01-05 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183193', 'tblTempUsageDetail_20' ) end [2025-01-05 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183193', 'tblTempVendorCDR_20' ) start [2025-01-05 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183193', 'tblTempVendorCDR_20' ) end [2025-01-05 22:12:18] Production.INFO: ProcessCDR(1,14183193,1,1,2) [2025-01-05 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183193', 'tblTempUsageDetail_20' ) start [2025-01-05 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183193', 'tblTempUsageDetail_20' ) end [2025-01-05 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:12:21] Production.INFO: ==4672== Releasing lock... [2025-01-05 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:13:05 [end_date_ymd] => 2025-01-05 22:13:05 [RateCDR] => 1 ) [2025-01-05 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:13:05' and `end` < '2025-01-05 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:13:18] Production.INFO: count ==891 [2025-01-05 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:13:05 - End Time 2025-01-05 22:13:05 [2025-01-05 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183198', 'tblTempUsageDetail_20' ) start [2025-01-05 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183198', 'tblTempUsageDetail_20' ) end [2025-01-05 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183198', 'tblTempVendorCDR_20' ) start [2025-01-05 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183198', 'tblTempVendorCDR_20' ) end [2025-01-05 22:13:19] Production.INFO: ProcessCDR(1,14183198,1,1,2) [2025-01-05 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183198', 'tblTempUsageDetail_20' ) start [2025-01-05 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183198', 'tblTempUsageDetail_20' ) end [2025-01-05 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:13:22] Production.INFO: ==4749== Releasing lock... [2025-01-05 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:13:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:14:05 [end_date_ymd] => 2025-01-05 22:14:05 [RateCDR] => 1 ) [2025-01-05 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:14:05' and `end` < '2025-01-05 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:14:18] Production.INFO: count ==891 [2025-01-05 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:14:05 - End Time 2025-01-05 22:14:05 [2025-01-05 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183203', 'tblTempUsageDetail_20' ) start [2025-01-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183203', 'tblTempUsageDetail_20' ) end [2025-01-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183203', 'tblTempVendorCDR_20' ) start [2025-01-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183203', 'tblTempVendorCDR_20' ) end [2025-01-05 22:14:18] Production.INFO: ProcessCDR(1,14183203,1,1,2) [2025-01-05 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183203', 'tblTempUsageDetail_20' ) start [2025-01-05 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183203', 'tblTempUsageDetail_20' ) end [2025-01-05 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:14:21] Production.INFO: ==4826== Releasing lock... [2025-01-05 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:14:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:15:05 [end_date_ymd] => 2025-01-05 22:15:05 [RateCDR] => 1 ) [2025-01-05 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:15:05' and `end` < '2025-01-05 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:15:19] Production.INFO: count ==891 [2025-01-05 22:15:20] Production.ERROR: pbx CDR StartTime 2025-01-05 19:15:05 - End Time 2025-01-05 22:15:05 [2025-01-05 22:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183208', 'tblTempUsageDetail_20' ) start [2025-01-05 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183208', 'tblTempUsageDetail_20' ) end [2025-01-05 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183208', 'tblTempVendorCDR_20' ) start [2025-01-05 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183208', 'tblTempVendorCDR_20' ) end [2025-01-05 22:15:20] Production.INFO: ProcessCDR(1,14183208,1,1,2) [2025-01-05 22:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183208', 'tblTempUsageDetail_20' ) start [2025-01-05 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183208', 'tblTempUsageDetail_20' ) end [2025-01-05 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:15:23] Production.INFO: ==4905== Releasing lock... [2025-01-05 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:15:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:16:05 [end_date_ymd] => 2025-01-05 22:16:05 [RateCDR] => 1 ) [2025-01-05 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:16:05' and `end` < '2025-01-05 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:16:19] Production.INFO: count ==894 [2025-01-05 22:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:16:05 - End Time 2025-01-05 22:16:05 [2025-01-05 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183213', 'tblTempUsageDetail_20' ) start [2025-01-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183213', 'tblTempUsageDetail_20' ) end [2025-01-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183213', 'tblTempVendorCDR_20' ) start [2025-01-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183213', 'tblTempVendorCDR_20' ) end [2025-01-05 22:16:19] Production.INFO: ProcessCDR(1,14183213,1,1,2) [2025-01-05 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183213', 'tblTempUsageDetail_20' ) start [2025-01-05 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183213', 'tblTempUsageDetail_20' ) end [2025-01-05 22:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:16:25] Production.INFO: ==5018== Releasing lock... [2025-01-05 22:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:16:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:17:05 [end_date_ymd] => 2025-01-05 22:17:05 [RateCDR] => 1 ) [2025-01-05 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:17:05' and `end` < '2025-01-05 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:17:19] Production.INFO: count ==893 [2025-01-05 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:17:05 - End Time 2025-01-05 22:17:05 [2025-01-05 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183218', 'tblTempUsageDetail_20' ) start [2025-01-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183218', 'tblTempUsageDetail_20' ) end [2025-01-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183218', 'tblTempVendorCDR_20' ) start [2025-01-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183218', 'tblTempVendorCDR_20' ) end [2025-01-05 22:17:19] Production.INFO: ProcessCDR(1,14183218,1,1,2) [2025-01-05 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183218', 'tblTempUsageDetail_20' ) start [2025-01-05 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183218', 'tblTempUsageDetail_20' ) end [2025-01-05 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:17:23] Production.INFO: ==5094== Releasing lock... [2025-01-05 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:18:05 [end_date_ymd] => 2025-01-05 22:18:05 [RateCDR] => 1 ) [2025-01-05 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:18:05' and `end` < '2025-01-05 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:18:18] Production.INFO: count ==896 [2025-01-05 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:18:05 - End Time 2025-01-05 22:18:05 [2025-01-05 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183223', 'tblTempUsageDetail_20' ) start [2025-01-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183223', 'tblTempUsageDetail_20' ) end [2025-01-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183223', 'tblTempVendorCDR_20' ) start [2025-01-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183223', 'tblTempVendorCDR_20' ) end [2025-01-05 22:18:18] Production.INFO: ProcessCDR(1,14183223,1,1,2) [2025-01-05 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183223', 'tblTempUsageDetail_20' ) start [2025-01-05 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183223', 'tblTempUsageDetail_20' ) end [2025-01-05 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:18:21] Production.INFO: ==5173== Releasing lock... [2025-01-05 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:18:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:19:05 [end_date_ymd] => 2025-01-05 22:19:05 [RateCDR] => 1 ) [2025-01-05 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:19:05' and `end` < '2025-01-05 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:19:18] Production.INFO: count ==896 [2025-01-05 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:19:05 - End Time 2025-01-05 22:19:05 [2025-01-05 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183228', 'tblTempUsageDetail_20' ) start [2025-01-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183228', 'tblTempUsageDetail_20' ) end [2025-01-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183228', 'tblTempVendorCDR_20' ) start [2025-01-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183228', 'tblTempVendorCDR_20' ) end [2025-01-05 22:19:19] Production.INFO: ProcessCDR(1,14183228,1,1,2) [2025-01-05 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183228', 'tblTempUsageDetail_20' ) start [2025-01-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183228', 'tblTempUsageDetail_20' ) end [2025-01-05 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:19:22] Production.INFO: ==5248== Releasing lock... [2025-01-05 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:20:06 [end_date_ymd] => 2025-01-05 22:20:06 [RateCDR] => 1 ) [2025-01-05 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:20:06' and `end` < '2025-01-05 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:20:19] Production.INFO: count ==894 [2025-01-05 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:20:06 - End Time 2025-01-05 22:20:06 [2025-01-05 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183234', 'tblTempUsageDetail_20' ) start [2025-01-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183234', 'tblTempUsageDetail_20' ) end [2025-01-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183234', 'tblTempVendorCDR_20' ) start [2025-01-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183234', 'tblTempVendorCDR_20' ) end [2025-01-05 22:20:19] Production.INFO: ProcessCDR(1,14183234,1,1,2) [2025-01-05 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183234', 'tblTempUsageDetail_20' ) start [2025-01-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183234', 'tblTempUsageDetail_20' ) end [2025-01-05 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:20:22] Production.INFO: ==5326== Releasing lock... [2025-01-05 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:21:05 [end_date_ymd] => 2025-01-05 22:21:05 [RateCDR] => 1 ) [2025-01-05 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:21:05' and `end` < '2025-01-05 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:21:19] Production.INFO: count ==866 [2025-01-05 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:21:05 - End Time 2025-01-05 22:21:05 [2025-01-05 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183239', 'tblTempUsageDetail_20' ) start [2025-01-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183239', 'tblTempUsageDetail_20' ) end [2025-01-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183239', 'tblTempVendorCDR_20' ) start [2025-01-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183239', 'tblTempVendorCDR_20' ) end [2025-01-05 22:21:19] Production.INFO: ProcessCDR(1,14183239,1,1,2) [2025-01-05 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183239', 'tblTempUsageDetail_20' ) start [2025-01-05 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183239', 'tblTempUsageDetail_20' ) end [2025-01-05 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:21:22] Production.INFO: ==5410== Releasing lock... [2025-01-05 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:22:06 [end_date_ymd] => 2025-01-05 22:22:06 [RateCDR] => 1 ) [2025-01-05 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:22:06' and `end` < '2025-01-05 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:22:20] Production.INFO: count ==866 [2025-01-05 22:22:20] Production.ERROR: pbx CDR StartTime 2025-01-05 19:22:06 - End Time 2025-01-05 22:22:06 [2025-01-05 22:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183244', 'tblTempUsageDetail_20' ) start [2025-01-05 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183244', 'tblTempUsageDetail_20' ) end [2025-01-05 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183244', 'tblTempVendorCDR_20' ) start [2025-01-05 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183244', 'tblTempVendorCDR_20' ) end [2025-01-05 22:22:20] Production.INFO: ProcessCDR(1,14183244,1,1,2) [2025-01-05 22:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183244', 'tblTempUsageDetail_20' ) start [2025-01-05 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183244', 'tblTempUsageDetail_20' ) end [2025-01-05 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:22:23] Production.INFO: ==5489== Releasing lock... [2025-01-05 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:22:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:23:05 [end_date_ymd] => 2025-01-05 22:23:05 [RateCDR] => 1 ) [2025-01-05 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:23:05' and `end` < '2025-01-05 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:23:17] Production.INFO: count ==867 [2025-01-05 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:23:05 - End Time 2025-01-05 22:23:05 [2025-01-05 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183249', 'tblTempUsageDetail_20' ) start [2025-01-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183249', 'tblTempUsageDetail_20' ) end [2025-01-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183249', 'tblTempVendorCDR_20' ) start [2025-01-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183249', 'tblTempVendorCDR_20' ) end [2025-01-05 22:23:18] Production.INFO: ProcessCDR(1,14183249,1,1,2) [2025-01-05 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183249', 'tblTempUsageDetail_20' ) start [2025-01-05 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183249', 'tblTempUsageDetail_20' ) end [2025-01-05 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:23:22] Production.INFO: ==5563== Releasing lock... [2025-01-05 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:24:05 [end_date_ymd] => 2025-01-05 22:24:05 [RateCDR] => 1 ) [2025-01-05 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:24:05' and `end` < '2025-01-05 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:24:18] Production.INFO: count ==866 [2025-01-05 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:24:05 - End Time 2025-01-05 22:24:05 [2025-01-05 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183254', 'tblTempUsageDetail_20' ) start [2025-01-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183254', 'tblTempUsageDetail_20' ) end [2025-01-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183254', 'tblTempVendorCDR_20' ) start [2025-01-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183254', 'tblTempVendorCDR_20' ) end [2025-01-05 22:24:18] Production.INFO: ProcessCDR(1,14183254,1,1,2) [2025-01-05 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183254', 'tblTempUsageDetail_20' ) start [2025-01-05 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183254', 'tblTempUsageDetail_20' ) end [2025-01-05 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:24:21] Production.INFO: ==5641== Releasing lock... [2025-01-05 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:24:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:25:05 [end_date_ymd] => 2025-01-05 22:25:05 [RateCDR] => 1 ) [2025-01-05 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:25:05' and `end` < '2025-01-05 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:25:18] Production.INFO: count ==866 [2025-01-05 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:25:05 - End Time 2025-01-05 22:25:05 [2025-01-05 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183259', 'tblTempUsageDetail_20' ) start [2025-01-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183259', 'tblTempUsageDetail_20' ) end [2025-01-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183259', 'tblTempVendorCDR_20' ) start [2025-01-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183259', 'tblTempVendorCDR_20' ) end [2025-01-05 22:25:18] Production.INFO: ProcessCDR(1,14183259,1,1,2) [2025-01-05 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183259', 'tblTempUsageDetail_20' ) start [2025-01-05 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183259', 'tblTempUsageDetail_20' ) end [2025-01-05 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:25:21] Production.INFO: ==5714== Releasing lock... [2025-01-05 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:25:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:26:05 [end_date_ymd] => 2025-01-05 22:26:05 [RateCDR] => 1 ) [2025-01-05 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:26:05' and `end` < '2025-01-05 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:26:18] Production.INFO: count ==866 [2025-01-05 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:26:05 - End Time 2025-01-05 22:26:05 [2025-01-05 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183264', 'tblTempUsageDetail_20' ) start [2025-01-05 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183264', 'tblTempUsageDetail_20' ) end [2025-01-05 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183264', 'tblTempVendorCDR_20' ) start [2025-01-05 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183264', 'tblTempVendorCDR_20' ) end [2025-01-05 22:26:18] Production.INFO: ProcessCDR(1,14183264,1,1,2) [2025-01-05 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183264', 'tblTempUsageDetail_20' ) start [2025-01-05 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183264', 'tblTempUsageDetail_20' ) end [2025-01-05 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:26:21] Production.INFO: ==5792== Releasing lock... [2025-01-05 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-05 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:27:06 [end_date_ymd] => 2025-01-05 22:27:06 [RateCDR] => 1 ) [2025-01-05 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:27:06' and `end` < '2025-01-05 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:27:20] Production.INFO: count ==869 [2025-01-05 22:27:20] Production.ERROR: pbx CDR StartTime 2025-01-05 19:27:06 - End Time 2025-01-05 22:27:06 [2025-01-05 22:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183269', 'tblTempUsageDetail_20' ) start [2025-01-05 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183269', 'tblTempUsageDetail_20' ) end [2025-01-05 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183269', 'tblTempVendorCDR_20' ) start [2025-01-05 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183269', 'tblTempVendorCDR_20' ) end [2025-01-05 22:27:20] Production.INFO: ProcessCDR(1,14183269,1,1,2) [2025-01-05 22:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183269', 'tblTempUsageDetail_20' ) start [2025-01-05 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183269', 'tblTempUsageDetail_20' ) end [2025-01-05 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:27:23] Production.INFO: ==5868== Releasing lock... [2025-01-05 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:27:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:28:05 [end_date_ymd] => 2025-01-05 22:28:05 [RateCDR] => 1 ) [2025-01-05 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:28:05' and `end` < '2025-01-05 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:28:19] Production.INFO: count ==870 [2025-01-05 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:28:05 - End Time 2025-01-05 22:28:05 [2025-01-05 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183274', 'tblTempUsageDetail_20' ) start [2025-01-05 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183274', 'tblTempUsageDetail_20' ) end [2025-01-05 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183274', 'tblTempVendorCDR_20' ) start [2025-01-05 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183274', 'tblTempVendorCDR_20' ) end [2025-01-05 22:28:19] Production.INFO: ProcessCDR(1,14183274,1,1,2) [2025-01-05 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183274', 'tblTempUsageDetail_20' ) start [2025-01-05 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183274', 'tblTempUsageDetail_20' ) end [2025-01-05 22:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:28:24] Production.INFO: ==5946== Releasing lock... [2025-01-05 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:28:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:29:05 [end_date_ymd] => 2025-01-05 22:29:05 [RateCDR] => 1 ) [2025-01-05 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:29:05' and `end` < '2025-01-05 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:29:19] Production.INFO: count ==869 [2025-01-05 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:29:05 - End Time 2025-01-05 22:29:05 [2025-01-05 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183279', 'tblTempUsageDetail_20' ) start [2025-01-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183279', 'tblTempUsageDetail_20' ) end [2025-01-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183279', 'tblTempVendorCDR_20' ) start [2025-01-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183279', 'tblTempVendorCDR_20' ) end [2025-01-05 22:29:19] Production.INFO: ProcessCDR(1,14183279,1,1,2) [2025-01-05 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183279', 'tblTempUsageDetail_20' ) start [2025-01-05 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183279', 'tblTempUsageDetail_20' ) end [2025-01-05 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:29:22] Production.INFO: ==6023== Releasing lock... [2025-01-05 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:29:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:30:05 [end_date_ymd] => 2025-01-05 22:30:05 [RateCDR] => 1 ) [2025-01-05 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:30:05' and `end` < '2025-01-05 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:30:19] Production.INFO: count ==869 [2025-01-05 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:30:05 - End Time 2025-01-05 22:30:05 [2025-01-05 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183285', 'tblTempUsageDetail_20' ) start [2025-01-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183285', 'tblTempUsageDetail_20' ) end [2025-01-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183285', 'tblTempVendorCDR_20' ) start [2025-01-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183285', 'tblTempVendorCDR_20' ) end [2025-01-05 22:30:19] Production.INFO: ProcessCDR(1,14183285,1,1,2) [2025-01-05 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183285', 'tblTempUsageDetail_20' ) start [2025-01-05 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183285', 'tblTempUsageDetail_20' ) end [2025-01-05 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:30:22] Production.INFO: ==6104== Releasing lock... [2025-01-05 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:31:05 [end_date_ymd] => 2025-01-05 22:31:05 [RateCDR] => 1 ) [2025-01-05 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:31:05' and `end` < '2025-01-05 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:31:19] Production.INFO: count ==847 [2025-01-05 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:31:05 - End Time 2025-01-05 22:31:05 [2025-01-05 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183290', 'tblTempUsageDetail_20' ) start [2025-01-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183290', 'tblTempUsageDetail_20' ) end [2025-01-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183290', 'tblTempVendorCDR_20' ) start [2025-01-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183290', 'tblTempVendorCDR_20' ) end [2025-01-05 22:31:19] Production.INFO: ProcessCDR(1,14183290,1,1,2) [2025-01-05 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183290', 'tblTempUsageDetail_20' ) start [2025-01-05 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183290', 'tblTempUsageDetail_20' ) end [2025-01-05 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:31:22] Production.INFO: ==6224== Releasing lock... [2025-01-05 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:32:05 [end_date_ymd] => 2025-01-05 22:32:05 [RateCDR] => 1 ) [2025-01-05 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:32:05' and `end` < '2025-01-05 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:32:20] Production.INFO: count ==846 [2025-01-05 22:32:20] Production.ERROR: pbx CDR StartTime 2025-01-05 19:32:05 - End Time 2025-01-05 22:32:05 [2025-01-05 22:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183295', 'tblTempUsageDetail_20' ) start [2025-01-05 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183295', 'tblTempUsageDetail_20' ) end [2025-01-05 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183295', 'tblTempVendorCDR_20' ) start [2025-01-05 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183295', 'tblTempVendorCDR_20' ) end [2025-01-05 22:32:20] Production.INFO: ProcessCDR(1,14183295,1,1,2) [2025-01-05 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183295', 'tblTempUsageDetail_20' ) start [2025-01-05 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183295', 'tblTempUsageDetail_20' ) end [2025-01-05 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:32:23] Production.INFO: ==6298== Releasing lock... [2025-01-05 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:32:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:33:05 [end_date_ymd] => 2025-01-05 22:33:05 [RateCDR] => 1 ) [2025-01-05 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:33:05' and `end` < '2025-01-05 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:33:17] Production.INFO: count ==846 [2025-01-05 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:33:05 - End Time 2025-01-05 22:33:05 [2025-01-05 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183300', 'tblTempUsageDetail_20' ) start [2025-01-05 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183300', 'tblTempUsageDetail_20' ) end [2025-01-05 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183300', 'tblTempVendorCDR_20' ) start [2025-01-05 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183300', 'tblTempVendorCDR_20' ) end [2025-01-05 22:33:18] Production.INFO: ProcessCDR(1,14183300,1,1,2) [2025-01-05 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183300', 'tblTempUsageDetail_20' ) start [2025-01-05 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183300', 'tblTempUsageDetail_20' ) end [2025-01-05 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:33:21] Production.INFO: ==6373== Releasing lock... [2025-01-05 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:33:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:34:05 [end_date_ymd] => 2025-01-05 22:34:05 [RateCDR] => 1 ) [2025-01-05 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:34:05' and `end` < '2025-01-05 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:34:18] Production.INFO: count ==846 [2025-01-05 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:34:05 - End Time 2025-01-05 22:34:05 [2025-01-05 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183305', 'tblTempUsageDetail_20' ) start [2025-01-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183305', 'tblTempUsageDetail_20' ) end [2025-01-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183305', 'tblTempVendorCDR_20' ) start [2025-01-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183305', 'tblTempVendorCDR_20' ) end [2025-01-05 22:34:18] Production.INFO: ProcessCDR(1,14183305,1,1,2) [2025-01-05 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183305', 'tblTempUsageDetail_20' ) start [2025-01-05 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183305', 'tblTempUsageDetail_20' ) end [2025-01-05 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:34:21] Production.INFO: ==6451== Releasing lock... [2025-01-05 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:34:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:35:05 [end_date_ymd] => 2025-01-05 22:35:05 [RateCDR] => 1 ) [2025-01-05 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:35:05' and `end` < '2025-01-05 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:35:18] Production.INFO: count ==846 [2025-01-05 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:35:05 - End Time 2025-01-05 22:35:05 [2025-01-05 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183310', 'tblTempUsageDetail_20' ) start [2025-01-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183310', 'tblTempUsageDetail_20' ) end [2025-01-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183310', 'tblTempVendorCDR_20' ) start [2025-01-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183310', 'tblTempVendorCDR_20' ) end [2025-01-05 22:35:18] Production.INFO: ProcessCDR(1,14183310,1,1,2) [2025-01-05 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183310', 'tblTempUsageDetail_20' ) start [2025-01-05 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183310', 'tblTempUsageDetail_20' ) end [2025-01-05 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:35:21] Production.INFO: ==6529== Releasing lock... [2025-01-05 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:35:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:36:05 [end_date_ymd] => 2025-01-05 22:36:05 [RateCDR] => 1 ) [2025-01-05 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:36:05' and `end` < '2025-01-05 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:36:18] Production.INFO: count ==846 [2025-01-05 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:36:05 - End Time 2025-01-05 22:36:05 [2025-01-05 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183315', 'tblTempUsageDetail_20' ) start [2025-01-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183315', 'tblTempUsageDetail_20' ) end [2025-01-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183315', 'tblTempVendorCDR_20' ) start [2025-01-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183315', 'tblTempVendorCDR_20' ) end [2025-01-05 22:36:18] Production.INFO: ProcessCDR(1,14183315,1,1,2) [2025-01-05 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183315', 'tblTempUsageDetail_20' ) start [2025-01-05 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183315', 'tblTempUsageDetail_20' ) end [2025-01-05 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:36:21] Production.INFO: ==6605== Releasing lock... [2025-01-05 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:36:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:37:04 [end_date_ymd] => 2025-01-05 22:37:04 [RateCDR] => 1 ) [2025-01-05 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:37:04' and `end` < '2025-01-05 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:37:17] Production.INFO: count ==846 [2025-01-05 22:37:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:37:04 - End Time 2025-01-05 22:37:04 [2025-01-05 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183320', 'tblTempUsageDetail_20' ) start [2025-01-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183320', 'tblTempUsageDetail_20' ) end [2025-01-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183320', 'tblTempVendorCDR_20' ) start [2025-01-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183320', 'tblTempVendorCDR_20' ) end [2025-01-05 22:37:17] Production.INFO: ProcessCDR(1,14183320,1,1,2) [2025-01-05 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183320', 'tblTempUsageDetail_20' ) start [2025-01-05 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183320', 'tblTempUsageDetail_20' ) end [2025-01-05 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:37:20] Production.INFO: ==6681== Releasing lock... [2025-01-05 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:37:20] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:38:05 [end_date_ymd] => 2025-01-05 22:38:05 [RateCDR] => 1 ) [2025-01-05 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:38:05' and `end` < '2025-01-05 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:38:19] Production.INFO: count ==846 [2025-01-05 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:38:05 - End Time 2025-01-05 22:38:05 [2025-01-05 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183325', 'tblTempUsageDetail_20' ) start [2025-01-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183325', 'tblTempUsageDetail_20' ) end [2025-01-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183325', 'tblTempVendorCDR_20' ) start [2025-01-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183325', 'tblTempVendorCDR_20' ) end [2025-01-05 22:38:19] Production.INFO: ProcessCDR(1,14183325,1,1,2) [2025-01-05 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183325', 'tblTempUsageDetail_20' ) start [2025-01-05 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183325', 'tblTempUsageDetail_20' ) end [2025-01-05 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:38:22] Production.INFO: ==6758== Releasing lock... [2025-01-05 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:38:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:39:05 [end_date_ymd] => 2025-01-05 22:39:05 [RateCDR] => 1 ) [2025-01-05 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:39:05' and `end` < '2025-01-05 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:39:18] Production.INFO: count ==847 [2025-01-05 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:39:05 - End Time 2025-01-05 22:39:05 [2025-01-05 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183330', 'tblTempUsageDetail_20' ) start [2025-01-05 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183330', 'tblTempUsageDetail_20' ) end [2025-01-05 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183330', 'tblTempVendorCDR_20' ) start [2025-01-05 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183330', 'tblTempVendorCDR_20' ) end [2025-01-05 22:39:18] Production.INFO: ProcessCDR(1,14183330,1,1,2) [2025-01-05 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183330', 'tblTempUsageDetail_20' ) start [2025-01-05 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183330', 'tblTempUsageDetail_20' ) end [2025-01-05 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:39:23] Production.INFO: ==6834== Releasing lock... [2025-01-05 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:39:23] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:40:05 [end_date_ymd] => 2025-01-05 22:40:05 [RateCDR] => 1 ) [2025-01-05 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:40:05' and `end` < '2025-01-05 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:40:18] Production.INFO: count ==847 [2025-01-05 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:40:05 - End Time 2025-01-05 22:40:05 [2025-01-05 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183335', 'tblTempUsageDetail_20' ) start [2025-01-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183335', 'tblTempUsageDetail_20' ) end [2025-01-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183335', 'tblTempVendorCDR_20' ) start [2025-01-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183335', 'tblTempVendorCDR_20' ) end [2025-01-05 22:40:18] Production.INFO: ProcessCDR(1,14183335,1,1,2) [2025-01-05 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183335', 'tblTempUsageDetail_20' ) start [2025-01-05 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183335', 'tblTempUsageDetail_20' ) end [2025-01-05 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:40:21] Production.INFO: ==6914== Releasing lock... [2025-01-05 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:40:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:41:05 [end_date_ymd] => 2025-01-05 22:41:05 [RateCDR] => 1 ) [2025-01-05 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:41:05' and `end` < '2025-01-05 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:41:18] Production.INFO: count ==839 [2025-01-05 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:41:05 - End Time 2025-01-05 22:41:05 [2025-01-05 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183341', 'tblTempUsageDetail_20' ) start [2025-01-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183341', 'tblTempUsageDetail_20' ) end [2025-01-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183341', 'tblTempVendorCDR_20' ) start [2025-01-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183341', 'tblTempVendorCDR_20' ) end [2025-01-05 22:41:18] Production.INFO: ProcessCDR(1,14183341,1,1,2) [2025-01-05 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183341', 'tblTempUsageDetail_20' ) start [2025-01-05 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183341', 'tblTempUsageDetail_20' ) end [2025-01-05 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:41:23] Production.INFO: ==6993== Releasing lock... [2025-01-05 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:41:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-05 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:42:05 [end_date_ymd] => 2025-01-05 22:42:05 [RateCDR] => 1 ) [2025-01-05 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:42:05' and `end` < '2025-01-05 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:42:19] Production.INFO: count ==840 [2025-01-05 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:42:05 - End Time 2025-01-05 22:42:05 [2025-01-05 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183346', 'tblTempUsageDetail_20' ) start [2025-01-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183346', 'tblTempUsageDetail_20' ) end [2025-01-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183346', 'tblTempVendorCDR_20' ) start [2025-01-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183346', 'tblTempVendorCDR_20' ) end [2025-01-05 22:42:19] Production.INFO: ProcessCDR(1,14183346,1,1,2) [2025-01-05 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183346', 'tblTempUsageDetail_20' ) start [2025-01-05 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183346', 'tblTempUsageDetail_20' ) end [2025-01-05 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:42:24] Production.INFO: ==7071== Releasing lock... [2025-01-05 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:42:24] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:43:05 [end_date_ymd] => 2025-01-05 22:43:05 [RateCDR] => 1 ) [2025-01-05 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:43:05' and `end` < '2025-01-05 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:43:18] Production.INFO: count ==840 [2025-01-05 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:43:05 - End Time 2025-01-05 22:43:05 [2025-01-05 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183351', 'tblTempUsageDetail_20' ) start [2025-01-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183351', 'tblTempUsageDetail_20' ) end [2025-01-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183351', 'tblTempVendorCDR_20' ) start [2025-01-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183351', 'tblTempVendorCDR_20' ) end [2025-01-05 22:43:18] Production.INFO: ProcessCDR(1,14183351,1,1,2) [2025-01-05 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183351', 'tblTempUsageDetail_20' ) start [2025-01-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183351', 'tblTempUsageDetail_20' ) end [2025-01-05 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:43:21] Production.INFO: ==7149== Releasing lock... [2025-01-05 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:43:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:44:05 [end_date_ymd] => 2025-01-05 22:44:05 [RateCDR] => 1 ) [2025-01-05 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:44:05' and `end` < '2025-01-05 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:44:18] Production.INFO: count ==840 [2025-01-05 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:44:05 - End Time 2025-01-05 22:44:05 [2025-01-05 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183356', 'tblTempUsageDetail_20' ) start [2025-01-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183356', 'tblTempUsageDetail_20' ) end [2025-01-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183356', 'tblTempVendorCDR_20' ) start [2025-01-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183356', 'tblTempVendorCDR_20' ) end [2025-01-05 22:44:18] Production.INFO: ProcessCDR(1,14183356,1,1,2) [2025-01-05 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183356', 'tblTempUsageDetail_20' ) start [2025-01-05 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183356', 'tblTempUsageDetail_20' ) end [2025-01-05 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:44:21] Production.INFO: ==7224== Releasing lock... [2025-01-05 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:45:05 [end_date_ymd] => 2025-01-05 22:45:05 [RateCDR] => 1 ) [2025-01-05 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:45:05' and `end` < '2025-01-05 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:45:18] Production.INFO: count ==840 [2025-01-05 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:45:05 - End Time 2025-01-05 22:45:05 [2025-01-05 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183361', 'tblTempUsageDetail_20' ) start [2025-01-05 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183361', 'tblTempUsageDetail_20' ) end [2025-01-05 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183361', 'tblTempVendorCDR_20' ) start [2025-01-05 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183361', 'tblTempVendorCDR_20' ) end [2025-01-05 22:45:18] Production.INFO: ProcessCDR(1,14183361,1,1,2) [2025-01-05 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183361', 'tblTempUsageDetail_20' ) start [2025-01-05 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183361', 'tblTempUsageDetail_20' ) end [2025-01-05 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:45:21] Production.INFO: ==7301== Releasing lock... [2025-01-05 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:46:05 [end_date_ymd] => 2025-01-05 22:46:05 [RateCDR] => 1 ) [2025-01-05 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:46:05' and `end` < '2025-01-05 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:46:18] Production.INFO: count ==840 [2025-01-05 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:46:05 - End Time 2025-01-05 22:46:05 [2025-01-05 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183366', 'tblTempUsageDetail_20' ) start [2025-01-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183366', 'tblTempUsageDetail_20' ) end [2025-01-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183366', 'tblTempVendorCDR_20' ) start [2025-01-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183366', 'tblTempVendorCDR_20' ) end [2025-01-05 22:46:18] Production.INFO: ProcessCDR(1,14183366,1,1,2) [2025-01-05 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183366', 'tblTempUsageDetail_20' ) start [2025-01-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183366', 'tblTempUsageDetail_20' ) end [2025-01-05 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:46:21] Production.INFO: ==7377== Releasing lock... [2025-01-05 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:46:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:47:05 [end_date_ymd] => 2025-01-05 22:47:05 [RateCDR] => 1 ) [2025-01-05 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:47:05' and `end` < '2025-01-05 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:47:18] Production.INFO: count ==841 [2025-01-05 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:47:05 - End Time 2025-01-05 22:47:05 [2025-01-05 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183371', 'tblTempUsageDetail_20' ) start [2025-01-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183371', 'tblTempUsageDetail_20' ) end [2025-01-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183371', 'tblTempVendorCDR_20' ) start [2025-01-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183371', 'tblTempVendorCDR_20' ) end [2025-01-05 22:47:18] Production.INFO: ProcessCDR(1,14183371,1,1,2) [2025-01-05 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183371', 'tblTempUsageDetail_20' ) start [2025-01-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183371', 'tblTempUsageDetail_20' ) end [2025-01-05 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:47:21] Production.INFO: ==7495== Releasing lock... [2025-01-05 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:47:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:48:05 [end_date_ymd] => 2025-01-05 22:48:05 [RateCDR] => 1 ) [2025-01-05 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:48:05' and `end` < '2025-01-05 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:48:18] Production.INFO: count ==842 [2025-01-05 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:48:05 - End Time 2025-01-05 22:48:05 [2025-01-05 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183376', 'tblTempUsageDetail_20' ) start [2025-01-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183376', 'tblTempUsageDetail_20' ) end [2025-01-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183376', 'tblTempVendorCDR_20' ) start [2025-01-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183376', 'tblTempVendorCDR_20' ) end [2025-01-05 22:48:18] Production.INFO: ProcessCDR(1,14183376,1,1,2) [2025-01-05 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183376', 'tblTempUsageDetail_20' ) start [2025-01-05 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183376', 'tblTempUsageDetail_20' ) end [2025-01-05 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:48:21] Production.INFO: ==7569== Releasing lock... [2025-01-05 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:48:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:49:05 [end_date_ymd] => 2025-01-05 22:49:05 [RateCDR] => 1 ) [2025-01-05 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:49:05' and `end` < '2025-01-05 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:49:17] Production.INFO: count ==842 [2025-01-05 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:49:05 - End Time 2025-01-05 22:49:05 [2025-01-05 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183381', 'tblTempUsageDetail_20' ) start [2025-01-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183381', 'tblTempUsageDetail_20' ) end [2025-01-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183381', 'tblTempVendorCDR_20' ) start [2025-01-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183381', 'tblTempVendorCDR_20' ) end [2025-01-05 22:49:17] Production.INFO: ProcessCDR(1,14183381,1,1,2) [2025-01-05 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183381', 'tblTempUsageDetail_20' ) start [2025-01-05 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183381', 'tblTempUsageDetail_20' ) end [2025-01-05 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:49:21] Production.INFO: ==7650== Releasing lock... [2025-01-05 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:49:21] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:50:06 [end_date_ymd] => 2025-01-05 22:50:06 [RateCDR] => 1 ) [2025-01-05 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:50:06' and `end` < '2025-01-05 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:50:19] Production.INFO: count ==840 [2025-01-05 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:50:06 - End Time 2025-01-05 22:50:06 [2025-01-05 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183387', 'tblTempUsageDetail_20' ) start [2025-01-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183387', 'tblTempUsageDetail_20' ) end [2025-01-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183387', 'tblTempVendorCDR_20' ) start [2025-01-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183387', 'tblTempVendorCDR_20' ) end [2025-01-05 22:50:19] Production.INFO: ProcessCDR(1,14183387,1,1,2) [2025-01-05 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183387', 'tblTempUsageDetail_20' ) start [2025-01-05 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183387', 'tblTempUsageDetail_20' ) end [2025-01-05 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:50:22] Production.INFO: ==7732== Releasing lock... [2025-01-05 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:51:04 [end_date_ymd] => 2025-01-05 22:51:04 [RateCDR] => 1 ) [2025-01-05 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:51:04' and `end` < '2025-01-05 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:51:17] Production.INFO: count ==810 [2025-01-05 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:51:04 - End Time 2025-01-05 22:51:04 [2025-01-05 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183392', 'tblTempUsageDetail_20' ) start [2025-01-05 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183392', 'tblTempUsageDetail_20' ) end [2025-01-05 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183392', 'tblTempVendorCDR_20' ) start [2025-01-05 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183392', 'tblTempVendorCDR_20' ) end [2025-01-05 22:51:17] Production.INFO: ProcessCDR(1,14183392,1,1,2) [2025-01-05 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183392', 'tblTempUsageDetail_20' ) start [2025-01-05 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183392', 'tblTempUsageDetail_20' ) end [2025-01-05 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:51:20] Production.INFO: ==7809== Releasing lock... [2025-01-05 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:51:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:52:05 [end_date_ymd] => 2025-01-05 22:52:05 [RateCDR] => 1 ) [2025-01-05 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:52:05' and `end` < '2025-01-05 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:52:18] Production.INFO: count ==805 [2025-01-05 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:52:05 - End Time 2025-01-05 22:52:05 [2025-01-05 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183397', 'tblTempUsageDetail_20' ) start [2025-01-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183397', 'tblTempUsageDetail_20' ) end [2025-01-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183397', 'tblTempVendorCDR_20' ) start [2025-01-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183397', 'tblTempVendorCDR_20' ) end [2025-01-05 22:52:18] Production.INFO: ProcessCDR(1,14183397,1,1,2) [2025-01-05 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183397', 'tblTempUsageDetail_20' ) start [2025-01-05 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183397', 'tblTempUsageDetail_20' ) end [2025-01-05 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:52:21] Production.INFO: ==7886== Releasing lock... [2025-01-05 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:53:04 [end_date_ymd] => 2025-01-05 22:53:04 [RateCDR] => 1 ) [2025-01-05 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:53:04' and `end` < '2025-01-05 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:53:17] Production.INFO: count ==805 [2025-01-05 22:53:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:53:04 - End Time 2025-01-05 22:53:04 [2025-01-05 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183402', 'tblTempUsageDetail_20' ) start [2025-01-05 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183402', 'tblTempUsageDetail_20' ) end [2025-01-05 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183402', 'tblTempVendorCDR_20' ) start [2025-01-05 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183402', 'tblTempVendorCDR_20' ) end [2025-01-05 22:53:17] Production.INFO: ProcessCDR(1,14183402,1,1,2) [2025-01-05 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183402', 'tblTempUsageDetail_20' ) start [2025-01-05 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183402', 'tblTempUsageDetail_20' ) end [2025-01-05 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:53:20] Production.INFO: ==7964== Releasing lock... [2025-01-05 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:53:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:54:05 [end_date_ymd] => 2025-01-05 22:54:05 [RateCDR] => 1 ) [2025-01-05 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:54:05' and `end` < '2025-01-05 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:54:18] Production.INFO: count ==804 [2025-01-05 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:54:05 - End Time 2025-01-05 22:54:05 [2025-01-05 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183407', 'tblTempUsageDetail_20' ) start [2025-01-05 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183407', 'tblTempUsageDetail_20' ) end [2025-01-05 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183407', 'tblTempVendorCDR_20' ) start [2025-01-05 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183407', 'tblTempVendorCDR_20' ) end [2025-01-05 22:54:18] Production.INFO: ProcessCDR(1,14183407,1,1,2) [2025-01-05 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183407', 'tblTempUsageDetail_20' ) start [2025-01-05 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183407', 'tblTempUsageDetail_20' ) end [2025-01-05 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:54:21] Production.INFO: ==8041== Releasing lock... [2025-01-05 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:55:05 [end_date_ymd] => 2025-01-05 22:55:05 [RateCDR] => 1 ) [2025-01-05 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:55:05' and `end` < '2025-01-05 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:55:18] Production.INFO: count ==804 [2025-01-05 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:55:05 - End Time 2025-01-05 22:55:05 [2025-01-05 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183412', 'tblTempUsageDetail_20' ) start [2025-01-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183412', 'tblTempUsageDetail_20' ) end [2025-01-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183412', 'tblTempVendorCDR_20' ) start [2025-01-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183412', 'tblTempVendorCDR_20' ) end [2025-01-05 22:55:18] Production.INFO: ProcessCDR(1,14183412,1,1,2) [2025-01-05 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183412', 'tblTempUsageDetail_20' ) start [2025-01-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183412', 'tblTempUsageDetail_20' ) end [2025-01-05 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:55:21] Production.INFO: ==8118== Releasing lock... [2025-01-05 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:56:04 [end_date_ymd] => 2025-01-05 22:56:04 [RateCDR] => 1 ) [2025-01-05 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:56:04' and `end` < '2025-01-05 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:56:17] Production.INFO: count ==804 [2025-01-05 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-05 19:56:04 - End Time 2025-01-05 22:56:04 [2025-01-05 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183417', 'tblTempUsageDetail_20' ) start [2025-01-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183417', 'tblTempUsageDetail_20' ) end [2025-01-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183417', 'tblTempVendorCDR_20' ) start [2025-01-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183417', 'tblTempVendorCDR_20' ) end [2025-01-05 22:56:17] Production.INFO: ProcessCDR(1,14183417,1,1,2) [2025-01-05 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183417', 'tblTempUsageDetail_20' ) start [2025-01-05 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183417', 'tblTempUsageDetail_20' ) end [2025-01-05 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:56:20] Production.INFO: ==8196== Releasing lock... [2025-01-05 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:56:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:57:05 [end_date_ymd] => 2025-01-05 22:57:05 [RateCDR] => 1 ) [2025-01-05 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:57:05' and `end` < '2025-01-05 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:57:20] Production.INFO: count ==807 [2025-01-05 22:57:20] Production.ERROR: pbx CDR StartTime 2025-01-05 19:57:05 - End Time 2025-01-05 22:57:05 [2025-01-05 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183422', 'tblTempUsageDetail_20' ) start [2025-01-05 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183422', 'tblTempUsageDetail_20' ) end [2025-01-05 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183422', 'tblTempVendorCDR_20' ) start [2025-01-05 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183422', 'tblTempVendorCDR_20' ) end [2025-01-05 22:57:20] Production.INFO: ProcessCDR(1,14183422,1,1,2) [2025-01-05 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183422', 'tblTempUsageDetail_20' ) start [2025-01-05 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183422', 'tblTempUsageDetail_20' ) end [2025-01-05 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:57:23] Production.INFO: ==8272== Releasing lock... [2025-01-05 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:58:05 [end_date_ymd] => 2025-01-05 22:58:05 [RateCDR] => 1 ) [2025-01-05 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:58:05' and `end` < '2025-01-05 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:58:17] Production.INFO: count ==807 [2025-01-05 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 19:58:05 - End Time 2025-01-05 22:58:05 [2025-01-05 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183427', 'tblTempUsageDetail_20' ) start [2025-01-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183427', 'tblTempUsageDetail_20' ) end [2025-01-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183427', 'tblTempVendorCDR_20' ) start [2025-01-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183427', 'tblTempVendorCDR_20' ) end [2025-01-05 22:58:18] Production.INFO: ProcessCDR(1,14183427,1,1,2) [2025-01-05 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183427', 'tblTempUsageDetail_20' ) start [2025-01-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183427', 'tblTempUsageDetail_20' ) end [2025-01-05 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:58:21] Production.INFO: ==8348== Releasing lock... [2025-01-05 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 19:59:05 [end_date_ymd] => 2025-01-05 22:59:05 [RateCDR] => 1 ) [2025-01-05 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 19:59:05' and `end` < '2025-01-05 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 22:59:19] Production.INFO: count ==807 [2025-01-05 22:59:19] Production.ERROR: pbx CDR StartTime 2025-01-05 19:59:05 - End Time 2025-01-05 22:59:05 [2025-01-05 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183432', 'tblTempUsageDetail_20' ) start [2025-01-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183432', 'tblTempUsageDetail_20' ) end [2025-01-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183432', 'tblTempVendorCDR_20' ) start [2025-01-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183432', 'tblTempVendorCDR_20' ) end [2025-01-05 22:59:19] Production.INFO: ProcessCDR(1,14183432,1,1,2) [2025-01-05 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183432', 'tblTempUsageDetail_20' ) start [2025-01-05 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183432', 'tblTempUsageDetail_20' ) end [2025-01-05 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 22:59:22] Production.INFO: ==8427== Releasing lock... [2025-01-05 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 22:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:00:06 [end_date_ymd] => 2025-01-05 23:00:06 [RateCDR] => 1 ) [2025-01-05 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:00:06' and `end` < '2025-01-05 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:00:19] Production.INFO: count ==808 [2025-01-05 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:00:06 - End Time 2025-01-05 23:00:06 [2025-01-05 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183437', 'tblTempUsageDetail_20' ) start [2025-01-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183437', 'tblTempUsageDetail_20' ) end [2025-01-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183437', 'tblTempVendorCDR_20' ) start [2025-01-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183437', 'tblTempVendorCDR_20' ) end [2025-01-05 23:00:19] Production.INFO: ProcessCDR(1,14183437,1,1,2) [2025-01-05 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183437', 'tblTempUsageDetail_20' ) start [2025-01-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183437', 'tblTempUsageDetail_20' ) end [2025-01-05 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:00:22] Production.INFO: ==8506== Releasing lock... [2025-01-05 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:01:05 [end_date_ymd] => 2025-01-05 23:01:05 [RateCDR] => 1 ) [2025-01-05 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:01:05' and `end` < '2025-01-05 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:01:17] Production.INFO: count ==774 [2025-01-05 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:01:05 - End Time 2025-01-05 23:01:05 [2025-01-05 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183443', 'tblTempUsageDetail_20' ) start [2025-01-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183443', 'tblTempUsageDetail_20' ) end [2025-01-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183443', 'tblTempVendorCDR_20' ) start [2025-01-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183443', 'tblTempVendorCDR_20' ) end [2025-01-05 23:01:18] Production.INFO: ProcessCDR(1,14183443,1,1,2) [2025-01-05 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183443', 'tblTempUsageDetail_20' ) start [2025-01-05 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183443', 'tblTempUsageDetail_20' ) end [2025-01-05 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:01:21] Production.INFO: ==8599== Releasing lock... [2025-01-05 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:02:05 [end_date_ymd] => 2025-01-05 23:02:05 [RateCDR] => 1 ) [2025-01-05 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:02:05' and `end` < '2025-01-05 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:02:20] Production.INFO: count ==774 [2025-01-05 23:02:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:02:05 - End Time 2025-01-05 23:02:05 [2025-01-05 23:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183448', 'tblTempUsageDetail_20' ) start [2025-01-05 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183448', 'tblTempUsageDetail_20' ) end [2025-01-05 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183448', 'tblTempVendorCDR_20' ) start [2025-01-05 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183448', 'tblTempVendorCDR_20' ) end [2025-01-05 23:02:20] Production.INFO: ProcessCDR(1,14183448,1,1,2) [2025-01-05 23:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183448', 'tblTempUsageDetail_20' ) start [2025-01-05 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183448', 'tblTempUsageDetail_20' ) end [2025-01-05 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:02:23] Production.INFO: ==8793== Releasing lock... [2025-01-05 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:03:04 [end_date_ymd] => 2025-01-05 23:03:04 [RateCDR] => 1 ) [2025-01-05 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:03:04' and `end` < '2025-01-05 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:03:17] Production.INFO: count ==774 [2025-01-05 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:03:04 - End Time 2025-01-05 23:03:04 [2025-01-05 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183453', 'tblTempUsageDetail_20' ) start [2025-01-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183453', 'tblTempUsageDetail_20' ) end [2025-01-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183453', 'tblTempVendorCDR_20' ) start [2025-01-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183453', 'tblTempVendorCDR_20' ) end [2025-01-05 23:03:17] Production.INFO: ProcessCDR(1,14183453,1,1,2) [2025-01-05 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183453', 'tblTempUsageDetail_20' ) start [2025-01-05 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183453', 'tblTempUsageDetail_20' ) end [2025-01-05 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:03:20] Production.INFO: ==8872== Releasing lock... [2025-01-05 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:03:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:04:05 [end_date_ymd] => 2025-01-05 23:04:05 [RateCDR] => 1 ) [2025-01-05 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:04:05' and `end` < '2025-01-05 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:04:18] Production.INFO: count ==774 [2025-01-05 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:04:05 - End Time 2025-01-05 23:04:05 [2025-01-05 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183458', 'tblTempUsageDetail_20' ) start [2025-01-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183458', 'tblTempUsageDetail_20' ) end [2025-01-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183458', 'tblTempVendorCDR_20' ) start [2025-01-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183458', 'tblTempVendorCDR_20' ) end [2025-01-05 23:04:18] Production.INFO: ProcessCDR(1,14183458,1,1,2) [2025-01-05 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183458', 'tblTempUsageDetail_20' ) start [2025-01-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183458', 'tblTempUsageDetail_20' ) end [2025-01-05 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:04:21] Production.INFO: ==8957== Releasing lock... [2025-01-05 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:05:05 [end_date_ymd] => 2025-01-05 23:05:05 [RateCDR] => 1 ) [2025-01-05 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:05:05' and `end` < '2025-01-05 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:05:18] Production.INFO: count ==774 [2025-01-05 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:05:05 - End Time 2025-01-05 23:05:05 [2025-01-05 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183463', 'tblTempUsageDetail_20' ) start [2025-01-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183463', 'tblTempUsageDetail_20' ) end [2025-01-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183463', 'tblTempVendorCDR_20' ) start [2025-01-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183463', 'tblTempVendorCDR_20' ) end [2025-01-05 23:05:18] Production.INFO: ProcessCDR(1,14183463,1,1,2) [2025-01-05 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183463', 'tblTempUsageDetail_20' ) start [2025-01-05 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183463', 'tblTempUsageDetail_20' ) end [2025-01-05 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:05:21] Production.INFO: ==9112== Releasing lock... [2025-01-05 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:06:05 [end_date_ymd] => 2025-01-05 23:06:05 [RateCDR] => 1 ) [2025-01-05 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:06:05' and `end` < '2025-01-05 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:06:18] Production.INFO: count ==772 [2025-01-05 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:06:05 - End Time 2025-01-05 23:06:05 [2025-01-05 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183468', 'tblTempUsageDetail_20' ) start [2025-01-05 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183468', 'tblTempUsageDetail_20' ) end [2025-01-05 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183468', 'tblTempVendorCDR_20' ) start [2025-01-05 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183468', 'tblTempVendorCDR_20' ) end [2025-01-05 23:06:18] Production.INFO: ProcessCDR(1,14183468,1,1,2) [2025-01-05 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183468', 'tblTempUsageDetail_20' ) start [2025-01-05 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183468', 'tblTempUsageDetail_20' ) end [2025-01-05 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:06:22] Production.INFO: ==9191== Releasing lock... [2025-01-05 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:07:05 [end_date_ymd] => 2025-01-05 23:07:05 [RateCDR] => 1 ) [2025-01-05 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:07:05' and `end` < '2025-01-05 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:07:18] Production.INFO: count ==772 [2025-01-05 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:07:05 - End Time 2025-01-05 23:07:05 [2025-01-05 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183473', 'tblTempUsageDetail_20' ) start [2025-01-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183473', 'tblTempUsageDetail_20' ) end [2025-01-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183473', 'tblTempVendorCDR_20' ) start [2025-01-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183473', 'tblTempVendorCDR_20' ) end [2025-01-05 23:07:18] Production.INFO: ProcessCDR(1,14183473,1,1,2) [2025-01-05 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183473', 'tblTempUsageDetail_20' ) start [2025-01-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183473', 'tblTempUsageDetail_20' ) end [2025-01-05 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:07:21] Production.INFO: ==9274== Releasing lock... [2025-01-05 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:08:05 [end_date_ymd] => 2025-01-05 23:08:05 [RateCDR] => 1 ) [2025-01-05 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:08:05' and `end` < '2025-01-05 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:08:18] Production.INFO: count ==770 [2025-01-05 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:08:05 - End Time 2025-01-05 23:08:05 [2025-01-05 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183478', 'tblTempUsageDetail_20' ) start [2025-01-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183478', 'tblTempUsageDetail_20' ) end [2025-01-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183478', 'tblTempVendorCDR_20' ) start [2025-01-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183478', 'tblTempVendorCDR_20' ) end [2025-01-05 23:08:18] Production.INFO: ProcessCDR(1,14183478,1,1,2) [2025-01-05 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183478', 'tblTempUsageDetail_20' ) start [2025-01-05 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183478', 'tblTempUsageDetail_20' ) end [2025-01-05 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:08:22] Production.INFO: ==9435== Releasing lock... [2025-01-05 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:08:22] Production.INFO: 34 MB #Memory Used# [2025-01-05 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:09:05 [end_date_ymd] => 2025-01-05 23:09:05 [RateCDR] => 1 ) [2025-01-05 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:09:05' and `end` < '2025-01-05 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:09:18] Production.INFO: count ==767 [2025-01-05 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:09:05 - End Time 2025-01-05 23:09:05 [2025-01-05 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183483', 'tblTempUsageDetail_20' ) start [2025-01-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183483', 'tblTempUsageDetail_20' ) end [2025-01-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183483', 'tblTempVendorCDR_20' ) start [2025-01-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183483', 'tblTempVendorCDR_20' ) end [2025-01-05 23:09:18] Production.INFO: ProcessCDR(1,14183483,1,1,2) [2025-01-05 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183483', 'tblTempUsageDetail_20' ) start [2025-01-05 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183483', 'tblTempUsageDetail_20' ) end [2025-01-05 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:09:21] Production.INFO: ==9520== Releasing lock... [2025-01-05 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:10:05 [end_date_ymd] => 2025-01-05 23:10:05 [RateCDR] => 1 ) [2025-01-05 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:10:05' and `end` < '2025-01-05 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:10:18] Production.INFO: count ==763 [2025-01-05 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:10:05 - End Time 2025-01-05 23:10:05 [2025-01-05 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183489', 'tblTempUsageDetail_20' ) start [2025-01-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183489', 'tblTempUsageDetail_20' ) end [2025-01-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183489', 'tblTempVendorCDR_20' ) start [2025-01-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183489', 'tblTempVendorCDR_20' ) end [2025-01-05 23:10:18] Production.INFO: ProcessCDR(1,14183489,1,1,2) [2025-01-05 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183489', 'tblTempUsageDetail_20' ) start [2025-01-05 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183489', 'tblTempUsageDetail_20' ) end [2025-01-05 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:10:21] Production.INFO: ==9619== Releasing lock... [2025-01-05 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:10:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:11:06 [end_date_ymd] => 2025-01-05 23:11:06 [RateCDR] => 1 ) [2025-01-05 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:11:06' and `end` < '2025-01-05 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:11:20] Production.INFO: count ==745 [2025-01-05 23:11:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:11:06 - End Time 2025-01-05 23:11:06 [2025-01-05 23:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183494', 'tblTempUsageDetail_20' ) start [2025-01-05 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183494', 'tblTempUsageDetail_20' ) end [2025-01-05 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183494', 'tblTempVendorCDR_20' ) start [2025-01-05 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183494', 'tblTempVendorCDR_20' ) end [2025-01-05 23:11:20] Production.INFO: ProcessCDR(1,14183494,1,1,2) [2025-01-05 23:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183494', 'tblTempUsageDetail_20' ) start [2025-01-05 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183494', 'tblTempUsageDetail_20' ) end [2025-01-05 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:11:23] Production.INFO: ==9715== Releasing lock... [2025-01-05 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:11:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:12:05 [end_date_ymd] => 2025-01-05 23:12:05 [RateCDR] => 1 ) [2025-01-05 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:12:05' and `end` < '2025-01-05 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:12:17] Production.INFO: count ==743 [2025-01-05 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:12:05 - End Time 2025-01-05 23:12:05 [2025-01-05 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183499', 'tblTempUsageDetail_20' ) start [2025-01-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183499', 'tblTempUsageDetail_20' ) end [2025-01-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183499', 'tblTempVendorCDR_20' ) start [2025-01-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183499', 'tblTempVendorCDR_20' ) end [2025-01-05 23:12:18] Production.INFO: ProcessCDR(1,14183499,1,1,2) [2025-01-05 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183499', 'tblTempUsageDetail_20' ) start [2025-01-05 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183499', 'tblTempUsageDetail_20' ) end [2025-01-05 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:12:21] Production.INFO: ==9879== Releasing lock... [2025-01-05 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:13:04 [end_date_ymd] => 2025-01-05 23:13:04 [RateCDR] => 1 ) [2025-01-05 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:13:04' and `end` < '2025-01-05 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:13:18] Production.INFO: count ==739 [2025-01-05 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:13:04 - End Time 2025-01-05 23:13:04 [2025-01-05 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183504', 'tblTempUsageDetail_20' ) start [2025-01-05 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183504', 'tblTempUsageDetail_20' ) end [2025-01-05 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183504', 'tblTempVendorCDR_20' ) start [2025-01-05 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183504', 'tblTempVendorCDR_20' ) end [2025-01-05 23:13:18] Production.INFO: ProcessCDR(1,14183504,1,1,2) [2025-01-05 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183504', 'tblTempUsageDetail_20' ) start [2025-01-05 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183504', 'tblTempUsageDetail_20' ) end [2025-01-05 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:13:21] Production.INFO: ==9971== Releasing lock... [2025-01-05 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:14:04 [end_date_ymd] => 2025-01-05 23:14:04 [RateCDR] => 1 ) [2025-01-05 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:14:04' and `end` < '2025-01-05 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:14:18] Production.INFO: count ==738 [2025-01-05 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:14:04 - End Time 2025-01-05 23:14:04 [2025-01-05 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183509', 'tblTempUsageDetail_20' ) start [2025-01-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183509', 'tblTempUsageDetail_20' ) end [2025-01-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183509', 'tblTempVendorCDR_20' ) start [2025-01-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183509', 'tblTempVendorCDR_20' ) end [2025-01-05 23:14:18] Production.INFO: ProcessCDR(1,14183509,1,1,2) [2025-01-05 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183509', 'tblTempUsageDetail_20' ) start [2025-01-05 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183509', 'tblTempUsageDetail_20' ) end [2025-01-05 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:14:21] Production.INFO: ==10063== Releasing lock... [2025-01-05 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:15:05 [end_date_ymd] => 2025-01-05 23:15:05 [RateCDR] => 1 ) [2025-01-05 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:15:05' and `end` < '2025-01-05 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:15:19] Production.INFO: count ==738 [2025-01-05 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:15:05 - End Time 2025-01-05 23:15:05 [2025-01-05 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183514', 'tblTempUsageDetail_20' ) start [2025-01-05 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183514', 'tblTempUsageDetail_20' ) end [2025-01-05 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183514', 'tblTempVendorCDR_20' ) start [2025-01-05 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183514', 'tblTempVendorCDR_20' ) end [2025-01-05 23:15:19] Production.INFO: ProcessCDR(1,14183514,1,1,2) [2025-01-05 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183514', 'tblTempUsageDetail_20' ) start [2025-01-05 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183514', 'tblTempUsageDetail_20' ) end [2025-01-05 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:15:22] Production.INFO: ==10238== Releasing lock... [2025-01-05 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:16:05 [end_date_ymd] => 2025-01-05 23:16:05 [RateCDR] => 1 ) [2025-01-05 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:16:05' and `end` < '2025-01-05 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:16:19] Production.INFO: count ==738 [2025-01-05 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:16:05 - End Time 2025-01-05 23:16:05 [2025-01-05 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183519', 'tblTempUsageDetail_20' ) start [2025-01-05 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183519', 'tblTempUsageDetail_20' ) end [2025-01-05 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183519', 'tblTempVendorCDR_20' ) start [2025-01-05 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183519', 'tblTempVendorCDR_20' ) end [2025-01-05 23:16:19] Production.INFO: ProcessCDR(1,14183519,1,1,2) [2025-01-05 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183519', 'tblTempUsageDetail_20' ) start [2025-01-05 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183519', 'tblTempUsageDetail_20' ) end [2025-01-05 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:16:24] Production.INFO: ==10333== Releasing lock... [2025-01-05 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:16:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-05 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:17:05 [end_date_ymd] => 2025-01-05 23:17:05 [RateCDR] => 1 ) [2025-01-05 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:17:05' and `end` < '2025-01-05 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:17:18] Production.INFO: count ==741 [2025-01-05 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:17:05 - End Time 2025-01-05 23:17:05 [2025-01-05 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183524', 'tblTempUsageDetail_20' ) start [2025-01-05 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183524', 'tblTempUsageDetail_20' ) end [2025-01-05 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183524', 'tblTempVendorCDR_20' ) start [2025-01-05 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183524', 'tblTempVendorCDR_20' ) end [2025-01-05 23:17:18] Production.INFO: ProcessCDR(1,14183524,1,1,2) [2025-01-05 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183524', 'tblTempUsageDetail_20' ) start [2025-01-05 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183524', 'tblTempUsageDetail_20' ) end [2025-01-05 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:17:21] Production.INFO: ==10429== Releasing lock... [2025-01-05 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:18:05 [end_date_ymd] => 2025-01-05 23:18:05 [RateCDR] => 1 ) [2025-01-05 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:18:05' and `end` < '2025-01-05 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:18:18] Production.INFO: count ==741 [2025-01-05 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:18:05 - End Time 2025-01-05 23:18:05 [2025-01-05 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183529', 'tblTempUsageDetail_20' ) start [2025-01-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183529', 'tblTempUsageDetail_20' ) end [2025-01-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183529', 'tblTempVendorCDR_20' ) start [2025-01-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183529', 'tblTempVendorCDR_20' ) end [2025-01-05 23:18:18] Production.INFO: ProcessCDR(1,14183529,1,1,2) [2025-01-05 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183529', 'tblTempUsageDetail_20' ) start [2025-01-05 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183529', 'tblTempUsageDetail_20' ) end [2025-01-05 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:18:21] Production.INFO: ==10562== Releasing lock... [2025-01-05 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:18:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:19:04 [end_date_ymd] => 2025-01-05 23:19:04 [RateCDR] => 1 ) [2025-01-05 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:19:04' and `end` < '2025-01-05 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:19:19] Production.INFO: count ==740 [2025-01-05 23:19:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:19:04 - End Time 2025-01-05 23:19:04 [2025-01-05 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183532', 'tblTempUsageDetail_20' ) start [2025-01-05 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183532', 'tblTempUsageDetail_20' ) end [2025-01-05 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183532', 'tblTempVendorCDR_20' ) start [2025-01-05 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183532', 'tblTempVendorCDR_20' ) end [2025-01-05 23:19:19] Production.INFO: ProcessCDR(1,14183532,1,1,2) [2025-01-05 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183532', 'tblTempUsageDetail_20' ) start [2025-01-05 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183532', 'tblTempUsageDetail_20' ) end [2025-01-05 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:19:22] Production.INFO: ==10677== Releasing lock... [2025-01-05 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:20:06 [end_date_ymd] => 2025-01-05 23:20:06 [RateCDR] => 1 ) [2025-01-05 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:20:06' and `end` < '2025-01-05 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:20:20] Production.INFO: count ==740 [2025-01-05 23:20:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:20:06 - End Time 2025-01-05 23:20:06 [2025-01-05 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183540', 'tblTempUsageDetail_20' ) start [2025-01-05 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183540', 'tblTempUsageDetail_20' ) end [2025-01-05 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183540', 'tblTempVendorCDR_20' ) start [2025-01-05 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183540', 'tblTempVendorCDR_20' ) end [2025-01-05 23:20:20] Production.INFO: ProcessCDR(1,14183540,1,1,2) [2025-01-05 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183540', 'tblTempUsageDetail_20' ) start [2025-01-05 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183540', 'tblTempUsageDetail_20' ) end [2025-01-05 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:20:23] Production.INFO: ==10785== Releasing lock... [2025-01-05 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:21:04 [end_date_ymd] => 2025-01-05 23:21:04 [RateCDR] => 1 ) [2025-01-05 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:21:04' and `end` < '2025-01-05 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:21:17] Production.INFO: count ==716 [2025-01-05 23:21:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:21:04 - End Time 2025-01-05 23:21:04 [2025-01-05 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183545', 'tblTempUsageDetail_20' ) start [2025-01-05 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183545', 'tblTempUsageDetail_20' ) end [2025-01-05 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183545', 'tblTempVendorCDR_20' ) start [2025-01-05 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183545', 'tblTempVendorCDR_20' ) end [2025-01-05 23:21:17] Production.INFO: ProcessCDR(1,14183545,1,1,2) [2025-01-05 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183545', 'tblTempUsageDetail_20' ) start [2025-01-05 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183545', 'tblTempUsageDetail_20' ) end [2025-01-05 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:21:20] Production.INFO: ==10888== Releasing lock... [2025-01-05 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:21:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:22:05 [end_date_ymd] => 2025-01-05 23:22:05 [RateCDR] => 1 ) [2025-01-05 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:22:05' and `end` < '2025-01-05 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:22:18] Production.INFO: count ==713 [2025-01-05 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:22:05 - End Time 2025-01-05 23:22:05 [2025-01-05 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183550', 'tblTempUsageDetail_20' ) start [2025-01-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183550', 'tblTempUsageDetail_20' ) end [2025-01-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183550', 'tblTempVendorCDR_20' ) start [2025-01-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183550', 'tblTempVendorCDR_20' ) end [2025-01-05 23:22:18] Production.INFO: ProcessCDR(1,14183550,1,1,2) [2025-01-05 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183550', 'tblTempUsageDetail_20' ) start [2025-01-05 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183550', 'tblTempUsageDetail_20' ) end [2025-01-05 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:22:22] Production.INFO: ==10992== Releasing lock... [2025-01-05 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:22:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:23:04 [end_date_ymd] => 2025-01-05 23:23:04 [RateCDR] => 1 ) [2025-01-05 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:23:04' and `end` < '2025-01-05 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:23:19] Production.INFO: count ==713 [2025-01-05 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:23:04 - End Time 2025-01-05 23:23:04 [2025-01-05 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183555', 'tblTempUsageDetail_20' ) start [2025-01-05 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183555', 'tblTempUsageDetail_20' ) end [2025-01-05 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183555', 'tblTempVendorCDR_20' ) start [2025-01-05 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183555', 'tblTempVendorCDR_20' ) end [2025-01-05 23:23:19] Production.INFO: ProcessCDR(1,14183555,1,1,2) [2025-01-05 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183555', 'tblTempUsageDetail_20' ) start [2025-01-05 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183555', 'tblTempUsageDetail_20' ) end [2025-01-05 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:23:22] Production.INFO: ==11076== Releasing lock... [2025-01-05 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:23:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:24:05 [end_date_ymd] => 2025-01-05 23:24:05 [RateCDR] => 1 ) [2025-01-05 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:24:05' and `end` < '2025-01-05 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:24:18] Production.INFO: count ==713 [2025-01-05 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:24:05 - End Time 2025-01-05 23:24:05 [2025-01-05 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183560', 'tblTempUsageDetail_20' ) start [2025-01-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183560', 'tblTempUsageDetail_20' ) end [2025-01-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183560', 'tblTempVendorCDR_20' ) start [2025-01-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183560', 'tblTempVendorCDR_20' ) end [2025-01-05 23:24:18] Production.INFO: ProcessCDR(1,14183560,1,1,2) [2025-01-05 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183560', 'tblTempUsageDetail_20' ) start [2025-01-05 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183560', 'tblTempUsageDetail_20' ) end [2025-01-05 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:24:21] Production.INFO: ==11162== Releasing lock... [2025-01-05 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:24:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:25:06 [end_date_ymd] => 2025-01-05 23:25:06 [RateCDR] => 1 ) [2025-01-05 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:25:06' and `end` < '2025-01-05 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:25:18] Production.INFO: count ==712 [2025-01-05 23:25:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:25:06 - End Time 2025-01-05 23:25:06 [2025-01-05 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183565', 'tblTempUsageDetail_20' ) start [2025-01-05 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183565', 'tblTempUsageDetail_20' ) end [2025-01-05 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183565', 'tblTempVendorCDR_20' ) start [2025-01-05 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183565', 'tblTempVendorCDR_20' ) end [2025-01-05 23:25:19] Production.INFO: ProcessCDR(1,14183565,1,1,2) [2025-01-05 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183565', 'tblTempUsageDetail_20' ) start [2025-01-05 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183565', 'tblTempUsageDetail_20' ) end [2025-01-05 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:25:22] Production.INFO: ==11250== Releasing lock... [2025-01-05 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:26:05 [end_date_ymd] => 2025-01-05 23:26:05 [RateCDR] => 1 ) [2025-01-05 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:26:05' and `end` < '2025-01-05 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:26:19] Production.INFO: count ==711 [2025-01-05 23:26:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:26:05 - End Time 2025-01-05 23:26:05 [2025-01-05 23:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183570', 'tblTempUsageDetail_20' ) start [2025-01-05 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183570', 'tblTempUsageDetail_20' ) end [2025-01-05 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183570', 'tblTempVendorCDR_20' ) start [2025-01-05 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183570', 'tblTempVendorCDR_20' ) end [2025-01-05 23:26:20] Production.INFO: ProcessCDR(1,14183570,1,1,2) [2025-01-05 23:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183570', 'tblTempUsageDetail_20' ) start [2025-01-05 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183570', 'tblTempUsageDetail_20' ) end [2025-01-05 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:26:23] Production.INFO: ==11334== Releasing lock... [2025-01-05 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:26:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:27:05 [end_date_ymd] => 2025-01-05 23:27:05 [RateCDR] => 1 ) [2025-01-05 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:27:05' and `end` < '2025-01-05 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:27:18] Production.INFO: count ==710 [2025-01-05 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:27:05 - End Time 2025-01-05 23:27:05 [2025-01-05 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183575', 'tblTempUsageDetail_20' ) start [2025-01-05 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183575', 'tblTempUsageDetail_20' ) end [2025-01-05 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183575', 'tblTempVendorCDR_20' ) start [2025-01-05 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183575', 'tblTempVendorCDR_20' ) end [2025-01-05 23:27:18] Production.INFO: ProcessCDR(1,14183575,1,1,2) [2025-01-05 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183575', 'tblTempUsageDetail_20' ) start [2025-01-05 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183575', 'tblTempUsageDetail_20' ) end [2025-01-05 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:27:21] Production.INFO: ==11417== Releasing lock... [2025-01-05 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:28:05 [end_date_ymd] => 2025-01-05 23:28:05 [RateCDR] => 1 ) [2025-01-05 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:28:05' and `end` < '2025-01-05 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:28:18] Production.INFO: count ==710 [2025-01-05 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:28:05 - End Time 2025-01-05 23:28:05 [2025-01-05 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183580', 'tblTempUsageDetail_20' ) start [2025-01-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183580', 'tblTempUsageDetail_20' ) end [2025-01-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183580', 'tblTempVendorCDR_20' ) start [2025-01-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183580', 'tblTempVendorCDR_20' ) end [2025-01-05 23:28:18] Production.INFO: ProcessCDR(1,14183580,1,1,2) [2025-01-05 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183580', 'tblTempUsageDetail_20' ) start [2025-01-05 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183580', 'tblTempUsageDetail_20' ) end [2025-01-05 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:28:21] Production.INFO: ==11499== Releasing lock... [2025-01-05 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-05 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:29:06 [end_date_ymd] => 2025-01-05 23:29:06 [RateCDR] => 1 ) [2025-01-05 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:29:06' and `end` < '2025-01-05 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:29:18] Production.INFO: count ==710 [2025-01-05 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:29:06 - End Time 2025-01-05 23:29:06 [2025-01-05 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183585', 'tblTempUsageDetail_20' ) start [2025-01-05 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183585', 'tblTempUsageDetail_20' ) end [2025-01-05 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183585', 'tblTempVendorCDR_20' ) start [2025-01-05 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183585', 'tblTempVendorCDR_20' ) end [2025-01-05 23:29:19] Production.INFO: ProcessCDR(1,14183585,1,1,2) [2025-01-05 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183585', 'tblTempUsageDetail_20' ) start [2025-01-05 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183585', 'tblTempUsageDetail_20' ) end [2025-01-05 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:29:22] Production.INFO: ==11585== Releasing lock... [2025-01-05 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:30:05 [end_date_ymd] => 2025-01-05 23:30:05 [RateCDR] => 1 ) [2025-01-05 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:30:05' and `end` < '2025-01-05 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:30:20] Production.INFO: count ==709 [2025-01-05 23:30:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:30:05 - End Time 2025-01-05 23:30:05 [2025-01-05 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183590', 'tblTempUsageDetail_20' ) start [2025-01-05 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183590', 'tblTempUsageDetail_20' ) end [2025-01-05 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183590', 'tblTempVendorCDR_20' ) start [2025-01-05 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183590', 'tblTempVendorCDR_20' ) end [2025-01-05 23:30:20] Production.INFO: ProcessCDR(1,14183590,1,1,2) [2025-01-05 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183590', 'tblTempUsageDetail_20' ) start [2025-01-05 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183590', 'tblTempUsageDetail_20' ) end [2025-01-05 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:30:23] Production.INFO: ==11684== Releasing lock... [2025-01-05 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:30:23] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:31:05 [end_date_ymd] => 2025-01-05 23:31:05 [RateCDR] => 1 ) [2025-01-05 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:31:05' and `end` < '2025-01-05 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:31:19] Production.INFO: count ==693 [2025-01-05 23:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:31:05 - End Time 2025-01-05 23:31:05 [2025-01-05 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183596', 'tblTempUsageDetail_20' ) start [2025-01-05 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183596', 'tblTempUsageDetail_20' ) end [2025-01-05 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183596', 'tblTempVendorCDR_20' ) start [2025-01-05 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183596', 'tblTempVendorCDR_20' ) end [2025-01-05 23:31:19] Production.INFO: ProcessCDR(1,14183596,1,1,2) [2025-01-05 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183596', 'tblTempUsageDetail_20' ) start [2025-01-05 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183596', 'tblTempUsageDetail_20' ) end [2025-01-05 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:31:22] Production.INFO: ==11775== Releasing lock... [2025-01-05 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:31:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:32:05 [end_date_ymd] => 2025-01-05 23:32:05 [RateCDR] => 1 ) [2025-01-05 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:32:05' and `end` < '2025-01-05 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:32:18] Production.INFO: count ==692 [2025-01-05 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:32:05 - End Time 2025-01-05 23:32:05 [2025-01-05 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183601', 'tblTempUsageDetail_20' ) start [2025-01-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183601', 'tblTempUsageDetail_20' ) end [2025-01-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183601', 'tblTempVendorCDR_20' ) start [2025-01-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183601', 'tblTempVendorCDR_20' ) end [2025-01-05 23:32:18] Production.INFO: ProcessCDR(1,14183601,1,1,2) [2025-01-05 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183601', 'tblTempUsageDetail_20' ) start [2025-01-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183601', 'tblTempUsageDetail_20' ) end [2025-01-05 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:32:21] Production.INFO: ==11881== Releasing lock... [2025-01-05 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:32:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:33:05 [end_date_ymd] => 2025-01-05 23:33:05 [RateCDR] => 1 ) [2025-01-05 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:33:05' and `end` < '2025-01-05 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:33:18] Production.INFO: count ==692 [2025-01-05 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:33:05 - End Time 2025-01-05 23:33:05 [2025-01-05 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183606', 'tblTempUsageDetail_20' ) start [2025-01-05 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183606', 'tblTempUsageDetail_20' ) end [2025-01-05 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183606', 'tblTempVendorCDR_20' ) start [2025-01-05 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183606', 'tblTempVendorCDR_20' ) end [2025-01-05 23:33:18] Production.INFO: ProcessCDR(1,14183606,1,1,2) [2025-01-05 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183606', 'tblTempUsageDetail_20' ) start [2025-01-05 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183606', 'tblTempUsageDetail_20' ) end [2025-01-05 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:33:21] Production.INFO: ==12005== Releasing lock... [2025-01-05 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:33:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:34:06 [end_date_ymd] => 2025-01-05 23:34:06 [RateCDR] => 1 ) [2025-01-05 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:34:06' and `end` < '2025-01-05 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:34:18] Production.INFO: count ==692 [2025-01-05 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:34:06 - End Time 2025-01-05 23:34:06 [2025-01-05 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183611', 'tblTempUsageDetail_20' ) start [2025-01-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183611', 'tblTempUsageDetail_20' ) end [2025-01-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183611', 'tblTempVendorCDR_20' ) start [2025-01-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183611', 'tblTempVendorCDR_20' ) end [2025-01-05 23:34:18] Production.INFO: ProcessCDR(1,14183611,1,1,2) [2025-01-05 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183611', 'tblTempUsageDetail_20' ) start [2025-01-05 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183611', 'tblTempUsageDetail_20' ) end [2025-01-05 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:34:22] Production.INFO: ==12165== Releasing lock... [2025-01-05 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:34:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:35:05 [end_date_ymd] => 2025-01-05 23:35:05 [RateCDR] => 1 ) [2025-01-05 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:35:05' and `end` < '2025-01-05 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:35:18] Production.INFO: count ==692 [2025-01-05 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:35:05 - End Time 2025-01-05 23:35:05 [2025-01-05 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183616', 'tblTempUsageDetail_20' ) start [2025-01-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183616', 'tblTempUsageDetail_20' ) end [2025-01-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183616', 'tblTempVendorCDR_20' ) start [2025-01-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183616', 'tblTempVendorCDR_20' ) end [2025-01-05 23:35:18] Production.INFO: ProcessCDR(1,14183616,1,1,2) [2025-01-05 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183616', 'tblTempUsageDetail_20' ) start [2025-01-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183616', 'tblTempUsageDetail_20' ) end [2025-01-05 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:35:21] Production.INFO: ==12293== Releasing lock... [2025-01-05 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:35:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:36:05 [end_date_ymd] => 2025-01-05 23:36:05 [RateCDR] => 1 ) [2025-01-05 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:36:05' and `end` < '2025-01-05 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:36:20] Production.INFO: count ==691 [2025-01-05 23:36:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:36:05 - End Time 2025-01-05 23:36:05 [2025-01-05 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183621', 'tblTempUsageDetail_20' ) start [2025-01-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183621', 'tblTempUsageDetail_20' ) end [2025-01-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183621', 'tblTempVendorCDR_20' ) start [2025-01-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183621', 'tblTempVendorCDR_20' ) end [2025-01-05 23:36:20] Production.INFO: ProcessCDR(1,14183621,1,1,2) [2025-01-05 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183621', 'tblTempUsageDetail_20' ) start [2025-01-05 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183621', 'tblTempUsageDetail_20' ) end [2025-01-05 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:36:23] Production.INFO: ==12427== Releasing lock... [2025-01-05 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:36:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:37:05 [end_date_ymd] => 2025-01-05 23:37:05 [RateCDR] => 1 ) [2025-01-05 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:37:05' and `end` < '2025-01-05 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:37:20] Production.INFO: count ==691 [2025-01-05 23:37:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:37:05 - End Time 2025-01-05 23:37:05 [2025-01-05 23:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183626', 'tblTempUsageDetail_20' ) start [2025-01-05 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183626', 'tblTempUsageDetail_20' ) end [2025-01-05 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183626', 'tblTempVendorCDR_20' ) start [2025-01-05 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183626', 'tblTempVendorCDR_20' ) end [2025-01-05 23:37:20] Production.INFO: ProcessCDR(1,14183626,1,1,2) [2025-01-05 23:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183626', 'tblTempUsageDetail_20' ) start [2025-01-05 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183626', 'tblTempUsageDetail_20' ) end [2025-01-05 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:37:23] Production.INFO: ==12554== Releasing lock... [2025-01-05 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:38:05 [end_date_ymd] => 2025-01-05 23:38:05 [RateCDR] => 1 ) [2025-01-05 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:38:05' and `end` < '2025-01-05 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:38:18] Production.INFO: count ==690 [2025-01-05 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:38:05 - End Time 2025-01-05 23:38:05 [2025-01-05 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183631', 'tblTempUsageDetail_20' ) start [2025-01-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183631', 'tblTempUsageDetail_20' ) end [2025-01-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183631', 'tblTempVendorCDR_20' ) start [2025-01-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183631', 'tblTempVendorCDR_20' ) end [2025-01-05 23:38:18] Production.INFO: ProcessCDR(1,14183631,1,1,2) [2025-01-05 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183631', 'tblTempUsageDetail_20' ) start [2025-01-05 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183631', 'tblTempUsageDetail_20' ) end [2025-01-05 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:38:22] Production.INFO: ==12676== Releasing lock... [2025-01-05 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:39:04 [end_date_ymd] => 2025-01-05 23:39:04 [RateCDR] => 1 ) [2025-01-05 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:39:04' and `end` < '2025-01-05 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:39:17] Production.INFO: count ==687 [2025-01-05 23:39:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:39:04 - End Time 2025-01-05 23:39:04 [2025-01-05 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183636', 'tblTempUsageDetail_20' ) start [2025-01-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183636', 'tblTempUsageDetail_20' ) end [2025-01-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183636', 'tblTempVendorCDR_20' ) start [2025-01-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183636', 'tblTempVendorCDR_20' ) end [2025-01-05 23:39:17] Production.INFO: ProcessCDR(1,14183636,1,1,2) [2025-01-05 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183636', 'tblTempUsageDetail_20' ) start [2025-01-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183636', 'tblTempUsageDetail_20' ) end [2025-01-05 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:39:20] Production.INFO: ==12799== Releasing lock... [2025-01-05 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:39:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:40:06 [end_date_ymd] => 2025-01-05 23:40:06 [RateCDR] => 1 ) [2025-01-05 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:40:06' and `end` < '2025-01-05 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:40:19] Production.INFO: count ==687 [2025-01-05 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:40:06 - End Time 2025-01-05 23:40:06 [2025-01-05 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183641', 'tblTempUsageDetail_20' ) start [2025-01-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183641', 'tblTempUsageDetail_20' ) end [2025-01-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183641', 'tblTempVendorCDR_20' ) start [2025-01-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183641', 'tblTempVendorCDR_20' ) end [2025-01-05 23:40:19] Production.INFO: ProcessCDR(1,14183641,1,1,2) [2025-01-05 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183641', 'tblTempUsageDetail_20' ) start [2025-01-05 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183641', 'tblTempUsageDetail_20' ) end [2025-01-05 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:40:22] Production.INFO: ==12928== Releasing lock... [2025-01-05 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:41:04 [end_date_ymd] => 2025-01-05 23:41:04 [RateCDR] => 1 ) [2025-01-05 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:41:04' and `end` < '2025-01-05 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:41:17] Production.INFO: count ==681 [2025-01-05 23:41:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:41:04 - End Time 2025-01-05 23:41:04 [2025-01-05 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183647', 'tblTempUsageDetail_20' ) start [2025-01-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183647', 'tblTempUsageDetail_20' ) end [2025-01-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183647', 'tblTempVendorCDR_20' ) start [2025-01-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183647', 'tblTempVendorCDR_20' ) end [2025-01-05 23:41:17] Production.INFO: ProcessCDR(1,14183647,1,1,2) [2025-01-05 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183647', 'tblTempUsageDetail_20' ) start [2025-01-05 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183647', 'tblTempUsageDetail_20' ) end [2025-01-05 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:41:21] Production.INFO: ==13050== Releasing lock... [2025-01-05 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:41:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:42:05 [end_date_ymd] => 2025-01-05 23:42:05 [RateCDR] => 1 ) [2025-01-05 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:42:05' and `end` < '2025-01-05 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:42:19] Production.INFO: count ==681 [2025-01-05 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:42:05 - End Time 2025-01-05 23:42:05 [2025-01-05 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183652', 'tblTempUsageDetail_20' ) start [2025-01-05 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183652', 'tblTempUsageDetail_20' ) end [2025-01-05 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183652', 'tblTempVendorCDR_20' ) start [2025-01-05 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183652', 'tblTempVendorCDR_20' ) end [2025-01-05 23:42:19] Production.INFO: ProcessCDR(1,14183652,1,1,2) [2025-01-05 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183652', 'tblTempUsageDetail_20' ) start [2025-01-05 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183652', 'tblTempUsageDetail_20' ) end [2025-01-05 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:42:22] Production.INFO: ==13177== Releasing lock... [2025-01-05 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:42:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:43:05 [end_date_ymd] => 2025-01-05 23:43:05 [RateCDR] => 1 ) [2025-01-05 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:43:05' and `end` < '2025-01-05 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:43:18] Production.INFO: count ==682 [2025-01-05 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:43:05 - End Time 2025-01-05 23:43:05 [2025-01-05 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183657', 'tblTempUsageDetail_20' ) start [2025-01-05 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183657', 'tblTempUsageDetail_20' ) end [2025-01-05 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183657', 'tblTempVendorCDR_20' ) start [2025-01-05 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183657', 'tblTempVendorCDR_20' ) end [2025-01-05 23:43:18] Production.INFO: ProcessCDR(1,14183657,1,1,2) [2025-01-05 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183657', 'tblTempUsageDetail_20' ) start [2025-01-05 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183657', 'tblTempUsageDetail_20' ) end [2025-01-05 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:43:23] Production.INFO: ==13304== Releasing lock... [2025-01-05 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:43:23] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:44:05 [end_date_ymd] => 2025-01-05 23:44:05 [RateCDR] => 1 ) [2025-01-05 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:44:05' and `end` < '2025-01-05 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:44:18] Production.INFO: count ==682 [2025-01-05 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:44:05 - End Time 2025-01-05 23:44:05 [2025-01-05 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183662', 'tblTempUsageDetail_20' ) start [2025-01-05 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183662', 'tblTempUsageDetail_20' ) end [2025-01-05 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183662', 'tblTempVendorCDR_20' ) start [2025-01-05 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183662', 'tblTempVendorCDR_20' ) end [2025-01-05 23:44:18] Production.INFO: ProcessCDR(1,14183662,1,1,2) [2025-01-05 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183662', 'tblTempUsageDetail_20' ) start [2025-01-05 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183662', 'tblTempUsageDetail_20' ) end [2025-01-05 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:44:21] Production.INFO: ==13437== Releasing lock... [2025-01-05 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:44:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:45:06 [end_date_ymd] => 2025-01-05 23:45:06 [RateCDR] => 1 ) [2025-01-05 23:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:45:06' and `end` < '2025-01-05 23:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:45:20] Production.INFO: count ==682 [2025-01-05 23:45:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:45:06 - End Time 2025-01-05 23:45:06 [2025-01-05 23:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183667', 'tblTempUsageDetail_20' ) start [2025-01-05 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183667', 'tblTempUsageDetail_20' ) end [2025-01-05 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183667', 'tblTempVendorCDR_20' ) start [2025-01-05 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183667', 'tblTempVendorCDR_20' ) end [2025-01-05 23:45:20] Production.INFO: ProcessCDR(1,14183667,1,1,2) [2025-01-05 23:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183667', 'tblTempUsageDetail_20' ) start [2025-01-05 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183667', 'tblTempUsageDetail_20' ) end [2025-01-05 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:45:23] Production.INFO: ==13560== Releasing lock... [2025-01-05 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:45:23] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:46:04 [end_date_ymd] => 2025-01-05 23:46:04 [RateCDR] => 1 ) [2025-01-05 23:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:46:04' and `end` < '2025-01-05 23:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:46:18] Production.INFO: count ==680 [2025-01-05 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:46:04 - End Time 2025-01-05 23:46:04 [2025-01-05 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183672', 'tblTempUsageDetail_20' ) start [2025-01-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183672', 'tblTempUsageDetail_20' ) end [2025-01-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183672', 'tblTempVendorCDR_20' ) start [2025-01-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183672', 'tblTempVendorCDR_20' ) end [2025-01-05 23:46:18] Production.INFO: ProcessCDR(1,14183672,1,1,2) [2025-01-05 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183672', 'tblTempUsageDetail_20' ) start [2025-01-05 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183672', 'tblTempUsageDetail_20' ) end [2025-01-05 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:46:21] Production.INFO: ==13677== Releasing lock... [2025-01-05 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:46:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:47:05 [end_date_ymd] => 2025-01-05 23:47:05 [RateCDR] => 1 ) [2025-01-05 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:47:05' and `end` < '2025-01-05 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:47:18] Production.INFO: count ==679 [2025-01-05 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:47:05 - End Time 2025-01-05 23:47:05 [2025-01-05 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183677', 'tblTempUsageDetail_20' ) start [2025-01-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183677', 'tblTempUsageDetail_20' ) end [2025-01-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183677', 'tblTempVendorCDR_20' ) start [2025-01-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183677', 'tblTempVendorCDR_20' ) end [2025-01-05 23:47:18] Production.INFO: ProcessCDR(1,14183677,1,1,2) [2025-01-05 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183677', 'tblTempUsageDetail_20' ) start [2025-01-05 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183677', 'tblTempUsageDetail_20' ) end [2025-01-05 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:47:21] Production.INFO: ==13801== Releasing lock... [2025-01-05 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:47:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:48:04 [end_date_ymd] => 2025-01-05 23:48:04 [RateCDR] => 1 ) [2025-01-05 23:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:48:04' and `end` < '2025-01-05 23:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:48:18] Production.INFO: count ==679 [2025-01-05 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:48:04 - End Time 2025-01-05 23:48:04 [2025-01-05 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183682', 'tblTempUsageDetail_20' ) start [2025-01-05 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183682', 'tblTempUsageDetail_20' ) end [2025-01-05 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183682', 'tblTempVendorCDR_20' ) start [2025-01-05 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183682', 'tblTempVendorCDR_20' ) end [2025-01-05 23:48:19] Production.INFO: ProcessCDR(1,14183682,1,1,2) [2025-01-05 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183682', 'tblTempUsageDetail_20' ) start [2025-01-05 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183682', 'tblTempUsageDetail_20' ) end [2025-01-05 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:48:22] Production.INFO: ==13921== Releasing lock... [2025-01-05 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:48:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:49:05 [end_date_ymd] => 2025-01-05 23:49:05 [RateCDR] => 1 ) [2025-01-05 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:49:05' and `end` < '2025-01-05 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:49:18] Production.INFO: count ==682 [2025-01-05 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:49:05 - End Time 2025-01-05 23:49:05 [2025-01-05 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183687', 'tblTempUsageDetail_20' ) start [2025-01-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183687', 'tblTempUsageDetail_20' ) end [2025-01-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183687', 'tblTempVendorCDR_20' ) start [2025-01-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183687', 'tblTempVendorCDR_20' ) end [2025-01-05 23:49:18] Production.INFO: ProcessCDR(1,14183687,1,1,2) [2025-01-05 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183687', 'tblTempUsageDetail_20' ) start [2025-01-05 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183687', 'tblTempUsageDetail_20' ) end [2025-01-05 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:49:22] Production.INFO: ==14080== Releasing lock... [2025-01-05 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:49:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:50:06 [end_date_ymd] => 2025-01-05 23:50:06 [RateCDR] => 1 ) [2025-01-05 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:50:06' and `end` < '2025-01-05 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:50:19] Production.INFO: count ==684 [2025-01-05 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:50:06 - End Time 2025-01-05 23:50:06 [2025-01-05 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183693', 'tblTempUsageDetail_20' ) start [2025-01-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183693', 'tblTempUsageDetail_20' ) end [2025-01-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183693', 'tblTempVendorCDR_20' ) start [2025-01-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183693', 'tblTempVendorCDR_20' ) end [2025-01-05 23:50:19] Production.INFO: ProcessCDR(1,14183693,1,1,2) [2025-01-05 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183693', 'tblTempUsageDetail_20' ) start [2025-01-05 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183693', 'tblTempUsageDetail_20' ) end [2025-01-05 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:50:24] Production.INFO: ==14182== Releasing lock... [2025-01-05 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:50:24] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:51:05 [end_date_ymd] => 2025-01-05 23:51:05 [RateCDR] => 1 ) [2025-01-05 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:51:05' and `end` < '2025-01-05 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:51:19] Production.INFO: count ==681 [2025-01-05 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:51:05 - End Time 2025-01-05 23:51:05 [2025-01-05 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183698', 'tblTempUsageDetail_20' ) start [2025-01-05 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183698', 'tblTempUsageDetail_20' ) end [2025-01-05 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183698', 'tblTempVendorCDR_20' ) start [2025-01-05 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183698', 'tblTempVendorCDR_20' ) end [2025-01-05 23:51:19] Production.INFO: ProcessCDR(1,14183698,1,1,2) [2025-01-05 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183698', 'tblTempUsageDetail_20' ) start [2025-01-05 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183698', 'tblTempUsageDetail_20' ) end [2025-01-05 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:51:24] Production.INFO: ==14278== Releasing lock... [2025-01-05 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:51:24] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:52:05 [end_date_ymd] => 2025-01-05 23:52:05 [RateCDR] => 1 ) [2025-01-05 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:52:05' and `end` < '2025-01-05 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:52:19] Production.INFO: count ==680 [2025-01-05 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 20:52:05 - End Time 2025-01-05 23:52:05 [2025-01-05 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183703', 'tblTempUsageDetail_20' ) start [2025-01-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183703', 'tblTempUsageDetail_20' ) end [2025-01-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183703', 'tblTempVendorCDR_20' ) start [2025-01-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183703', 'tblTempVendorCDR_20' ) end [2025-01-05 23:52:19] Production.INFO: ProcessCDR(1,14183703,1,1,2) [2025-01-05 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183703', 'tblTempUsageDetail_20' ) start [2025-01-05 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183703', 'tblTempUsageDetail_20' ) end [2025-01-05 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:52:22] Production.INFO: ==14371== Releasing lock... [2025-01-05 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:53:05 [end_date_ymd] => 2025-01-05 23:53:05 [RateCDR] => 1 ) [2025-01-05 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:53:05' and `end` < '2025-01-05 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:53:17] Production.INFO: count ==680 [2025-01-05 23:53:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:53:05 - End Time 2025-01-05 23:53:05 [2025-01-05 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183708', 'tblTempUsageDetail_20' ) start [2025-01-05 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183708', 'tblTempUsageDetail_20' ) end [2025-01-05 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183708', 'tblTempVendorCDR_20' ) start [2025-01-05 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183708', 'tblTempVendorCDR_20' ) end [2025-01-05 23:53:18] Production.INFO: ProcessCDR(1,14183708,1,1,2) [2025-01-05 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183708', 'tblTempUsageDetail_20' ) start [2025-01-05 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183708', 'tblTempUsageDetail_20' ) end [2025-01-05 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:53:22] Production.INFO: ==14465== Releasing lock... [2025-01-05 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-05 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:54:05 [end_date_ymd] => 2025-01-05 23:54:05 [RateCDR] => 1 ) [2025-01-05 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:54:05' and `end` < '2025-01-05 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:54:21] Production.INFO: count ==684 [2025-01-05 23:54:21] Production.ERROR: pbx CDR StartTime 2025-01-05 20:54:05 - End Time 2025-01-05 23:54:05 [2025-01-05 23:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183713', 'tblTempUsageDetail_20' ) start [2025-01-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183713', 'tblTempUsageDetail_20' ) end [2025-01-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183713', 'tblTempVendorCDR_20' ) start [2025-01-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183713', 'tblTempVendorCDR_20' ) end [2025-01-05 23:54:21] Production.INFO: ProcessCDR(1,14183713,1,1,2) [2025-01-05 23:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183713', 'tblTempUsageDetail_20' ) start [2025-01-05 23:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183713', 'tblTempUsageDetail_20' ) end [2025-01-05 23:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:54:25] Production.INFO: ==14557== Releasing lock... [2025-01-05 23:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:54:25] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:55:05 [end_date_ymd] => 2025-01-05 23:55:05 [RateCDR] => 1 ) [2025-01-05 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:55:05' and `end` < '2025-01-05 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:55:17] Production.INFO: count ==678 [2025-01-05 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-05 20:55:05 - End Time 2025-01-05 23:55:05 [2025-01-05 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183718', 'tblTempUsageDetail_20' ) start [2025-01-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183718', 'tblTempUsageDetail_20' ) end [2025-01-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183718', 'tblTempVendorCDR_20' ) start [2025-01-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183718', 'tblTempVendorCDR_20' ) end [2025-01-05 23:55:17] Production.INFO: ProcessCDR(1,14183718,1,1,2) [2025-01-05 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183718', 'tblTempUsageDetail_20' ) start [2025-01-05 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183718', 'tblTempUsageDetail_20' ) end [2025-01-05 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:55:21] Production.INFO: ==14654== Releasing lock... [2025-01-05 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:55:21] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:56:05 [end_date_ymd] => 2025-01-05 23:56:05 [RateCDR] => 1 ) [2025-01-05 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:56:05' and `end` < '2025-01-05 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:56:18] Production.INFO: count ==676 [2025-01-05 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:56:05 - End Time 2025-01-05 23:56:05 [2025-01-05 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183722', 'tblTempUsageDetail_20' ) start [2025-01-05 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183722', 'tblTempUsageDetail_20' ) end [2025-01-05 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183722', 'tblTempVendorCDR_20' ) start [2025-01-05 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183722', 'tblTempVendorCDR_20' ) end [2025-01-05 23:56:18] Production.INFO: ProcessCDR(1,14183722,1,1,2) [2025-01-05 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183722', 'tblTempUsageDetail_20' ) start [2025-01-05 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183722', 'tblTempUsageDetail_20' ) end [2025-01-05 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:56:21] Production.INFO: ==14743== Releasing lock... [2025-01-05 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-05 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:57:05 [end_date_ymd] => 2025-01-05 23:57:05 [RateCDR] => 1 ) [2025-01-05 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:57:05' and `end` < '2025-01-05 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:57:18] Production.INFO: count ==675 [2025-01-05 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:57:05 - End Time 2025-01-05 23:57:05 [2025-01-05 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183728', 'tblTempUsageDetail_20' ) start [2025-01-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183728', 'tblTempUsageDetail_20' ) end [2025-01-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183728', 'tblTempVendorCDR_20' ) start [2025-01-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183728', 'tblTempVendorCDR_20' ) end [2025-01-05 23:57:18] Production.INFO: ProcessCDR(1,14183728,1,1,2) [2025-01-05 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183728', 'tblTempUsageDetail_20' ) start [2025-01-05 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183728', 'tblTempUsageDetail_20' ) end [2025-01-05 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:57:21] Production.INFO: ==14839== Releasing lock... [2025-01-05 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:57:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:58:05 [end_date_ymd] => 2025-01-05 23:58:05 [RateCDR] => 1 ) [2025-01-05 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:58:05' and `end` < '2025-01-05 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:58:18] Production.INFO: count ==675 [2025-01-05 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 20:58:05 - End Time 2025-01-05 23:58:05 [2025-01-05 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183733', 'tblTempUsageDetail_20' ) start [2025-01-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183733', 'tblTempUsageDetail_20' ) end [2025-01-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183733', 'tblTempVendorCDR_20' ) start [2025-01-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183733', 'tblTempVendorCDR_20' ) end [2025-01-05 23:58:18] Production.INFO: ProcessCDR(1,14183733,1,1,2) [2025-01-05 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183733', 'tblTempUsageDetail_20' ) start [2025-01-05 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183733', 'tblTempUsageDetail_20' ) end [2025-01-05 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:58:22] Production.INFO: ==14931== Releasing lock... [2025-01-05 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:58:22] Production.INFO: 33 MB #Memory Used# [2025-01-05 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 20:59:04 [end_date_ymd] => 2025-01-05 23:59:04 [RateCDR] => 1 ) [2025-01-05 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 20:59:04' and `end` < '2025-01-05 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-05 23:59:20] Production.INFO: count ==675 [2025-01-05 23:59:20] Production.ERROR: pbx CDR StartTime 2025-01-05 20:59:04 - End Time 2025-01-05 23:59:04 [2025-01-05 23:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-05 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183738', 'tblTempUsageDetail_20' ) start [2025-01-05 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183738', 'tblTempUsageDetail_20' ) end [2025-01-05 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183738', 'tblTempVendorCDR_20' ) start [2025-01-05 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183738', 'tblTempVendorCDR_20' ) end [2025-01-05 23:59:20] Production.INFO: ProcessCDR(1,14183738,1,1,2) [2025-01-05 23:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-05 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-05 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183738', 'tblTempUsageDetail_20' ) start [2025-01-05 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183738', 'tblTempUsageDetail_20' ) end [2025-01-05 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-05 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-05 23:59:23] Production.INFO: ==15021== Releasing lock... [2025-01-05 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-05 23:59:23] Production.INFO: 33 MB #Memory Used#